cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to GetDefaults&ChangeDefault by favorites door name.

Now GetDefaults & ChangeDefault i can done but Door Marker is Incorrect.




2 Replies 2
Tamas Zolnai
Graphisoft Alumni
Graphisoft Alumni
Traro wrote:
Now GetDefaults & ChangeDefault i can done but Door Marker is Incorrect.



Hi Traro,

See answer on the original topic:
http://archicad-talk.graphisoft.com/viewtopic.php?t=48448
Tamás Zolnai
Graphisoft
Anonymous
Not applicable
I found the function "ACAPI_Favorite_GetDefaults ()" but when I used this function. and change the defult by used the function "ACAPI_Element_ChangeDefaults ()", some parameters are failed or error such as the dimension marker.
The Dimension Marker always show only the default but not show my favorite selection.

this is my code.



GS::UniString   name_Fav = gSelectionName; 
short      indexs_Fav = 0; 
API_Element   element, elemmarker, mask; 
API_ElementMemo   memo, memomarker; 

BNZeroMemory (&element, sizeof (API_Element)); 
element.header.typeID = gCurrentTypeID; 
element.header.variationID = gCurrentVarID; 
element.header.index = index_list; 

BNZeroMemory (&memo, sizeof (API_ElementMemo)); 
BNZeroMemory (&elemmarker, sizeof (API_Element)); 
BNZeroMemory (&memomarker, sizeof (API_ElementMemo)); 

err = ACAPI_Favorite_GetDefaults(&element, &memo, &elemmarker, &memomarker, &name_Fav, &indexs_Fav); 

err = ACAPI_Element_ChangeDefaults (&element, &memomarker, &mask);

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!