cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Walls and their direction

Anonymous
Not applicable
Can anyone tell me if it is possible to extract information from archicad regarding the orientation of a wall. That is to say if the reference line is to the left or right or top or bottom of the screen.
1 REPLY 1
Ralph Wessel
Mentor
Si wrote:
Can anyone tell me if it is possible to extract information from archicad regarding the orientation of a wall. That is to say if the reference line is to the left or right or top or bottom of the screen.
Yes, this is possible. Look at the value of 'dir' in the 'API_WallType' structure. It is of type 'API_WallDirID' and can have values of APIWdir_Left, APIWdir_Center, APIWdir_Right, and APIWdir_LCenter.

You should check the wall type to ensure this value is meaningful, e.g. that it isn't a polygon wall.
Ralph Wessel BArch
Software Engineer Speckle Systems