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

User Text is lost when using rs.Command("_Export")

$
0
0

Hello,

When I explode blocks and export manually the User Text is maintained on the geometry.

But when I use the script below all the User Text is deleted from the geometry contained within the block. Why is this?

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino.DocObjects as rd
import Rhino.Geometry as rg
import Rhino


objs = rs.GetObjects("Select blocks to explode and export",4096)

geometries = []

copies = rs.CopyObjects(objs,None)

for i in copies:
    geo = rs.ExplodeBlockInstance(str(i))
    geometries.append(geo)

for i in geometries:
    rs.SelectObjects(i)

rs.Command("_Export")
rs.Command("_Delete")

Thanks,

Dan

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4148

Trending Articles