Skip to content

Commit

Permalink
eliminated obsolete API calls to ElementTransformUtils.MirrorElements…
Browse files Browse the repository at this point in the history
… by adding bool mirrorCopies argument
  • Loading branch information
Jeremy Tammik committed Aug 18, 2015
1 parent 09ab290 commit db3f33e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
25 changes: 20 additions & 5 deletions BuildingCoder/BuildingCoder/CmdMirror.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ public Result Execute(
ICollection<ElementId> elementIds
= uidoc.Selection.GetElementIds(); // 2012

//ElementTransformUtils.MirrorElements(
// doc, elementIds, plane ); // 2012-2015

ElementTransformUtils.MirrorElements(
doc, elementIds, plane ); // 2012
doc, elementIds, plane, true ); // 2016

return Result.Succeeded;
}
Expand Down Expand Up @@ -204,8 +207,11 @@ ICollection<ElementId> elementIds

//doc.Mirror( els, line ); // 2011

//ElementTransformUtils.MirrorElements(
// doc, elementIds, plane ); // 2012-2015

ElementTransformUtils.MirrorElements(
doc, elementIds, plane ); // 2012
doc, elementIds, plane, true ); // 2016

List<Element> a = GetElementsAfter( n, doc );

Expand All @@ -227,8 +233,11 @@ ICollection<ElementId> elementIds

// doc.Mirror( els, line ); // 2011

//ElementTransformUtils.MirrorElements(
// doc, elementIds, plane ); // 2012-2015

ElementTransformUtils.MirrorElements(
doc, elementIds, plane ); // 2012
doc, elementIds, plane, true ); // 2016

// get all elements in document with an
// element id greater than maxId:
Expand All @@ -254,8 +263,11 @@ ICollection<ElementId> elementIds

//doc.Mirror( els, line ); // 2011

//ElementTransformUtils.MirrorElements(
// doc, elementIds, plane ); // 2012-2015

ElementTransformUtils.MirrorElements(
doc, elementIds, plane ); // 2012
doc, elementIds, plane, true ); // 2016

// only look at non-ElementType elements
// instead of all document elements:
Expand Down Expand Up @@ -289,8 +301,11 @@ ICollection<ElementId> elementIds

//doc.Mirror( els, line ); // 2011

//ElementTransformUtils.MirrorElements(
// doc, elementIds, plane ); // 2012-2015

ElementTransformUtils.MirrorElements(
doc, elementIds, plane ); // 2012
doc, elementIds, plane, true ); // 2016

app.DocumentChanged
-= new EventHandler<DocumentChangedEventArgs>(
Expand Down
5 changes: 3 additions & 2 deletions BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
// 2015-08-18 2016.0.120.6 removed obsolete API usage in CmdNewLineLoad.cs
// 2015-08-18 2016.0.120.7 removed obsolete API usage in CmdCollectorPerformance, CmdCreateSlopedSlab, CmdNewTextNote, CmdRoomNeighbours, CmdRoomWallAdjacency, and CmdSpaceAdjacency
// 2015-08-18 2016.0.120.8 replaced obsolete PlanarFace.Normal property by PlanarFace.FaceNormal
// 2015-08-18 2016.0.120.9 eliminated obsolete API calls to ElementTransformUtils.MirrorElements by adding bool mirrorCopies argument
//
[assembly: AssemblyVersion( "2016.0.120.8" )]
[assembly: AssemblyFileVersion( "2016.0.120.8" )]
[assembly: AssemblyVersion( "2016.0.120.9" )]
[assembly: AssemblyFileVersion( "2016.0.120.9" )]

0 comments on commit db3f33e

Please sign in to comment.