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.
However, the family can just be placed correctly according to the center point and the direction has got wrong.
Anyone knows where the problem is? Thanks in advance!!
Link included the script the revit file and the family