Skip to content

Commit

Permalink
successful test run in Revit 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Dec 10, 2016
1 parent 11db2a1 commit af617c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions RvtVa3c/RvtVa3c.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\RvtVa3c.dll" />
</Target>
<PropertyGroup>
<PostBuildEvent>copy "$(ProjectDir)RvtVa3c.addin" "$(AppData)\Autodesk\REVIT\Addins\2015"
copy "$(ProjectDir)bin\debug\RvtVa3c.dll" "$(AppData)\Autodesk\REVIT\Addins\2015"
copy "$(ProjectDir)bin\debug\Newtonsoft.Json.dll" "$(AppData)\Autodesk\REVIT\Addins\2015"</PostBuildEvent>
<PostBuildEvent>copy "$(ProjectDir)RvtVa3c.addin" "$(AppData)\Autodesk\REVIT\Addins\2017"
copy "$(ProjectDir)bin\debug\RvtVa3c.dll" "$(AppData)\Autodesk\REVIT\Addins\2017"
copy "$(ProjectDir)bin\debug\Newtonsoft.Json.dll" "$(AppData)\Autodesk\REVIT\Addins\2017"</PostBuildEvent>
</PropertyGroup>
</Project>
15 changes: 11 additions & 4 deletions RvtVa3c/Va3cExportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,8 @@ public RenderNodeAction OnFaceBegin( FaceNode node )
// This method is invoked only if the
// custom exporter was set to include faces.

Debug.Assert( false, "we set exporter.IncludeFaces false" );
//Debug.Assert( false, "we set exporter.IncludeFaces false" ); // removed in Revit 2017

Debug.WriteLine( " OnFaceBegin: " + node.NodeName );
return RenderNodeAction.Proceed;
}
Expand All @@ -792,16 +793,22 @@ public void OnFaceEnd( FaceNode node )
// This method is invoked only if the
// custom exporter was set to include faces.

Debug.Assert( false, "we set exporter.IncludeFaces false" );
//Debug.Assert( false, "we set exporter.IncludeFaces false" ); // removed in Revit 2017

Debug.WriteLine( " OnFaceEnd: " + node.NodeName );

// Note: This method is invoked even for faces that were skipped.
}

public RenderNodeAction OnInstanceBegin( InstanceNode node )
{
Debug.WriteLine( " OnInstanceBegin: " + node.NodeName + " symbol: " + node.GetSymbolId().IntegerValue );
Debug.WriteLine( " OnInstanceBegin: " + node.NodeName
+ " symbol: " + node.GetSymbolId().IntegerValue );

// This method marks the start of processing a family instance
_transformationStack.Push( CurrentTransform.Multiply( node.GetTransform() ) );

_transformationStack.Push( CurrentTransform.Multiply(
node.GetTransform() ) );

// We can either skip this instance or proceed with rendering it.
return RenderNodeAction.Proceed;
Expand Down

0 comments on commit af617c7

Please sign in to comment.