Skip to content

Commit

Permalink
cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Apr 13, 2015
1 parent ec74ce6 commit dee76f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions RvtVa3c/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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" )]
17 changes: 9 additions & 8 deletions RvtVa3c/Va3cExportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ Transform CurrentTransform

public override string ToString()
{
return myjs;
return myjs;
}

/// <summary>
/// Set the current material
/// </summary>
Expand Down Expand Up @@ -398,7 +399,7 @@ public bool Start()
return true;
}

public void Finish()
public void Finish()
{
// Finish populating scene

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -767,8 +767,9 @@ Dictionary<string, string> 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 );

Expand Down

0 comments on commit dee76f5

Please sign in to comment.