shodkin Posted September 21, 2019 Share Posted September 21, 2019 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? Quote Link to comment
michaelk Posted September 21, 2019 Share Posted September 21, 2019 Are the data you want to put into the user fields unique to a fixture or just that fixture type? Quote Link to comment
shodkin Posted September 21, 2019 Author Share Posted September 21, 2019 The fixture type, so an ETC Source 4 19 Degree would be 10201, a 26 degree would be 10202, a 36 would be 10203 etc Quote Link to comment
michaelk Posted September 21, 2019 Share Posted September 21, 2019 What version of VW? Quote Link to comment
shodkin Posted September 21, 2019 Author Share Posted September 21, 2019 2019 Spotlight SP4 Quote Link to comment
Sam Jones Posted September 22, 2019 Share Posted September 22, 2019 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? Quote Link to comment
Vectorworks, Inc Employee klinzey Posted September 23, 2019 Vectorworks, Inc Employee Share Posted September 23, 2019 @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. 4 Quote Link to comment
shodkin Posted September 23, 2019 Author Share Posted September 23, 2019 Perfect Klinzey, thank you! Quote Link to comment
Sam Jones Posted September 23, 2019 Share Posted September 23, 2019 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. 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.