Hi,
I am trying to get the Block Instances and transform them into their original positions by reading the File3dm that contains those Block Instances. However I could only get the outputs as seen below.
This is my code:
Blockquote
import Rhino as r
F=r.FileIO.File3dm.Read(x)
a=[i for i in F.Objects]
b=F.AllInstanceDefinitions
c=[i.Geometry for i in a]
il=
for i in c:
if ‘Instance’ in str(i):
il.append(i)
d=[i.Xform for i in il]
And this is the file that I want to read, that contains the Blocks.
Blocks.3dm (33.3 KB)
Thanks a lot in advance.
1 post - 1 participant