Author:Ralph Wessel
Posted: Mon Oct 19, 2015 3:23 pm (GMT+1)
The code you've written is almost right. Try getting the existing parameters with ACAPI_LibPart_GetParams and then append the new parameters in addPars. You might be able to use BMHandleAndHandle, but that depends on whether the result from ACAPI_LibPart_GetParams is an ordinary handle. The documentation advises disposing of it with ACAPI_DisposeAddParHdl, which suggests it's not an ordinary GSHandle. The safest is probably to allocate a handle large enough to accommodate the new and old parameters and populating that.
_________________
Ralph Wessel
Cadimage
Posted: Mon Oct 19, 2015 3:23 pm (GMT+1)
gehairing wrote: |
Thanks for your reply. I thought getting the current section with GetSection and adding the new data with GetSect_ParamDef would update the section with the new data. That's what i understand after reading the API doc. But my english is not so good so i probably misunterstood this. Do you have an idea how i can : - Get actual parameters, - Add a few new ones, - Set all back again. |
The code you've written is almost right. Try getting the existing parameters with ACAPI_LibPart_GetParams and then append the new parameters in addPars. You might be able to use BMHandleAndHandle, but that depends on whether the result from ACAPI_LibPart_GetParams is an ordinary handle. The documentation advises disposing of it with ACAPI_DisposeAddParHdl, which suggests it's not an ordinary GSHandle. The safest is probably to allocate a handle large enough to accommodate the new and old parameters and populating that.
_________________
Ralph Wessel
Cadimage