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

use APIDb_ModifyHotlinkNodeID to modify hotlinknode name not work?

Anonymous
Not applicable
Hi.
I use APIDb_ModifyHotlinkNodeID to modify hotlinknode name,but it does not work.

In the HotLink Module Manager ,the hotlink name is also the old name.

the code e.g:
GS::snuprintf(hotlinkNode.name, API_UniLongNameLen - 1, L("Hotlink updated by test add-on"));
			
			
			err = ACAPI_Database (APIDb_ModifyHotlinkNodeID, &hotlinkNode);		// rename hotlink node
			if (err == NoError && hotlinkNode.guid != APINULLGuid)				// update cache content
				err = ACAPI_Database (APIDb_UpdateHotlinkCacheID, const_cast<API_Guid*> (&hotlinkNode.guid));

			if (err == NoError) {
				char guidStr[64];
				APIGuid2GSGuid (hotlinkNode.guid).ConvertToString (guidStr);
				WriteReport ("Hotlink node is updated successfully: {%s}", guidStr);
			}
2 REPLIES 2
akomporday
Graphisoft
Graphisoft
Hey DevJeer,
What ErrCode do you get from the function call?
Anonymous
Not applicable
akomporday wrote:
Hey DevJeer,
What ErrCode do you get from the function call?
Hi.

I get NoError from the function call.

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!