Closed truevis closed 8 years ago
I migrated the sample to Revit 2017 for you.
Here is what i did:
That produces two warnings:
The warning is completely self-explanatory and trivial.
The error is caused by the changes described in What's New in the Revit 2017 API:
http://thebuildingcoder.typepad.com/blog/2016/04/whats-new-in-the-revit-2017-api.html
http://thebuildingcoder.typepad.com/blog/2016/04/whats-new-in-the-revit-2017-api.html#2.12.2
TessellatedShapeBuilder Changes
The options for building are now set as options in the TessellatedShapeBuilder itself. Access these options through the new properties:
The build result is now accessible through GetBuildResult instead of being returned by the Build method.
I published a new release 2017.0.0.0 including the corresponding changes.
The flat migration works fine, and this image was produced as a result:
/a/doc/revit/tbc/git/a/img/directobjloader_2017_emser.png
I am rather disappointed that you do not solve this yourself and create a pull request to share your solution.
What kind of one-way sharing is this supposed to be?
What do we have to change to get this to work in Revit 2017? Seems there are changes in DirectShape.CreateElement and TessellatedShapeBuilderResult.