|
@@ -43,10 +43,16 @@ namespace RevitToJBim.ComponentParse
|
|
var polygonPath = RevitUtil.GetTopPolygon(familyInstance);
|
|
var polygonPath = RevitUtil.GetTopPolygon(familyInstance);
|
|
if (polygonPath != null && polygonPath.Any())
|
|
if (polygonPath != null && polygonPath.Any())
|
|
{
|
|
{
|
|
- Polygon outLine = new Polygon(BimConvert.ConvertToXYZs(polygonPath));
|
|
|
|
|
|
+ Polygon outLine = new Polygon(BimConvert.ConvertToXYZs(polygonPath,true));
|
|
StandardUtil.ArrangeLoop(outLine);
|
|
StandardUtil.ArrangeLoop(outLine);
|
|
jObject.OutLine.Add(outLine);
|
|
jObject.OutLine.Add(outLine);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ var parameter = familyInstance.GetParameter(BuiltInParameter.WALL_ATTR_ROOM_BOUNDING);
|
|
|
|
+ if (parameter != null)
|
|
|
|
+ {
|
|
|
|
+ jObject.RoomBoundary=parameter.AsInteger() == 1;
|
|
|
|
+ }
|
|
context.AddBimObject(jObject);
|
|
context.AddBimObject(jObject);
|
|
return new List<BimId>() { jObject.Id };
|
|
return new List<BimId>() { jObject.Id };
|
|
}
|
|
}
|