Archicad C++ API
About Archicad add-on development using the C++ API.

Get elements with assosicated label/dimension

ge25yak
Participant

Hi, I'm trying to get elements that have labels or dimension from 2d floorplan. Any ideas how to do this?

 

1 REPLY 1

Hi!

You could iterate through the labels & dimensions and access their parents / owner elements.

  • For labels the information is in labelElement.label.parent
  • For dimensions it's a bit more tricky. You'll have to iterate through the API_DimBase entries in the memo. There you can access then the parent elements via dimElem.base.base.guid

Best,
Bernd

 

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!