Jump to content
Developer Wiki and Function Reference Links Read more... ×

Add tool Preferences to SDK tool

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?


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.

Share this post

Link to post

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

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.