Show hidden lines in DXF Export by code

Show hidden lines in DXF Export by code

Anonymous
Not applicable
911 Views
3 Replies
Message 1 of 4

Show hidden lines in DXF Export by code

Anonymous
Not applicable

Hello

I can export active view to dxf file without any problem. but I want to see hidden lines (the lines that underneath other elements) with dashed line style in this dxf export. How can we do that in API and C#?

Please see attached PDFs for more information.

0 Likes
Accepted solutions (1)
912 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

How can you do achieve that manually in the user interface? Solve that first, before looking at the programming side of things.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

Anonymous
Not applicable

the solution is in pdf files. please check them.

0 Likes
Message 4 of 4

Anonymous
Not applicable
Accepted solution

I have found the solution. I paste it here for other developers

 

doc.ActiveView.get_Parameter(BuiltInParameter.MODEL_GRAPHICS_STYLE).Set((int)DisplayStyle.HLR);
doc.ActiveView.get_Parameter(BuiltInParameter.VIEW_SHOW_HIDDEN_LINES).Set((int)ShowHiddenLinesValues.All);
doc.ActiveView.get_Parameter(BuiltInParameter.VIEW_DISCIPLINE).Set((int)ViewDiscipline.Mechanical);

 

0 Likes