Jump to content

Script Resource(s)?


Recommended Posts

All,

 

Looking for more resources on "Scripting", any suggestions?

Is there a known resource to identify, or better understand how to better interpret the ongoings of things inside VW.

 

Examples:

HIDE TEXT - Hide(INSYMBOL & INVIEWPORT & (T=TEXT));

SELECT 3D DECK JOISTS - DSelectAll; SelectObj(INSYMBOL & INVIEWPORT & (C='3d-deck joists’));

 

Thanks in advance for your time.

 

- Ryan Russell

Link to comment

Those are both more examples of Criteria than scripting.

 

The InSymbol makes the code search inside of symbols placed in the drawing as well as objects in the drawing.

InViewport makes the code search viewport annotations.

T=Text means to find Text objects

C='3d-deck joists' means to find objects that have a class of '3d-deck joists'

 

If you are looking for further Criteria information, then Appendix E of the Vectorscript Function Reference is the place to start;  https://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix_E

 

There is also a local version at image.png.e804d12cef072563a71a6d6efa87fda2.png if you prefer that to the on-line version.

 

What kind of scripting are you looking to do and we can offer better suggestions.

 

Often the base resource is the Forum where you can see working examples of full scripts.

 

Lots of people here who will be happy to help you get started if you want to script.

Link to comment

Ryan

 

Try Custom Visibility  - (see attached)

 

Create a script by selecting parameters from the list in the Criteria Dialog Box.

 

Note that you need to have "one of" what  you want to hide, in the drawing already, or it does not show up in the options under Type.

 

Make a Show All Script also - Show All is the last item on the pull down

 

After you create the script with  Custom Visibility  edit it it in the Resource Manager and you will see "what it is"

 

Peter

Test Hide Text.vwx Test Hide Text v2015.vwx

  • Like 1
Link to comment

Ryan

 

Custom Selection  should create a script also - depends on how you created, colored, classed the Deck Joists

 

see  attached

 

Again ... After you create the script with  Custom Selection  edit it it in the Resource Manager and you will see "what it is"

 

In the Resource Manager  you are also able to duplicate and edit. Easier if there are many items to select individually. 

          Look at the difference in the two Select Circle Symbol scripts.

 

 

Peter

Selection Custom Selection Text.vwx Selection Custom Selection Text v2015.vwx

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