Jump to content
Developer Wiki and Function Reference Links ×

Vectorscript Function Extension?

Pat Stanford

Recommended Posts

Yeah, I see there is an example, but I can't even tell that it is really an example. Does it actually do anything? Can it be compiled and installed and actually called?


This is probably the 6th time I have looked at the SDK and I have never been able to figure out enough of it to even do a "Hello World" object.  GRRRRR. The docs just don't work with my brain.

Link to comment

Short answer - yes. If you compile the project, you'll get a TesterModule.vwlibrary (assuming Mac), which if you install in your plug-ins, you have access to this function:




that takes two integers as input and returns their sum.


It will show up in the VS editor in the Test Category section.


As for the particulars of getting everything set up in Xcode or VisualStudio, that's a longer conversation. Also crucial is ModuleMain.cpp, which registers the function when Vectorworks loads. The developer wiki has some information on the universal name and UUID.

Link to comment
  • 3 weeks later...

I can provide you with some other samples if you need some. They come in handy sometimes, the benefit is that such a tiny script has access to your complete SDK. If you have SDK bases plug-ins you can use this to make certain data or functionality accessible through VS.

I have made several of those for my plug-ins. e.g.:

The ability to activate our license to use our software for the current session, bypassing our default activation method. It requires a custom hash to unlock the current specific day.




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

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