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

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.


 

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.

×
×
  • Create New...