Hippocode Posted April 8, 2014 Share Posted April 8, 2014 (edited) I've got a custom 2dpath object in SDK. I want to edit the path directly when doubleclicking. According to what I can find, this is what should make it work: EObjectEvent CObjThePoly2D_EventSink::OnInitXProperties(CodeRefID objectID) { // obtain the interfact for accessing the extended properties using namespace VectorWorks::Extension; VCOMPtr extProps( IID_ExtendedProps ); extProps->SetObjectPropertyChar( objectID, kObjXPropSupportProxyObjects, true); gSDK->SetObjectPropertyChar(objectID, kObjXPropEditGroup, kEditGroupPath); return kObjectEventNoErr; } it doesn't, and using any other option kEditGroupProfile, kEditGroupPath, kEditGroupCustom has no other result. When doubleclicking the path, I see a polyline. When doubleclicking that again I can finaly edit the path.. Source: http://developer.vectorworks.net/index.php/SDK:Parametric_Extended_Properties Edited April 8, 2014 by hippothamus Quote Link to comment
Hippocode Posted April 25, 2014 Author Share Posted April 25, 2014 Answer provided by the sdk mailinglist: extProps->SetObjectProperty(objectID, kObjXPropSpecialEdit, Sint8(kSpecialEditReshape)); extProps->SetObjectProperty(objectID, kObjXIs2DSurfaceEligable, true); extProps->SetObjectProperty(objectID, kObjXPropEditGroup, Sint8(kEditGroupCustom)); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.