cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

how to get the labelled door origin

easyDoesIt
Contributor

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[1][1], - LABEL_POSITION[1][2]
    !3 move to start of wall position
add2 WALL_POSITION[1], WALL_POSITION[2]
    !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
Cheers,
Mark Beauman
Brisbane, Australia
3 REPLIES 3

Peter Baksa
Graphisoft
Graphisoft

Hi,

WIDO_POSITION is available in the parameter script of doors/windows, you can store it as a parameter, then read that from the label.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

easyDoesIt
Contributor

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?

Cheers,
Mark Beauman
Brisbane, Australia

Peter Baksa
Graphisoft
Graphisoft

Archicad library has ac_hole_position_angle too.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!