Jump to content

Which custom object property do I need to set to enable context menu events?

Recommended Posts

Which custom object property do I need to set to enable context menu events? When I right click on my PIO in the drawing it should receive event 45 kObjOnContextMenuInit but this never happens. I assume there is an object property I need to set using SetObjPropVS() to enable this behaviour for my PIO, does anyone know what this is?

Share this post

Link to post

You are correct.  FYI, you can find information for all ObjProp constants in the SDK file MiniCadHookIntf.h.  Here is the section on context menus.


const ObjectPropID kObjXPropHasContextMenu = 21;     //         YES         // Sends ObjectContextMenuEvent::kAction_Init and ObjectContextMenuEvent::kAction_Event
//       // Boolean                                  //                     // The parametric can build up context menu and respont to context menu items selection
//		 Parametric has custom context menu			 //                     // 


  • Like 1

Share this post

Link to post

Awesome! Thanks that is great. That file has just unlocked so many mysteries that have been bugging me for ages.

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.

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