I am working at revit api to get walls of special room this is the part i have completed with Projecting rays technique. This is the main point that i am unable to do Wall thickness . Is there any way i can extract wall thickness. i am using revit 2020. Thank you
Sure, very easy.
Use the WallType
Width
property .
You could very easily have answered this question by yourself, either by searching the Internet or by exploring the wall and its properties using RevitLookup .
Please perform some minimal research for yourself before asking a question and making others do the work for you.
Here is some more advice on researching how to solve a Revit API programming task .
It is from a year ago but here is a code snippet :
WallType wallType = document.GetElement(wall.GetTypeId()) as WallType;
double nativeWitdh = wallType.Width;
double milimeterWidth = UnitUtils.ConvertFromInternalUnits(nativeWitdh,DisplayUnitType.DUT_MILLIMETERS);
You can use the very handy UnitUtils class from Revit for all your conversions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.