Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 
Developer forum

How to get dimension's node_id?


I am trying to dimension an object (elevation view), I used the following:

  1. Get the element (API_SectElem).
  2. Call ACAPI_Element_GetHotspots to get hotspots.
  3. Set values for dimension (API_DimensionType).
  4. For each API_DimElem (on memo) of that dimension, set the following:
    • dimElem.base.base.typeID = elem.header.typeID
    • dimElem.base.guid = elem.header.guid
    • hotspot[i].Get(neig, coord)
    • dimElem.base.inIndex = neig.inIndex
    • dimElem.pos = ToCoord(coord)
    • dimElem.pos3D = coorddimElem.base.loc3D = coord
  5. Create dimension.

There were no error upon doing this but it did not create a dimension. I then tried to print the supposedly created dimension (after calling ACAPI_Element_Create) and the details were there.


Then, I manually created a dimension to these same hotspots and print its detail. What I noticed is that the node_id has value and inIndex is 0. During debug, I forced the values on node_id (Watch window) and the dimension was created.


According to the documentation, node_id is the polygon vertex id from element with polygon. I am trying to get these value to attach dimensions to it. But object elements do not have polygon. Object's gable also do not have vertex id.


How or where to get these node_id's? Is there a function that can be called something like Neig_To_DimElem?

ARCHICAD 24 INT 4018 FULL (from AC18)
Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!