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

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

Hi @Daniel_Krajnik,

This look correct to me.

– Dale

1 Like