Jump to content
Developer Wiki and Function Reference Links ×

Add tool Preferences to SDK tool


Nebeor

Recommended Posts

I made an extension tool that derives from VWExtensionTool like in the provided SDK samples.

How can i add preferences AKA object properties or parametric record to this, so that i can edit those as settings for the tool, like in this little screenshot?

image.thumb.png.bb7584e35ebad20504140b2d1914c316.png

I was expecting a solution similar to VWExtensionParametric for VWExtensionTool  but i didn't found a way to include the parameter definition array, 

Thanks beforehand for your advice.

Link to comment
  • 1 month later...

Is this an insertion tool for an object, or just a tool?

 

If the former, you can just link the tool to the object with the /*ParametricName*/ value in the tool definition.

 

If it's a standalone tool, decide if the preferences will be application or document specific.  If application, use Get/SetSavedSetting() to store values.  If per document, you need to create a hidden record format and store values to the record attached to nil.  (That will store to the record definition in the document header).  Either way, you will have to write your own dialog for user interaction.

  • Like 1
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...