Thursday, 21 January 2016

Autocad block positions to Revit with Dynamo

Playing around a bit with dynamo after a question. The question was about getting coordinates of boreholes into Revit. Ofcourse you could link the file and start placing families yourself. But that is no fun.

I did the following.
A data extract from Autocad to excel and a script in Dynamo to place families in Revit.

Blocks in Autocad
Data extract steps Autocad
Data extract steps Autocad
Data extract steps Autocad
Data extract steps Autocad
Excel fil
Dynamo Script
Revit family placed in a project
The script was easy. The most difficult part of this exercise was getting excel and Dynamo to deal with my regional settings.

Updated version of previous script: Place the same blocks while respecting the shared coordinates entered in the Project basepoint. Basically subtract project base point values from the values from the excel file. 

Below a link to files I have used:
files


2 comments:

  1. Yamoh Rasa1/9/16 15:37

    Exactly what I'm looking for. Unfortunatly I'm getting an error... FamilyINstance.byCoordinates gives me the following error: Warning: One or more of the input types are not matching. Couldn't find a version of ByCoordinates that takes arguments of type (Revit.Elements.FamilyType,__array,__array,__array)....
    I'new in working with dynamo, could you help me with solving this error please?

    ReplyDelete
    Replies
    1. solved it! the orientation inpunts were strings...I had to change them into integers...

      Delete