- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I hope someone can help, I’m using Revit 2026 and c#.
My issue is I’m collecting Family parameter values and copying it into other new Family shared parameter. The data is collected using code derived from
The Building Coder: Family Parameter Value
(Thank you Jeremy)
Everything appears to work perfectly except for double values. I believe the issue relates to the fact that Revit stores data in imperial and I’m currently working in metric.
The Method I’m using to add the values to my Family Shared Parameter is
else if (familyParam.StorageType == StorageType.Double)
{
if (Double.TryParse(familyParameterData.Value!, out double doubleValue))
{
mgr.Set(familyParam, doubleValue);
}
}When I compare the new values to the original some are correct some have fractions of millimetres to much or to little.
I hope someone has a solution for me.
Thank you in advance for your assistance.
Solved! Go to Solution.