Convert to Meters units

Convert to Meters units

GHASEM_ARIYANI
Advisor Advisor
3,290 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);
        }

Please use " Accept as Solution", and give kudos as appropriate to further enhance these forums. Thank you!
Accepted solutions (1)
3,291 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