BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Roof trim, Coord

Anonymous
Not applicable
Hi,

How could i get object edge/coord after Roof triming ? I was using API_Box3D extent3D.zMax for object.
This doesn't work with Roof trim. Even more because of sided roof object is higher than in other side.

Couldn't found approach to this yet.
Any ideas?
4 REPLIES 4
Anonymous
Not applicable
Is there at least a way to know if object have been trimed ?
Anonymous
Not applicable
Hmmm, i could get and calculate roof coordinates and therefore calculate trimmed area.
Will try to go this way...
Ralph Wessel
Mentor
Rinovo wrote:
Is there at least a way to know if object have been trimed ?
Get the element memo data with ACAPI_Element_GetMemo. If the gable handle is non-zero (which contains details of the cutting planes) then the object is cut.
Ralph Wessel BArch
Anonymous
Not applicable
(memo.gables !=0)

You meant like this ? I guess i'm doing something wrong. Didn't understand how it works.
GSErrCode  ACAPI_Element_Trim_GetTrimmingElements ( 
        const API_Guid&         guid_Element, 
        GS::Array<API_Guid>*    guid_TrimmingElements 
    );

Found this function. As i understand this function return guid of element who have trimmed guid_Element. And will give needed result which i'm seeking. Although as i understand with API_Gable i could already get trimmed area with this function i would need to calculate it aferwards.
Buttt... It returns - Invalid value passed in the guid_Element parameter.
How can i assign API_Guid to const API_Guid& , it should be simple i guess ?
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!