11 Dec

Create and Change Revit Family Instance with Dynamo Python

Creation of Revit family instances with Python code in Dynamo is easy to do if you have the right code snippet. So I am sharing it here.

Code snippet shows how to do few useful tasks:

  • How to select particular Revit family and type.
  • How to create instance of a type.
  • How to get particular parameter.
  • How to set particular parameter.
  • How to rotate family around it’s placement point (around Z axis).

Read More

05 Nov

Engipedia Structural Layers, Revit Add-in

Engipedia Structural Layers application is Revit Add-in with purpose to extract structural layers from layered structures in Revit: Walls, Floors and Structural Foundation Slabs.

It’s unique workflow gives you ability to get structure from Revit Walls and Floors. Once the structure is extracted, the model can be used as structural model, or as a reference for formwork plans in architectural model.

Add-in is available on Autodesk App Store.

Add-in works in several stages:

  1. Analyzes current types of Walls and Floors in the model. (Structural Foundation Slabs are floors in Structural Foundations category, but basically act the same as floors).
  2. Types where none of the layers has “Structural” checkbox checked are types which are not considered structural and are shown with green background.
  3. Types with only one structural layer in core are presented with blue background.
  4. Types which have structural layer in core but also have other layers are shown with white background – these types can be “peeled” of layers.
  5. User select types from which structure will be extracted.
  6. When tool is ran, end result will be model with only structural layer in Walls and Floors category.

Tool will select only the types which have one structural layer in core. Structural layer is the one which has “Structural Material” checkbox checked.

Types with structural layer will be shown in table on the right. By the default, all the types will be selected in column “Selected”.

Selecting a type in any of tables will show their layer composition in the table on the bottom.

Bottom table also has feature to set core layer as structural material and apply it to the type without leaving the tool. Such changed types will automatically appear in the table on the right.

Selecting the types in the right table and running “Change Selected Types” command will change selected types in a way that they will end with only one (structural) layer. Tool will also impact instances of each type in a way that structural layer will stay in the same place as it was when it had other layers in type.

This way the end result will be model with only structural layers.

Warning: this will change the model drastically.  To avoid loss of work, or unwanted results, preferred workflow is as follows:

  1. Save your model as a new model with different name.
  2. Run Engipedia Structural Layers to extract structural layers from walls and floors.
  3. Save the model.
  4. Continue working on this structural model, or LINK it into your original model.

Other features:

Tool add each type change as separate Undo command so everything can be undone type-by-type.

Tool can automatically set every instance as “Structural”. This can be switched off in Settings.

If needed, tool can also change types with 0 instances (change setting to show types with 0 instances).

Use “Update Structural Checkboxes” to update any Walls/Floors instances with structural material to have Structural instance parameter checked (this can be used later for filtering).

Add-in is available on Autodesk App Store.

06 Jun

Dynamo: Use Excel Coordinates to Create Model Lines in Revit

If you have many coordinates in Excel spreadsheet or in other table format, it’s easy to use the power of Dynamo to get those coordinates into Revit.

In our example, we will use x, y, z coordinates to create model lines within Revit project.

There are two ways to approach this problem:

  1. Coordinates represent continuous points (like in polyline)
  2. There are pairs of coordinates, each pair representing single line

Read More