Jump to content
JBenghiat

Custom tool event sink doesn't seem to be loading

Recommended Posts

I seem to be missing a step in getting a object insertion tool's event sink to run.  Just wondering if anyone can think of something to check.

 

I have the sink specified in IMPLEMENT_VWToolExtension.  I don't see any errors either at compile or run time.  The custom events don't seem to run, and if I put a break in the sink's constructor, I never reach it.  I compared to both the example modules and other plug-ins of mine, and I'm not seeing anything different.

Share this post


Link to post

Ok, figured this out, sort of. In trying to resolve, I disconnected the tool from the plug-in object, but was still getting PIO insertion options in the mode bar. This was a clue that the tool wasn’t loading from the current code. 

 

The first compiles if the tool used the default handler, so I had to remove and re-add it to the workspace. Appearantly, workspaces save a fair amount of the tool definition, so in order for the tool to be flagged with a custom UI I needed to remove it completely, and the implementation definition runs as part of the workspace process and not on each session. 

 

I had removed and re-added as part of previous attempts to get this to work, but I may have done so in conjunction with setting other options incorrectly. 

 

So the moral of the story is: when developing a custom tool and making significant changes to either the definition or implementation, remove and re-add to the workspace. 

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