Hi, I am trying to set up a script for replacing square columns into another style of column (i make it by family).
As the square columns are solid drawn by civil3d, now I have broken it down into lines and put them into revit for transformation. The script I wrote aims to find out the center point and the direction of the square columns, then the family should be placed base on the above parameters.
Do columns have a cross-section rotation? Looking through the parameters of the family, can’t find one called that. I know beams do, but not showing up for this.
I used flattens just for safety but the big issue is with the vector.AngleWithVector node: If instead you use Vector.AngleAboutAxis you force dynamo to calculate the angle on the XY plane (its normal is the Z). (You can see the angles are sometimes different between the two nodes, maybe because the vectors do not lay on the XY plane)