Background:
Rhino’s blocks can include additional user defined data. As the block with attributes is inserted, it prompts for the attribute values. Exporting these values for analysis to a program outside of Rhino, was left up to scripting prior to Rhino 9.
Rhino 9 WIP now incudes a command for extracting attributes to a CSV, comma separated value file. This file can be opened in a spread sheet program for analysus or to be formatted as a table.
Steps to Use
- Open a model with Blocks that have attribute values associate with them.
- Type ExportBlockAttributes.
- Select the blocks with attribute to export:
Use a Windows selection or
SelBlockInstanceNamed or layer selection can be helpful.
Enter when the selection is complete. - The ExportBlockAttributes dialog appears.
There are 2 parts: Block Properties and Block Attributes
- Block Properties included Name, Insertion Pts, Layer, URL and more.
- Block Attributes are added to blocks and defined by the user.
- Pick OK.
- Navigate to location and type a name for the file.
- Use your spread sheet application to import the CSV and analyze the data.
See this feature in use below:
“Put down scripts” and try this new Rhino 9 command.
Let us know if this works for you.
Sincerely,
Mary Ann Fugier
PS If you want to learn about Attributed blocks, see this tutorial.
Attributed blocks were added in Rhino 7.