Due to a scheduled maintenance, a maximum 20 minutes license delivery outage may be expected on July 6 2024 (Saturday) between 6PM to 8PM (CEST).
Archicad C++ API
About Archicad add-on development using the C++ API.

Why can't only ACAPI_LibPart_GetSect_ParamDef work?

LeeJaeYoung
Virtuoso
Libpart_test
static void Do_CreateLibraryPart (void)
....
err = ACAPI_LibPart_GetSect_ParamDef (&libPart, addPars, &aa, &bb, nullptr, &sectionHdl);
....
>>>>>>
...
GS::UniString passStr1; 
passStr1 = "12341234";
 
err = ACAPI_LibPart_GetSect_ParamDef (&libPart, addPars, &aa, &bb, nullptr, &sectionHdl, &passStr1);
 
....
 
what's wrong?
 
It's really hard because it seems like it can be done, but it can't be done. ^^
If you can't create a new file with your password, please say no.
 
AC27 on window 11
5 REPLIES 5
sayon3d
Booster

Hi Lee,

I´m not familiar with scripting but take a look at this.

https://gdl.graphisoft.com/reference-guide/expressions

 

Maybe there are some restrictions and rules to it.

Good Luck.

 

I don't understand what you mean.
Can I ask for a little clarification?

AC27 on window 11

Can you explain us first, what that script does, or what do you want to create, in Words?

I am studying libpart_test among API samples.
The manual says that you can use passwords in functions.
If you change the code of static void Do_CreateLibraryPart (void) as above,
It is not created at all.
That's why I asked you a question.
The remaining two functions with passwords work.

AC27 on window 11
LeeJaeYoung
Virtuoso

It seems to me that I am misjudged in my greed.
What I want to hear is that it is not possible to set a password with the API, but since I do not hear an answer, it seems to be an illusion that this is the correct answer.
The password used here seems to be used when bringing something with a password, not setting. (Like the other two..)

AC27 on window 11