Message 1 of 5
Issue with AsValueString()
Not applicable
05-10-2019
02:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
First of all, i'm working in meter.
As i could read on somes post, all data are store in feet in DB.
So my problème is that i have a value as '0.336 m³'
When i want to get it as : myparam.AsValueString(), i get '0.34 m³'
When i want to get it as myparam.AsDouble(), i get '11.84..' (the value as stored in database of revit)
The problem is that i don't find out to only get my value as shown : '0.336 m³'.
I read that i could use formatOptions, but i don't figure it out how to do..
I also read that use the method AsValueString() isn't advise, i cant' use builtinparameter for that.
Can you help me to get that ?
Best regards,