Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

How to modify Block Update Type "the right way"?

$
0
0

This works:

sc.doc.InstanceDefinitions.ModifySourceArchive(block_instance.InstanceDefinition.Index,
                                         block_instance.InstanceDefinition.SourceArchive,
                                         Rhino.DocObjects.InstanceDefinitionUpdateType.Embedded,
                                         quiet=1)

but it seems to me that this function was meant to change block’s source archive and update type parameter is just there for convenience?

This won’t work (read-only property)

a = sc.doc.InstanceDefinitions
a[51].UpdateType = Rhino.DocObjects.InstanceDefinitionUpdateType.Embedded

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4159

Latest Images

Trending Articles



Latest Images