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

AC17 DevKit change in Linear Dimensions?

Not applicable
Hi, I have an addon working perfectly on AC14,15,16. When I use it on AC17 its works fine, only the custom content of Linear Dimension note isn't overwritten. I'm rewriting it like this


tmp is char*

The code is OK, but AC just don't overwrite the content of Linear dimension note it (Dimension note type is set to "custom" all the time - opposite of "Measured" value). Is this a new bug? Or what?

I see there is a change in structure in AC 17 DevKit in API_NoteType
Optional parameter for accessing the text or the autotext of the note in UniString format.
so I tried


where tmpUniStr is ptr to dynamically allocated UniString to change the pointer to new UniString with new content. This actually rewrite the dimension but with something weird, like ''Ś"

Thx in advance.

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!