License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Archicad C++ API
About Archicad add-on development using the C++ API.

APIAny_PolygonId2SurfaceTypeID

Anonymous
Not applicable
Hi,
Could you give me a working example for this?
It's not clear which kind of polygonID mentioned here..


GSErrCode ACAPI_Goodies (
APIAny_PolygonId2SurfaceTypeID,
const API_Element* elem,
const Int32* polygonId,
API_SurfaceTypeID* surfaceType
);

elem
[in] Parameter elem for element type identification. Give elem.header.guid or elem.header.typeId. In case of specify roof elem.roof.roofClass also.
polygonId
[in] Parameter polygonId.
surfaceType
[out] Parameter surfaceType.
1 REPLY 1
Ralph Wessel
Mentor
neerson wrote:
Hi,
Could you give me a working example for this?
It's not clear which kind of polygonID mentioned here..
GSErrCode ACAPI_Goodies (
APIAny_PolygonId2SurfaceTypeID,
const API_Element* elem,
const Int32* polygonId,
API_SurfaceTypeID* surfaceType
);
I don't have a working example, but I can give a bit more detail. This relevant to the ModelerAPI, where the polygonID is the index of a polygon (face) in a model view. The view will be comprised of 3D bodies, which are comprised of 3D polygons, which are defined by edges that are comprised of a start and end point. If you're iterating through the polygons in a 3D body, this method will tell you the role that face plays in the model, e.g. a wall reference side.
Ralph Wessel BArch
Software Engineer Speckle Systems

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!