Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  

Edit path directly on doubleclicking the 2dpath object

Recommended Posts

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..



Edited by hippothamus

Share this post

Link to post

Answer provided by the sdk mailinglist:

extProps->SetObjectProperty(objectID, kObjXPropSpecialEdit, Sint8(kSpecialEditReshape));
extProps->SetObjectProperty(objectID, kObjXIs2DSurfaceEligable, true);
extProps->SetObjectProperty(objectID, kObjXPropEditGroup, Sint8(kEditGroupCustom));

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.