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

Updating Block Attribute Text via C#

$
0
0

Hey everyone,

How can I set Block Attribute Text via C# / Rhinocommon?

I have multiple layouts with the same Block that represents the layout sheet/label and some text in the label should change according to the layout. I use DocumentUserText and Text Fields for data that is document related, but couldn’t figure out how to make it work for the individual layout data.

I currently get the Block Instance Definition by its name to insert it:

var block = doc.InstanceDefinitions.Find("Block Name");
doc.Objects.AddInstanceObject(block.Index, xform);

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4146

Trending Articles