Skip to content

Commit

Permalink
formatting (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatKatKateryna authored Jul 26, 2024
1 parent eeb7161 commit 39d9687
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ public object ConvertToNativeObject(Base @object)
case GisFeature o:
return GisFeatureToNative(o);


#if (REVIT2024)
case RevitToposolid o:
return ToposolidToNative(o);
Expand Down Expand Up @@ -914,8 +913,13 @@ public bool CanConvertToNative(Base @object)
Organization.DataTable _ => true,
// GIS
PolygonElement _ => true,
GisFeature feat when (feat.GetMembers(DynamicBaseMemberType.All).TryGetValue("displayValue", out var value) &&
value is List<Base> valueList && valueList.Count > 0) => true,
GisFeature feat
when (
feat.GetMembers(DynamicBaseMemberType.All).TryGetValue("displayValue", out var value)
&& value is List<Base> valueList
&& valueList.Count > 0
)
=> true,
_ => false,
};
if (objRes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public ApplicationObject GisFeatureToNative(GisFeature gisFeature)
};
}
return DirectShapeToNative(speckleDirectShape, ToNativeMeshSettingEnum.Default);

}

public ApplicationObject PolygonElementToNative(PolygonElement polygonElement)
{
var speckleDirectShape = new Objects.BuiltElements.Revit.DirectShape()
Expand Down

0 comments on commit 39d9687

Please sign in to comment.