- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
REVIT 2022
I am trying to use a Custom Exporter to get the Lines of a modelpattern of a Ceiling.
There is a Topic to get the references, but I need the actual Lines of the modelhatch.
I think the use of a Custom Exporter is the only way to get them, right?
I created a Custom Exporter, it runs fine on a 3D view, but 'OnPolylineSegments' is not invoked.
So I am trying to export a CeilingPlan, but the error message says:
"The view is not exportable, such as a template view or wrong type view, for example"
https://www.revitapidocs.com/2020/5a648f8c-62a0-d4c7-873c-8eab9f7abe7d.htm
So it is possible to export a 2D view
https://www.revitapidocs.com/2020/58d06458-fd6a-bdef-c457-2c52b50a70e8.htm
"Note that currently the only 2D view types exported are IncludeGeometricObjects FloorPlan, CeilingPlan,Elevation, Section, Detail, EngineeringPlan, AreaPlan"
Dim context As New RevitExporter1.MyExportContext(MyDoc)
Dim Exporter As New CustomExporter(MyDoc, context) With {
.IncludeGeometricObjects = True,
.ShouldStopOnError = False,
.Export2DGeometricObjectsIncludingPatternLines = True,
.Export2DIncludingAnnotationObjects = True}
Exporter.Export(MyView)
I checked the 'MyView', the ViewType = CeilingPlan.
Anybody a solution?
Thanks in advance,
Chris Hanschen
LKSVDD architecten
The Netherlands
Solved! Go to Solution.