Ryan Russell Posted June 12, 2023 Share Posted June 12, 2023 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 Quote Link to comment
Pat Stanford Posted June 18, 2023 Share Posted June 18, 2023 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 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. Quote Link to comment
Elite Exhibits Posted June 19, 2023 Share Posted June 19, 2023 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 1 Quote Link to comment
Elite Exhibits Posted June 19, 2023 Share Posted June 19, 2023 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 Quote Link to comment
Pat Stanford Posted June 22, 2023 Share Posted June 22, 2023 I just came across this page documenting more about criteria. Perhaps it will help. https://developer.vectorworks.net/index.php/Search_Criteria_Format Quote Link to comment
Recommended Posts
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.