2011-09-20 02:01 PM - last edited on 2023-08-02 09:14 PM by Doreena Deng
2011-09-21 01:22 AM
frankito5 wrote:Take a look at the documentation for
i would like to modify the field from my API and automatically change this paremeter in the object i have alredy drawn.
2011-09-22 10:36 AM
2011-09-22 11:58 AM
frankito5 wrote:I may have misunderstood your question - do you want to change a parameter in a library part (the file that defines the object) or a parameter of an instance of that object placed in the floor plan?
I have alredy checked all the calls which modify a parameter return the correct expected value so, there is something wrong. I don't know exactly how the system recognizes my object and if it is looking for the parameter i'm trying to modify in the correct library and so on, but when i draw my object from the API, the field 'inc' is still the previous value.
2011-09-22 12:37 PM
I may have misunderstood your question - do you want to change a parameter in a library part (the file that defines the object) or a parameter of an instance of that object placed in the floor plan?I think is the second one. I have created a GDL object and i draw it from an API. In this API i have a dialog where u can set the inclination of this object. When i designed this object i gave it 0º inclination, but what i want is to modify this inclination from the API and draw it directly with the inclination alredy modified. Do you know what i mean? Thank you for your patience.
2011-09-23 10:45 AM
frankito5 wrote:Wouldn't it be the same if you did this in 2 consecutive steps?
what i want is to modify this inclination from the API and draw it directly with the inclination alredy modified.
2011-09-23 12:42 PM
2011-09-26 09:28 AM
2019-02-27 02:48 PM
paramOwner.libInd = libPart.index; paramOwner.guid = element.header.guid;I got error -2130313112 here:
error = ACAPI_Goodies (APIAny_ChangeAParameterID, &chgParam, nullptr);what could be wrong with my parameter?
chgParam.index = 0; CHCopyC ("А", chgParam.name); chgParam.realValue = 77.0;
2019-03-11 04:55 PM
elemHead = (API_Elem_Head **) BMAllocateHandle (sizeof (API_Elem_Head), ALLOCATE_CLEAR, 0); (*elemHead)[0].typeID = API_ObjectID; (*elemHead)[0].guid = guid; ACAPI_Element_ChangeParameters (elemHead, 1, &element, &memo, &mask);