Rhino 9 Feature: Block Attribute Extract

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

  1. Open a model with Blocks that have attribute values associate with them.
  2. Type ExportBlockAttributes.
  3. 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.
  4. 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.
  1. Pick OK.
  2. Navigate to location and type a name for the file.
  3. 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.

8 Likes

Hi Mary,
I will make a request hoping that the table feature will also be in r9.

I think it will be very useful to add the created spread sheet directly into rhino on the same dialog.

1 Like

Hi @herso,
This is makes sense.
I will get this logged.

I think this button is dependent on all these table features.

  1. Table object RH-30945/Text-Table-editable-spreadsheet-like-table
  2. a way to remove row(s) & column(s) (logging wish fir Edit table command)
  3. a table style (logging wish for Table Style)

I will post the links to the other YTs when I have them completes.
Thanks again for letting us know.

Sincerely,
Mary Ann Fugier

4 Likes

Thank you!

1 Like