From dee76f55aa29bf448946883cbd67004d4e591a06 Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Mon, 13 Apr 2015 16:08:10 +0200 Subject: [PATCH] cleaned up --- RvtVa3c/Properties/AssemblyInfo.cs | 5 +++-- RvtVa3c/Va3cExportContext.cs | 17 +++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/RvtVa3c/Properties/AssemblyInfo.cs b/RvtVa3c/Properties/AssemblyInfo.cs index 242b455..236574d 100644 --- a/RvtVa3c/Properties/AssemblyInfo.cs +++ b/RvtVa3c/Properties/AssemblyInfo.cs @@ -47,6 +47,7 @@ // 2014-11-25 2015.0.0.28 skip elements with null category in OnElementEnd as well // 2015-02-15 2015.0.0.29 incremented copyright year // 2015-03-04 2015.0.0.30 integrated anapujol's UI to filter parameters, cf. description in https://github.com/va3c/RvtVa3c/pull/6 +// 2015-04-13 2015.0.0.31 cleaned up after ana // -[assembly: AssemblyVersion( "2015.0.0.30" )] -[assembly: AssemblyFileVersion( "2015.0.0.30" )] +[assembly: AssemblyVersion( "2015.0.0.31" )] +[assembly: AssemblyFileVersion( "2015.0.0.31" )] diff --git a/RvtVa3c/Va3cExportContext.cs b/RvtVa3c/Va3cExportContext.cs index 2cd4688..ac46465 100644 --- a/RvtVa3c/Va3cExportContext.cs +++ b/RvtVa3c/Va3cExportContext.cs @@ -286,8 +286,9 @@ Transform CurrentTransform public override string ToString() { - return myjs; + return myjs; } + /// /// Set the current material /// @@ -398,7 +399,7 @@ public bool Start() return true; } - public void Finish() + public void Finish() { // Finish populating scene @@ -430,11 +431,10 @@ Formatting formatting ? Formatting.Indented : Formatting.None; - myjs = JsonConvert.SerializeObject( - _container, formatting, settings ); + myjs = JsonConvert.SerializeObject( + _container, formatting, settings ); - - File.WriteAllText( _filename, myjs); + File.WriteAllText( _filename, myjs ); #if USE_DYNAMIC_JSON // This saves the whole hassle of explicitly @@ -767,8 +767,9 @@ Dictionary d _currentElement.userData = d; - //also add guid to user data dict - _currentElement.userData.Add("revit_id", uid); + // Add Revit element unique id to user data dict. + + _currentElement.userData.Add( "revit_id", uid ); _objects.Add( _currentElement.uuid, _currentElement );