Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

[Rhino6] FileImportPlugIn.Load() no longer adds a "Default" layer in the document, warning "Turning on current layer"

$
0
0

@menno wrote:

We’re busy porting our plug-ins to Rhino 6 and I just noticed that when a file is loaded through a FileImportPlugIn (of which we have many), the “Default” layer is no longer present in the document. In Rhino5 this used to be the case. Fortunately, this can be solved by adding such a layer prior to importing any geometry. Is there a reason for this change?

One thing I noticed is that when no “Default” layer is present, that in at least one case I got a warning in Rhino after the file was loaded saying “Turning on current layer”. When a “Default” layer is added prior to loading, this warning does not appear. This warning is probably due to the fact that all the layers that are added during file import are by default turned off. The blocking warning is even shown when loading is performed in batch mode :sweat: :

image

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles