ExportContext2D - Exporting line with pattern

ExportContext2D - Exporting line with pattern

dhanraj.dhokale
Contributor Contributor
280 Views
1 Reply
Message 1 of 2

ExportContext2D - Exporting line with pattern

dhanraj.dhokale
Contributor
Contributor

Hello ,

I want to export 2D view , I am using IExportContext2D to get lines. In my sample there are some line having line pattern like hidden. When I export this view the lines are exported but I get only one call in 'OnPolylineSegments' for each line .  I expect that I get multiple calls for one line as line is displayed as dashed line as per line type.

Export2DGeometricObjectsIncludingPatternLines is set to true;

Please find attached image.

How I can get all lines \dots as per line pattern??

Thank you..

0 Likes
Accepted solutions (1)
281 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

I believe that the 2D export context provides access to the originating Revit element. So, you might have to query that element for its line type and then reproduce that in your export result. You can probably snoop these objects, their properties and relationships using RevitLookup and other database exploration tools in order to find the proper path to query this data.

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes