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.

Dimension Marker Object: Type

Anonymous
Not applicable
Hi,
I have a problem when changing the elevation dimension custom text label with my AddOn.
It changes the type of Marker Object (in dimension menu panel - Marker Object: Type) to specific one (the second in menu).
Actually it has a very strange behaviour - some type changes, when I use my AddOn, other don't.
I don't have this problem with any other dimensions (neither linear,cumulative, base-line, nor Radial, Angle, Level dimension), just this one. My code don't differ for elevation dimension, so there shouldn't be problem.
I wanted to find and save the value of Marker Object: Type in API_Element or API_ElementMemo structures, but I failed. I don't see it anywhere, just MarkerData.MarkerID, but that is something else (I believe). Thx in advance.

EDIT: This is a piece of my code

ACAPI_ELEMENT_MASK_SETFULL (mask);
BNZeroMemory (&element, sizeof (API_Element));
element.header.guid = guid; //guid of selected item
err = ACAPI_Element_Get (&element);

for (GS::Int32 p = 0; p < element.dimension.nDimElem; p++) {
(*memo.dimElems)

.note.contentType = API_NoteContent_Custom;
handle = giveMeSomeText();
strcpy((*memo.dimElems)

.note.content, handle);
}

ACAPI_Element_Change (&element,&mask,&memo,memoMask, true);
//Now it changes the custom text label of dimension and the elevation dimension's Marker Object: type, but it's okay for other dimensions

1 REPLY 1
Anonymous
Not applicable
Anybody knows how to change Dimension Marker: Type... like in AC Dimension menu?
Learn and get certified!