2023-03-15 02:38 AM - last edited on 2023-03-23 01:16 AM by Laszlo Nagy
I have a label that I would like to know the origin of the door that it is labelling. What I have so far below. This works fine for a door in a straight wall at any rotation. When I come to a radial wall I can't seem to find any global parameters which will tell me where the door is since it only gives me the angle of the chord of the opening. Thinking I am trying to make this too complex, should I be using something else to get the origin of the door?
!1 remove rotation of label, labelautorotates to be readable if (LABEL_ROTANGLE <=90 or LABEL_ROTANGLE >270) then rot2 -LABEL_ROTANGLE else rot2 -LABEL_ROTANGLE + 180 endif !2 return to origin add2 -LABEL_POSITION, - LABEL_POSITION !3 move to start of wall position add2 WALL_POSITION, WALL_POSITION !4 rotate to wall rotation, note this is the angle of opening chord in the wall between reveals rot2 WALL_DIRECTION !5 move to door position in wall add2 SYMB_POS_X, SYMB_POS_Y
2023-03-16 12:24 PM
WIDO_POSITION is available in the parameter script of doors/windows, you can store it as a parameter, then read that from the label.
2023-03-18 02:39 AM
Thanks Peter, I want to read any door library part so I don't have control over what parameters that door has. Any other ideas?
2023-03-22 11:39 AM
Archicad library has ac_hole_position_angle too.