Block definiton type


(Vijay Archelaus) #1

How to change Block definition type through api


(David Rutten) #2

What language are you programming in?


(Vijay Archelaus) #3

Rhino C#(Rhino common)


(Dale Fugier) #4

Hi @vijay_sarathy

Block instance definitions, InstanceDefinition, are stored in the document - RhinoDoc.InstanceDefinitions. Using these, you can get the existing block instance definition geometry, modify it or add to it.

– Dale


(Vijay Archelaus) #5

Hi @dale
instance definition does not contain any set property to modify instance definition types.


(Dale Fugier) #6

Hi @vijay_sarathy,

Use InstanceDefinitionTable.ModifyGeometry.

– Dale


(Vijay Archelaus) #7

I cannot able to modify a block to link type . Can you please elaborate the method to implement it…


(Dale Fugier) #8

This is true. Linked blocks are from external files. Linked blocks are for “read only.”

– Dale


(Vijay Archelaus) #9

:frowning: Thanks @dale