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

Help needed: Get BlockAttribute keys with RhinoCommon

$
0
0

Hi there,

I insert a BlockDefinition from file, that has a TextObject with dynamic text field (block attribute) like this:
%<UserText(“block”,“tnm_grid_bubble_key”,“tnm_grid_bubble_key”,“X”)>%

Is it possible to get a list of all available Block attribute Text Field keys (e.g. [“tnm_grid_bubble_key”, …]), from all TextObjects that are inside the InstanceDefinition using RhinoCommon?

(n.b.: regex search on r'%<UserText\("block","([^"]+)"' only works when attribute value has never been set on any blockinstance)

Thanks,
Tim

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles