Jump to content
Patrick Winkler

Attach Symbol to Cursor

Recommended Posts

Hello,

 

when a symbol is double clicked in the Resource Manager it gets attached to the cursor.

Is it possible to recreate that behaviour by a VS command?

 

I need this for a tool that creates a symbol. The symbol should be ready to insert when the dialog is confirmed.

 

Bildschirmfoto 2016-12-07 um 10.30.51.png

 

Bildschirmfoto 2016-12-07 um 10.34.29.png

 

Edited by Patrick Winkler

Share this post


Link to post

What about the MouseDown command? It won't give you a preview of your symbol, but you could let the user decide where to insert the symbol that way..

  • Like 1

Share this post


Link to post

You can use the CallTool command to use the symbol insertion tool. Your script would set the active symbol definition prior. 

 

-Josh 

  • Like 1

Share this post


Link to post

Thanks for your proposals.

 

    kCallTool_2D_Sym = -209    
    vs.SetActSymbol('SymName')
    vs.CallTool(kCallTool_2D_Sym)

 

Edited by Patrick Winkler

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.

×