Nebeor Posted July 12, 2019 Share Posted July 12, 2019 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. Quote Link to comment
Pat Stanford Posted July 12, 2019 Share Posted July 12, 2019 In Vectorscript it would be SetObjectVariableBoolean(ObjectHandle, 6709, True). It should be similar in the SDK. Quote Link to comment
Nicolas Goutte Posted July 12, 2019 Share Posted July 12, 2019 Try: gSDK->SetObjectProperty(objID, kObjXPropPreventWallInsertion, true); (Where ObjID ist the MCObjectHandle.) Quote Link to comment
JBenghiat Posted July 12, 2019 Share Posted July 12, 2019 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. 1 Quote Link to comment
Nebeor Posted July 15, 2019 Author Share Posted July 15, 2019 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! 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.