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.

Elevation Hotspots

ReignBough
Enthusiast
I've created a function that prints the API_PrimHotspot of the parent element of an API_SectElemType (based on its parentGuid) from an elevation view. When I mapped the coordinates of the neig of these primitive hotspots, it fits perfectly on the floor plan view of the object (door in this case).

The question is: How do I get the hotspots of an elevation view?

BTW, the returned API_PrimHotspot has the following values:
head.typeID: API_ZombiePrimID
head.layer: 0
head.pen: 0
head.drwIndex: 0
head.renovationStatus: API_DefaultStatus
loc: <<varies>>
neig.neigID: APINeig_Door
neig.guid: <<door GUID>>
neig.inIndex: <<shown in the attached image, 1-23>>
neig.flags: API_NeigFlg_Normal
neig.elemPartType: APINeigElemPart_None
neig.elemPartIndex: 0
This question might also apply on Section and Interior Elevation.

EDIT (2015 Sep 03):

Using the hotspot's memo values for dimElems, I was able to get the inIndex of the door's hotspot on elevation view: 1-4 for the four corners; and, 25-26 for the two inner corner on top. These indices are different from the original post. As you can see, index 1 on previous post is in the middle while here it is in the side. Also, indices 25 and 26 is not on the original post.


door_hotspot.png

~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
0 REPLIES 0
Learn and get certified!