We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

I want to adjust the window position. (in element_test)

LeeJaeYoung
Virtuoso

LeeJaeYoung_0-1688469301465.png

 

I am studying the window in element_test.
However, I understand the location, but I would like to know how to designate the 1. left and right direction of the window and 2. the inside/outside of the wall.


I'd be grateful if you could tell me where to look.
i am a beginner

 

typedef struct {
        API_Elem_Head                           head;
        API_OpeningBaseType                     openingBase;
        API_WindowDoorRevealDepthLocationID     revealDepthLocation;
        double                                  revealDepthOffset;
        double                                  revealDepthFromSide;
        double                                  jambDepthHead;
        double                                  jambDepthSill;
        double                                  jambDepth;
        double                                  jambDepth2;
        bool                                    reveal;
        bool                                    filler_1[7];
        API_Guid                                owner;
        double                                  objLoc;
        double                                  lower;
        API_Coord                               startPoint;
        API_Coord                               dirVector;
        API_WindowDoorDirectionTypes            directionType;
        short                                   fixPoint;
        short                                   filler_2;
    } API_WindowType, API_DoorType;
AC27 on window 11
11 REPLIES 11
Solution

Check the following picture:

bschwb_1-1688903032085.png

 

Displayed are all 8 door orientation combinations for two different wall directions

And in the last row, you see how it would be if you'd draw the door manually.

Now we can deduce the following:

  1. Sun-icon (= outside) is on the right-hand side relative to the wall reference line. CORRESPONDS TO refSide = 0
  2. oside != refSide CORRESPONDS TO The door opens to the other side of the sun-icon. So it opens to the inside.
  3. oside == refSide CORRESPONDS TO The door opens to the side of the sun-icon. So it opens to the outside.
  4. reflected does not have an effect on whether the door opens to the inside or outside. It effects whether the door opens to the right or left when standing in front of it.

 

Thank you so much for your answer.
I'm trying to create windows and doors based on the intersection of the line going from the inside to the outside and the wall line.
With your help, I think I need to study more and ask the question again. thank you. Thank you for pointing me in the direction I should go
I wish you a happy day. ^^
Since I am a non-English speaker, I ask for your understanding as I communicate only with a translator. ^^

AC27 on window 11