03-22-2021
02:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-22-2021
02:45 AM
Thanks for your reply!
In this case, the cut profile is not perpendicular to the surface: bottom sheet contour will be different from top side. With exporting the unfolded model you get all lines from the bottom and top side of the sheet, I don't want this. Therefore I would like to export from a predefined surface or sketch.
At this moment I'm struggling with this code:
Feature.IsActive("Unfold3") = True
Dim fileName As String = ThisDoc.PathAndFileName(False) & ".dxf"
Dim doc As PartDocument = ThisDoc.Document
Dim surface As SurfaceBody = doc.ComponentDefinition.SurfaceBodies.Item("Export surface")
Dim sOut As String = "DXF"
surface.DataIO.WriteDataToFile(sOut, fileName)For a sketch it is working but not for a surface.