Jump to content
Developer Wiki and Function Reference Links ×

What is the SDK equivalent of VS:TrackObject?


Nebeor

Recommended Posts

I also see no other way than RunTemp tool.

 

You pass in the IID like this:

 

    gSDK->RunTempTool( Your_VWExtensionToolClass::_GetIID());

 

You could write the data of the tool into a static class member that you acces then from the menu command or which is saver you finsih the job in the ::PointAdded method of the VWExtensionTool.

 

 

 

Link to comment

@PatW I don't think that RunTempTool executes the tool immediately, but after the menu command has been finished.

This is unusual to me compared to calling the reset of one parametric object to another parametric object using the SDK. 

I think to rather try to work with a callback method that I pass to the tool.

Link to comment
4 hours ago, Nebeor said:

@PatW I don't think that RunTempTool executes the tool immediately, but after the menu command has been finished.

This is unusual to me compared to calling the reset of one parametric object to another parametric object using the SDK. 

I think to rather try to work with a callback method that I pass to the tool.

 

That's correct, RunTempTool() will send you away from the menu command, so any data that you need passed from the menu to the tool needs to be stored in wither static variables or written to saved settings. If you're doing something like collecting a point and returning to a dialog, you need to rebuild the dialog data after running the tool.

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