Jump to content
Developer Wiki and Function Reference Links ×

How do I avoid the wall insertion of my plugin?


Nebeor

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.

Link to comment

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
Link to comment
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!

Link to comment

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.

×
×
  • Create New...