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

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?

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!