Hello,
I need to change some Properties of a Steel Beam Element in Open Building Designer Update 8 using the C-Api "stfc-api"..
Until now I've been able to read the "LinearMember" out of the EditElementHandle and to change some Properties in it using
following Code:
virtual StatusInt _OnElementModify(EditElementHandleR eehSteelBeam) override { StatusInt statusInt; MSElementDescrP elmDescrP = eehSteelBeam .GetElementDescrP(); STFLinearMemberList* linearMemberListP=mdlSTFLinearMemberList_constructFromDescr(elmDescrP , false); //SUCCESS if (!linearMemberListP)return ERROR; STFLinearMember* linearMemberP=mdlSTFLinearMemberList_getLinearMember ( linearMemberListP ); //SUCCESS if (!linearMemberP)return ERROR; DPoint3d pP = { 0,0,0 }; DPoint3d pQ = { 0,0,0 }; mdlSTFLinearMember_getPQPoints(linearMemberP,&pP, &pQ); //SUCCESS pQ.z += 2000000; statusInt= mdlSTFLinearMember_setPQPoints(linearMemberP, &pP, &pQ); //SUCCESS statusInt=mdlSTFLinearMember_save(linearMemberP, false); //ERROR: 32768 //statusInt = mdlSTFLinearMember_replaceInDgn(linearMemberP); ////ERROR: 32768 mdlSTFLinearMemberList_free(&linearMemberListP); return SUCCESS;
But when I try to save it to the DGN It allways brings The ErrorSatus (StatusInt) = 32768 and nothing happens.
I tried "mdlSTFLinearMember_replaceInDgn" , "mdlSTFLinearMember_save" and "mdlSTFLinearMember_addToDgnExt" but nothing is working.
Hopefully there is sombody out there with some experience with the Open Building SDK.
Many thanks in advance for your efforts
Greetings
Manuel Höger
Softwareentwicklung | mhoeger@cadcom.de Tel: +49 30 - 53 63 62 – 44 | Mobil: +49 162 - 53 18 640
cadcom® Systemhaus GmbH Stralauer Platz 33 | Kontorhaus |10243 Berlin Tel: +49 30 - 53 63 62 – 0 | Fax: +49 30 - 53 63 62 - 30 www.cadcom.de
Hi Manuel Höger,
One of our OBD developers saw this issue and filed Bug 792753 (linked to SR 7001367497) for this issue to address in a future release and/or will provide any work-around recommendations if any can be provided.
Thank you,Bob
Answer Verified By: Marc Thomas