Hi guys, I’m trying to build a script on Dynamo to place columns over a dwg file. The script locates where the columns are placed in the dwg file and then places columns over the location (first image). Here is the video that contains the code: [DYNAMO REVIT] - Very fast model column plan from AutoCAD Link | Learn for FREE - YouTube
The code works fine with columns that are placed in a 0 or 90 degree, but for columns placed at different angles (like in the first image), it doesn’t work.
Another thing, to recognize the family that should be placed, the script identifies the length of the lines that compose the geometry of the column (second image). So, from the image, the script would place a column 30x30cm and 60x20cm in the proper location. So far so good, it works fine.
The problem is the inclined column, the script gets the length of the diagonals of the square (third image), in which case it would be a column with dimensions of 43x43cm and should be a column of 30x30cm. In addition (if the columns 43x43cm exists in the project) the script places the columns at 0 or 90 degrees instead of the correct one.
I’m a beginner at dynamo, so I don’t understand well what I should do to get around this. The script is too long to take a picture so I’m provided a google drive link with all files (Revit, Dynamo, and dwg) for those who want to take a look at it.
Google Drive: DynamoPost - Google Drive