Begin your Archicad journey with our free learning path - perfect for newcomers and experienced users looking to strenghten their skills.

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

Change fill orientation via API

Emkave
Enthusiast

Emkave_1-1751553894905.png

 

 

Hello guys! I need an assistance! Do you know if there is a way to change the fill orientation via the API? I'd be glad to receive your sollutions! Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
Graphisoft
Graphisoft

Hi, I'd suggest you try to change the parameter of cutFillOrientation in following data with ACAPI_Attribute_Modify():

HTH.

 

 

 typedef struct {
        API_Attr_Head             head;
        GS::UniString             *id;
        GS::UniString             *manufacturer;
        GS::UniString             *description;
        Int32                     connPriority;
        API_AttributeIndex        cutFill;
        short                     cutFillPen;
        short                     cutFillBackgroundPen;
        API_AttributeIndex        cutMaterial;
        API_FillOrientationID     cutFillOrientation;
        Int32                     filler_0;
        double                    thermalConductivity;
        double                    density;
        double                    heatCapacity;
        double                    embodiedEnergy;
        double                    embodiedCarbon;
        bool                      showUncutLines;
        bool                      doNotParticipateInCollDet;
        bool                      filler_1[6];
    } API_BuildingMaterialType;

View solution in original post

1 REPLY 1
Solution
LChen
Graphisoft
Graphisoft

Hi, I'd suggest you try to change the parameter of cutFillOrientation in following data with ACAPI_Attribute_Modify():

HTH.

 

 

 typedef struct {
        API_Attr_Head             head;
        GS::UniString             *id;
        GS::UniString             *manufacturer;
        GS::UniString             *description;
        Int32                     connPriority;
        API_AttributeIndex        cutFill;
        short                     cutFillPen;
        short                     cutFillBackgroundPen;
        API_AttributeIndex        cutMaterial;
        API_FillOrientationID     cutFillOrientation;
        Int32                     filler_0;
        double                    thermalConductivity;
        double                    density;
        double                    heatCapacity;
        double                    embodiedEnergy;
        double                    embodiedCarbon;
        bool                      showUncutLines;
        bool                      doNotParticipateInCollDet;
        bool                      filler_1[6];
    } API_BuildingMaterialType;