From db3f33e8e2cfff2b75f910ca4903fb0ea030069e Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Tue, 18 Aug 2015 12:44:09 +0200 Subject: [PATCH] eliminated obsolete API calls to ElementTransformUtils.MirrorElements by adding bool mirrorCopies argument --- BuildingCoder/BuildingCoder/CmdMirror.cs | 25 +++++++++++++++---- .../BuildingCoder/Properties/AssemblyInfo.cs | 5 ++-- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/BuildingCoder/BuildingCoder/CmdMirror.cs b/BuildingCoder/BuildingCoder/CmdMirror.cs index 5e4efca7..4af5362a 100644 --- a/BuildingCoder/BuildingCoder/CmdMirror.cs +++ b/BuildingCoder/BuildingCoder/CmdMirror.cs @@ -50,8 +50,11 @@ public Result Execute( ICollection 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; } @@ -204,8 +207,11 @@ ICollection 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 a = GetElementsAfter( n, doc ); @@ -227,8 +233,11 @@ ICollection 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: @@ -254,8 +263,11 @@ ICollection 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: @@ -289,8 +301,11 @@ ICollection 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( diff --git a/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs b/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs index 795e3783..11affaea 100644 --- a/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs +++ b/BuildingCoder/BuildingCoder/Properties/AssemblyInfo.cs @@ -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" )]