Author:ReignBough
Posted: Tue Sep 01, 2015 6:25 am (GMT+1)
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:
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.
_________________
~ReignBough~
[ArchiCAD 18 INT 3006 FULL]
[Windows 7 Pro Intel Core i5 CPU 750 @ 2.67 GHz 8.00 GB 64-bit OS]
Posted: Tue Sep 01, 2015 6:25 am (GMT+1)
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:
Code: |
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.
_________________
~ReignBough~
[ArchiCAD 18 INT 3006 FULL]
[Windows 7 Pro Intel Core i5 CPU 750 @ 2.67 GHz 8.00 GB 64-bit OS]