Update DATE and BOOLEAN properties using JavaScript?

Update DATE and BOOLEAN properties using JavaScript?

Matt__W
Advisor Advisor
559 Views
1 Reply
Message 1 of 2

Update DATE and BOOLEAN properties using JavaScript?

Matt__W
Advisor
Advisor

How does one go about updating properties such as DATE and BOOLEAN using JavaScript? I'm using a script similar to the one in this AKN I wrote a few years ago but I can't seem to get any properties that are either a date or boolean to update. I'm not sure if it's a formatting issue in the CSV file or if it's just not possible. I exported all building data from my model using the DATA TABLE > CSV EXPORT ALL function. I then made some edits to that file hoping I could update the model. I would assume the formatting for dates and booleans could be pushed back into InfraWorks as-is since the formatting in the CSV came directly from InfraWorks. Is it not possible with those two data types? Integer, double and string all update successfully.



Matt Wunch
Revit Subject Matter Expert/sUAS Pilot

Twitter | LinkedIn

AU2017 - Code Blue Dr Revit - How to Resuscitate Corrupt Revit Models

Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.

0 Likes
Accepted solutions (1)
560 Views
1 Reply
Reply (1)
Message 2 of 2

Matt__W
Advisor
Advisor
Accepted solution

Just wanted to follow-up and say I figured out what was wrong with the code. I was having a brain fade and had forgot to convert the data (which is text because it's in a CSV file) to DateTime and Boolean objects so InfraWorks can read it properly.



Matt Wunch
Revit Subject Matter Expert/sUAS Pilot

Twitter | LinkedIn

AU2017 - Code Blue Dr Revit - How to Resuscitate Corrupt Revit Models

Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.

0 Likes