Jump to content
Nebeor

How do I avoid the wall insertion of my plugin?

Recommended Posts

I don't want my plugin to interfere with the Vectorworks walls because it isn't a door, neither a window.

so I tried to tweak with some object variables (varCreateCustomObjectDontInsertInWall),   

as well the SParametricDef struct that belongs to the plug-in object but without result.

How can I block the wall insertion of my plug-in object?

I'll thank you beforehand for your reply.

Share this post


Link to post

In Vectorscript it would be SetObjectVariableBoolean(ObjectHandle, 6709, True). It should be similar in the SDK.

 

Share this post


Link to post

In _EventSink::OnInitXProperties()

 

set:

 

extProps->SetObjectProperty(objectID, kObjXPropPreventWallInsertion, true);

 

varCreateCustomObjectDontInsertInWall is actually an application preference (var* are prefs and ov* are object variables). To use that, you would implement in the handle complete event of your custom tool — get the current setting, set to true, restore setting. This is equivalent of clicking the option in the mode bar.

  • Like 1

Share this post


Link to post
On 7/12/2019 at 6:11 PM, JBenghiat said:

In _EventSink::OnInitXProperties()

 

set:

 

extProps->SetObjectProperty(objectID, kObjXPropPreventWallInsertion, true);

 

varCreateCustomObjectDontInsertInWall is actually an application preference (var* are prefs and ov* are object variables). To use that, you would implement in the handle complete event of your custom tool — get the current setting, set to true, restore setting. This is equivalent of clicking the option in the mode bar.

Thank you Joshua, this makes completely sense!

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.


 

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