Unable to change parameter "B"
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-15
03:46 PM
- last edited on
2023-07-13
04:19 PM
by
Doreena Deng
2015-06-15
03:46 PM
CHCopyC ("B",chgParam.name); chgParam.realValue = Value; err = ACAPI_Goodies (APIAny_ChangeAParameterID, &chgParam, NULL);
I change parameter "B" value and after using function:
err = ACAPI_LibPart_GetParams (LibIndex, &aa, &bb, &addParNum, &getParams.params) ;
"B" value turns back to "default" as it was before. How could i fix this so calling "B" (with ACAPI_LibPart_GetParams) returns changed value ?
Other parameters works fine have just problem with "A" and "B" after using ACAPI_LibPart_GetParams.
Labels:
- Labels:
-
Add-On (C++)
5 REPLIES 5
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-16 12:03 PM
2015-06-16
12:03 PM
ACAPI_ELEMENT_MASK_SET (mask, API_ObjectType, yRatio); memo.params = getParams.params;
Maybe there is an issue with mask? By using mask differently could i get changed "B" after using ACAPI_LibPart_GetParams ?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-17 07:59 AM
2015-06-17
07:59 AM
Now i ran parameter change function again after ACAPI_LibPart_GetParams, it seams that parameter have changed, but when creating object it creates object without changed "B" parameter although API shows "B" is changed value.
I'm surely missing something. Parameter update or something..
I'm surely missing something. Parameter update or something..
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-17 10:46 AM
2015-06-17
10:46 AM
Soooo...
I didn't solve my issue, but!
By using elem.object.xRatio = valueX;
elem.object.yRatio = valueY;
I did find workaround to get desired A and B positions. No idea why i couldn't change A and B.
I didn't solve my issue, but!
By using elem.object.xRatio = valueX;
elem.object.yRatio = valueY;
I did find workaround to get desired A and B positions. No idea why i couldn't change A and B.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-17 11:30 AM
2015-06-17
11:30 AM
Rinovo wrote:The axial geometry of library parts is a bit messy in the API. If we're setting trying to set the axial width (for example) we set both the 'B' parameter and the
Soooo...
I didn't solve my issue, but!
By using elem.object.xRatio = valueX;
elem.object.yRatio = valueY;
I did find workaround to get desired A and B positions. No idea why i couldn't change A and B.
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-17 12:39 PM
2015-06-17
12:39 PM
Thanks Ralph, for pointing out useXYFixSize.
Now i see why xRatio didn't multiply, i was already wondering why didn't it multiply.
My first though was to use xRatio multiplier to calculate desired 'B' width. Turned out i can just set xRatio as desired width value.
Now i see why xRatio didn't multiply, i was already wondering why didn't it multiply.
My first though was to use xRatio multiplier to calculate desired 'B' width. Turned out i can just set xRatio as desired width value.