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

Label Favorite

ReignBough
Booster

I created a function that will generate a label based on favorite.

 

 

API_Favorite favTag = {};
favTag.name = "DOOR TAG";
favTag.memo.New();
favTag.properties.New();
favTag.classifications.New();
favTag.elemCategoryValues.New();
err = ACAPI_Favorite_Get(&favTag);
if (err != NoError)
{
    DebugPrintlnf("ACAPI_Favorite_Get failed (Name: DOOR SIGNAGE TAG)");
    ACAPI_DisposeElemMemoHdls(&favTag.memo.Get());
}
API_Element& elemTagDef = favTag.element;
API_ElementMemo& memoTagDef = favTag.memo.Get();
err = ACAPI_Element_Create(&elemTagDef, &memoTagDef);

 

 

But the generated tag (especially the "SYMBOL LABEL" part) is not the same as the favorite.

 

EDIT

I looked into the returned value of ACAPI_Favorite_Get() and found out that the value of textWay is still APIDir_Parallel. With this, I harcoded the value of textWay to APIDir_General and also the value of u.symbol.fixedAngle to 0. But the generated tag still uses APIDir_Parallel for textWay and 1 for u.symbol.fixedAngle.

~ReignBough~
ARCHICAD 24 INT 4018 FULL (from AC18)
Windows 10 Pro, Intel Core i7-4790 CPU @ 3.60GHz, 32.0GB RAM, 64-bit OS
0 REPLIES 0

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!