Jump to content

Editing user defined fields


Recommended Posts

I have just figured out how to edit user defined fields for plugin objects, but i was wondering is there a way of adding more of these fields?

I have tried the obvious, and have added more of them in the xml file but they don't come through into vectorworks...

Anybody have any ideas?

VW 2009

Link to comment

You need to explain further which kind of fields are you trying to add to a pio. Pio's (*.vso) normally do not have a xml file associated with them. If you are referring to record fields, you can attach records to any object or add parameters to the pio object info tab through the vectorscript editor if it is a VS pio.

Link to comment

What does PIO stand for?

Basically, i am editing user defined fields for doors and windows by changing the xml file within my vectorworks application, but i need to be able to add more than 10 user defined fields, i have thoroughly been through the data fields that come with vectorworks and not all of them suit what i would like to appear on my schedules..

Another question though, if my vectorworks file containing user defined fields is opened up by somebody else will the data stay the same? Or must they have the xml file within vectorworks edited in the same manner?

Link to comment

I think editing the xml file is a lot closer to the metal than you need to go. (...although I'd like to see how you did that!)

You can attach more than one record format to an object. Simply make a record format with the data fields you need, select all the doors and attach.

This data can be in the same schedule as the regular door data and the data will easily be viewable and editable by other VW users who have not modified their flux capacitors.

Example attached.

hth

mk

Link to comment

What does PIO stand for?

Plug-In Object such as window, door, wall, stair, etc.

if my vectorworks file containing user defined fields is opened up by somebody else will the data stay the same? Or must they have the xml file within vectorworks edited in the same manner?

I would think you need the same file because it only exists in a specific folder in your computer.

I think editing the xml file is a lot closer to the metal than you need to go. (...although I'd like to see how you did that!)

The file is the DoorPreferences.xml located in the Plug-Ins\Common\Data folder. Modifying the user fields in this file will appear in the Data Tab of the door Settings.

You can attach more than one record format to an object

If the PIO is a vectorscript, you may also be able to add parameters/fields to the PIO record without breaking the script and to be safe, it should be tried on a copy first. This is more convenient because it will appear on the shape tab rather than the data tab of the Object Info Palette (OIP)

Link to comment

Start with the standard default schedule.

Add columns (right click on a cell > Insert > Column)

or (little triangle > Insert > Column).

Then in the header row type in =(record format name.field name)

Dealing with worksheets can be unintuitive at first. Let me know if this doesn't answer your question. I'd be happy to do a step by step.

Especially if you could demonstrate editing the xml files!

mk

Link to comment

Yes you're right totally unintuitive!

Could you talk me through it in more detail?

In order to edit the XML files you simply locate them in the vectorworks application folder under, plugins, common, data, then insert the user field name between so for exmaple, door swing left

Got it?

Where you say "Then in the header row type in =(record format name.field name)" i don't quite understand, can you give an example of "=(record format name.field name)" with 'door swing left' in it, just so i can tell where exactly to put the name..

Thanks, Alfie

Link to comment

Sure

The process is...

1. Create new record format w/ fields you need

2. Select all the doors > OIP Data Tab > check the box next to the new record format

3. Insert column(s) in existing schedule

4. Click the little triangle in the top left of the worksheet > make sure Database Headers is checked.

5. In this example you type into cell 4G =('MyNewRecordFormat'.'MyNewField')

MyNewRecordFormat is the name of the record format created in step 1

MyNewField is a field in that record format.

Enter whatever data you want into the cells. There is no Fill>Down feature. But you can copy one cell then select a range of cells and paste.

Or you can enter the data for a door by selecting the door > OIP Data Tab ...

then in the second box click on the field and enter the data in the 3rd box

Recalculate the worksheet after you do that or add or subtract doors.

Repeat step 4 to uncheck Database Headers to clean it up.

There is also another worksheet in the file that shows only the new record format.

The default door schedule is built the same way. There is a (hidden!) record format called 'door' with fields like 'IDLabel', 'Config', 'Top Shape' etc.

hth

mk

Link to comment

alfie

Great question - I have zero idea...

Maybe someone can open one of the drawings in this thread in revit and check it out.

My suspicion is that it won't. I don't remember what 2009's capabilities are with ifc, but perhaps there is a hook there?

Vincent

That sounds like a very reasonable standard. I often wish there was a way to attach the data from any field in PIO as a label in the symbol with definable - and yet adjustable- positions.

VW Spotlight does this brilliantly. But it only works on Spotlight instruments.

mk

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