libPart_updateSection problems
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-08
04:43 AM
- last edited on
2023-08-07
12:08 PM
by
Doreena Deng
2005-04-08
04:43 AM
Hello,
When I change a default value of a library part parameter for some strange reason the option 'set as default' on the library parts interface script is getting turned off. This is in AC v7.
My code basically does:
ACAPI_LibPart_GetSect_ParamDef(APILibObjectID, params, &a, &b, ¶msHdl);
memset(§ion, 0 sizeof(API_LibPartSection));
section.sectType = API_SectParamDef;
ACAPI_LibPart_UpdateSection(libInd, §ion, paramsHdl);
The default parameters for this library part get set just fine, but its annoying that this effects the interface script options.
Anyone know what I'm doing wrong, if this still happens in v9, or if there is a way to programmaticly set the 'use as default' option?
Thanks,
Adam
When I change a default value of a library part parameter for some strange reason the option 'set as default' on the library parts interface script is getting turned off. This is in AC v7.
My code basically does:
ACAPI_LibPart_GetSect_ParamDef(APILibObjectID, params, &a, &b, ¶msHdl);
memset(§ion, 0 sizeof(API_LibPartSection));
section.sectType = API_SectParamDef;
ACAPI_LibPart_UpdateSection(libInd, §ion, paramsHdl);
The default parameters for this library part get set just fine, but its annoying that this effects the interface script options.
Anyone know what I'm doing wrong, if this still happens in v9, or if there is a way to programmaticly set the 'use as default' option?
Thanks,
Adam
Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-08 06:28 AM
2005-04-08
06:28 AM
I am not sure this helps, but did you
ACAPI_LibPart_SetDetails_ParamDef to the parameters handle ?
( You can get the details using ACAPI_LibPart_GetDetails )
ACAPI_LibPart_SetDetails_ParamDef to the parameters handle ?
( You can get the details using ACAPI_LibPart_GetDetails )
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-11 09:52 AM
2005-04-11
09:52 AM
I was not doing it before but just tried it and the option still gets disabled. API_LibPartDetails doesn't seem to have anything to do with this option, not that I can find anything else that does.
Thanks anyway,
Adam
Thanks anyway,
Adam
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-05-03 02:11 PM
2005-05-03
02:11 PM
Hi Adam,
HTH,
Akos
adambutler wrote:The place for this would be in API_LibPartDetails, but it hasn't been published through that structure. We'll try to fix that in the next major release.
I was not doing it before but just tried it and the option still gets disabled. API_LibPartDetails doesn't seem to have anything to do with this option, not that I can find anything else that does.
Thanks anyway,
Adam
HTH,
Akos