Jump to content

Assign Default values to the "User Field 1, 2 , 3 etc"


shodkin

Recommended Posts

Hi

 

Is it possible to assign a default value to a User Field variable, so that every time an Lighting Device is inserted the User Field is pre-populated with a certain value, in the same way that weight, wattage etc are?

 

We use a database system to manage our internal stock levels and it would be really handy if we could generate a report for each event which, along with the lighting devices name etc, also outputs our asset number for the devices we are using? 

 

 

 

Link to comment

The quick answer is no.  The fields in the Light Info Record that is attached to the symbols for each light are matched to fields in the Lighting Device parameters.  There are not user field record fields in the Light Into Record.  If you were to add them, the Lighting Instrument insertion tool wouldn't know to copy them.  It would be possible to write a vectorscript to insert a value into a user field based on the Instrument Type value of the Lighting Device.  This command would need a file to look up the values and a user interface for you to edit the file.  How much is it worth to you?

Link to comment
  • Vectorworks, Inc Employee

@shodkin Take a look at "Additional default records"

https://app-help.vectorworks.net/2020/eng/index.htm#t=VW2020_Guide%2FSetup%2FSpotlight_preferences_Lighting_devices_Parameters_pane.htm

If you create a record with filed names matching a parameter of the lighting device (i.e. User Filed 1) and attach the record to the symbol, the lighting will copy these values into the lighting device when inserted.

 

  • Like 4
Link to comment
7 hours ago, klinzey said:

@shodkin Take a look at "Additional default records"

https://app-help.vectorworks.net/2020/eng/index.htm#t=VW2020_Guide%2FSetup%2FSpotlight_preferences_Lighting_devices_Parameters_pane.htm

If you create a record with filed names matching a parameter of the lighting device (i.e. User Filed 1) and attach the record to the symbol, the lighting will copy these values into the lighting device when inserted.

  

 

Very cool.  Who knew.

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