Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Ralf_Krieg

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.