rosebud5 Posted September 20, 2016 Share Posted September 20, 2016 Hello, I am wondering if there is way to change the default door trim sizes that always seem to be set to 4" and 6". Most of the time with interior doors, I want a door that has 3.5" trim, 3/4" thick on both sides. Time consuming to change each new door Thanks Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted September 20, 2016 Vectorworks, Inc Employee Share Posted September 20, 2016 What version of Vectorworks are you using? Vectorworks 2017 introduced Door andWindow Styles. I believe that might help make things easier. If you'd like to actually change the trim sizes in the default content, you could create a script to set them for you. What I would do is this: Go to your Vectorworks User folder. You can do this by opening the VW Preferences, going to the User Folders tab and clicking on the "Reveal in Finder" button (Mac) or "Browse" (Windows). Find the files (in the Libraries/Defaults folder) you'd like to make changes to. Copy, rename and place the files in the Libraries/Favorites folder Open each file, run a script to set the trim sizes and save. When your done, the doors will be available as a favorite in your resource manager. So the only thing missing is the script. I'll see what I can do as time permits. If anyone wants to beat me to it, feel free to do so. ;-) Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted September 29, 2016 Vectorworks, Inc Employee Share Posted September 29, 2016 Here's the script. If you open the script in a text editor, you will find the following lines: SetRField( hPIO, hParamRecName, 'IntTrim', 'TRUE' ); {//// 'TRUE' = Show Trim, 'FALSE' = No Trim } SetRField( hPIO, hParamRecName, 'IntTrimWidth', '3' ); {//// trim width in document units} SetRField( hPIO, hParamRecName, 'IntTrimDepth', '0.75' ); {//// trim depth in document units} SetRField( hPIO, hParamRecName, 'ExtTrim', 'TRUE' ); {//// 'TRUE' = Show Trim, 'FALSE' = No Trim } SetRField( hPIO, hParamRecName, 'ExtTrimWidth', '3' ); {//// trim width in document units} SetRField( hPIO, hParamRecName, 'ExtTrimDepth', '0.75' ); {//// trim depth in document units} Change the values shown here in red as needed. Set All Door Style Trim.vs.zip Quote Link to comment
rosebud5 Posted October 6, 2016 Author Share Posted October 6, 2016 Thanks for that, super helpful as usual!! Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted October 6, 2016 Vectorworks, Inc Employee Share Posted October 6, 2016 Glad to help! :-) Quote Link to comment
rosebud5 Posted October 17, 2016 Author Share Posted October 17, 2016 Hi again, I am trying to used the script that you helped me out with but I am not very good with scripting. I have imported the script into my existing doc and created a new vector script. I select an existing door and run the script and nothing happens. I create a new door and run the script and nothing happens. I know that there is a critical part to this that I am missing. Please advise if possible. Thanks! Quote Link to comment
rosebud5 Posted October 17, 2016 Author Share Posted October 17, 2016 Sorry, I forgot to read the first part, all good, no need to reply. Thanks! 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.