Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Revit Developers, I wanted to ask how Can I set the units in Revit C# into meters, Whenever I use a double(number) value it automatically uses the double values as Feet. For example, I have set the units to Meters in Revit before using my add. in. And I have used 10 as a double value to create an offset, however, the offset value is 3.048 (meters) which is 10 Feet.
take this code for example:
Curve curves2 = curve1.CreateOffset(10, new XYZ(0, 0, 1)); the 10 value here is automatically changed into feet
How can I make the C# use the selected unit in Revit (in this case meters)?
Solved! Go to Solution.