Jump to content
Sign in to follow this  
Hippocode

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

Source:

http://developer.vectorworks.net/index.php/SDK:Parametric_Extended_Properties

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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.

×
×
  • Create New...