Convert to Meters units

Convert to Meters units

GHASEM_ARIYANI
Advisor Advisor
4,053 Views
1 Reply
Message 1 of 2

Convert to Meters units

GHASEM_ARIYANI
Advisor
Advisor

 

Hello

 

how to Convert ft to Meters API Result?

 

public void areaFace()
        {
            UIDocument uidoc= this.ActiveUIDocument;
            Document doc = uidoc.Document;
            
            Reference selRef= uidoc.Selection.PickObject(ObjectType.Face);
            Element e=doc.GetElement(selRef);
            
            GeometryObject  geObj=e.GetGeometryObjectFromReference(selRef);
            
            Face face=geObj as Face;
            
            TaskDialog.Show("Area Face" ,e.Name+Environment.NewLine+face.Area);
        }

GHASEM ARIYANI
BIM/VDC Manager
Revit Architecture Certified Professional
Revit Structure Certified Professional
Revit Mechanical Certified Professional
Revit Electrical Certified Professional
If my answer solved your problem, please click "ACCEPT SOLUTION" and consider giving a Kudo.
LinkedIn
YouTube
Udemy Course
Accepted solutions (1)
4,054 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Multiply by the appropriate constant.

 

Please always perform some minimal research yourself before posting a question here.

 

This topics has been discussed many times in the past, e.g.:

 

https://forums.autodesk.com/t5/revit-api-forum/units-system-in-document/m-p/7670881

 

The Building Coder published many discussions about units and unit conversion:

 

http://thebuildingcoder.typepad.com/blog/units

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder