Orientation of a structural column

Orientation of a structural column

ssw9UZNL
Advocate Advocate
1,052 Views
4 Replies
Message 1 of 5

Orientation of a structural column

ssw9UZNL
Advocate
Advocate

Hello,

 

I am using the api to create structural columns and passing a start and end point etc.

 

What I would like to know however, is if there is a way to change the orientation of a column. At the moment it is going up and down the grid by default in the x and y, but what if I want to define an angle for example.

 

Thankyou!

0 Likes
1,053 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

As always, the API will provide similar functionality as the user interface, so you should perform your main research there before looking into the API side of things. Afaik, there are significant differences between vertical and slanted columns:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

ssw9UZNL
Advocate
Advocate

Thankyou very much- my only other issue is to update this line.

 

I have used revit lookup to go into the column and to find the curve of the line, so that is all fine. I can see an origin point and the direction of the column, but I cant quite see if its possible to simply pass in a line with an xyz for start an end. Below I can see I can get the end point but I cant work out how to pass something differnet in?

 

(assuming the column is i)

 

i.Location.Curve,GetEndPoint)

0 Likes
Message 4 of 5

jeremy_tammik
Alumni
Alumni

I believe you can simply use 

  

 

  (column.Location as LocationCurve).Curve = new geometry curve with start and end XYZ

 

   

The LocationCurve Curve property has a getter and a setter:

  

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 5

RPTHOMAS108
Mentor
Mentor

.

0 Likes