Mitchell Brooks Posted September 3, 2009 Share Posted September 3, 2009 Hi, I am trying to customize the information on the Door PIO settings to include a Door Type (a letter designation), which our office typically uses to indicate the look of the door leaf(s) (all glass, top and bottom glass, top glass only, 1/4 glass top, etc.) I am using the User Field 1 for this. Is there a way to rename this field for my own use? If I am using a number of user fields, that would be handy and reduce confusion. I just figured out (by searching this board) that the name for the User Field in a Door Schedule database line is "UserFld1", not something friendly like "UserField1". Counterintuitive and not documented, as far as I know. Thanks. Quote Link to comment
Vectorworks, Inc Employee Judah Warshaw Posted September 3, 2009 Vectorworks, Inc Employee Share Posted September 3, 2009 Hi Mitch, In you user folder, you can find the following file: Plug-ins\Common\Data\DoorPreferences.xml There you can customize the names of the user fields. Find the user field you would like to customize, for example, for user field 1, find: UserFld1 Add what you would like for the name, in your case, I believe, Door Type. It would then read: UserFld1 Door Type In the door settings dialog, it will now show as Door Type. One drawback though: If you create a worksheet and want this to you, you will need to manually edit the header line to also read Door Type. This is a simple edit in the worksheet itself. I how this helps. Let me know if you need more. Quote Link to comment
Mitchell Brooks Posted September 3, 2009 Author Share Posted September 3, 2009 Judah, Got it. I have made the change and see how that all works now. Thanks. To make this work office-wide, I would have to do this to a set of common preferences I guess. How would that work, do you think? Quote Link to comment
Vectorworks, Inc Employee Judah Warshaw Posted September 3, 2009 Vectorworks, Inc Employee Share Posted September 3, 2009 Like many other resources, the door PIO will first look at the user folder for the xml file, then any workgroup folders, and finally in the application folder. If you remove this file from your user folder and place it in a shared workgroup folder, then have all users configured for that folder as a workgroup folder, they should get the change. Quote Link to comment
genie Posted September 3, 2009 Share Posted September 3, 2009 (edited) Judah, Can this be done with the Windows too? I can't seem to find a corresponding xml for window preferences. Also, how can we set up a workgroup folder? or can you direct me to tutorial that explains that? Thanks! Edited September 3, 2009 by genie Quote Link to comment
Jonathan Pickup Posted September 3, 2009 Share Posted September 3, 2009 you can edit some Object Info palette labels by adding an Alternate name, by editing the Parameters in the Script Editor, but I can't see the door listed. Quote Link to comment
Pat Stanford Posted September 3, 2009 Share Posted September 3, 2009 Jonathan, That is the difference between the different development environments. PIOs can be written in either VectorScript of using C and the SDK. VectorScript PIOs can be edited in the Script Editor. SDK PIOs can not. But it appears that SDK PIOs use the XML data files to store the parameters and can be edited there. I have a question in on what happens if you edit a critical field (like the door width) to use a different name/label. I hope we will find out soon. 1 Quote Link to comment
genie Posted September 3, 2009 Share Posted September 3, 2009 Jonathan, Thanks for the tip. This is the first time I'm using Script Editor. I was able to modify the "Alternate names" but any change to the 'Default' values, e.g. ID Prefix "W" (we usually use prefix B for windows), or Egress Compliant "FALSE" (I wanted it to say NONE instead) doesn't seem to do anything. Quote Link to comment
Vectorworks, Inc Employee Judah Warshaw Posted September 4, 2009 Vectorworks, Inc Employee Share Posted September 4, 2009 VectorScript PIOs can be edited in the Script Editor. SDK PIOs can not Just to verify, this is correct. If you don't see the plug-in listed in the VectorScript editor, you can't make any changes with that tool. I have a question in on what happens if you edit a critical field (like the door width) to use a different name/label. Right now, the only fields you can change are the ones that appear in the door's related xml file. The names used for the user fields, and the default setting for hinge preference. I specifically built the xml file with all usable fields. 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.