Message 1 of 9

Not applicable
05-29-2015
02:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
From the "Inventor 2015 API", I taken the code below :
Public Sub WriteSheetMetalDXF() ' Get the active document. This assumes it is a part document. Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument ' Get the DataIO object. Dim oDataIO As DataIO Set oDataIO = oDoc.ComponentDefinition.DataIO ' Build the string that defines the format of the DXF file. Dim sOut As String sOut = "FLAT PATTERN DXF?AcadVersion=R12&OuterProfileLayer=Outer" ' Create the DXF file. oDataIO.WriteDataToFile sOut, "C:\temp\flat2.dxf" End Sub
From this, I want to generate a dxf file of flat pattern part, but since drawing.
With this informations "PartNumber (drawing)" & "text" & "RevisionNumber (drawing) & ".dxf"
Currently, I've a macro which export my drawing into ".dxf", and not only the flat pattern but all views.
What code allow to execute the code the since drawing file and not the part file.
Thanks by advance.
Solved! Go to Solution.