Message 1 of 6
Save As DWF for Multi-Sheet IDW

Not applicable
08-12-2003
06:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I downloaded the code below from Kent's KWIK MCAD iCode Page
It works perfectly for a single sheet IDW
If I use it on a Multi-Sheet IDW it only creates the 1st Sheet in the DWF...
What I want is for a Multi-Sheet DWF to be created, I Know Inventor 7 can do
it...
Thanks
Yoni Rogel
**************************
the iCode fron Kent's:
Option Explicit
Public Sub SaveAsDwf()
ThisApplication.SilentOperation = True
Dim oDoc As DrawingDocument
Dim oSheet As Inventor.Sheet
Dim oDataIO As DataIO
Set oDoc = ThisApplication.ActiveDocument
Set oSheet = oDoc.Sheets(1)
Dim fname As String
fname = oDoc.FullFileName
fname = Left(fname, Len(fname) - 3) & "dwf"
If UpdateDrawing(oDoc) = True Then
Set oDataIO = oDoc.Sheets(1).DataIO
Call oDataIO.WriteDataToFile("DWF", fname)
End If
ThisApplication.SilentOperation = False
End Sub
It works perfectly for a single sheet IDW
If I use it on a Multi-Sheet IDW it only creates the 1st Sheet in the DWF...
What I want is for a Multi-Sheet DWF to be created, I Know Inventor 7 can do
it...
Thanks
Yoni Rogel
**************************
the iCode fron Kent's:
Option Explicit
Public Sub SaveAsDwf()
ThisApplication.SilentOperation = True
Dim oDoc As DrawingDocument
Dim oSheet As Inventor.Sheet
Dim oDataIO As DataIO
Set oDoc = ThisApplication.ActiveDocument
Set oSheet = oDoc.Sheets(1)
Dim fname As String
fname = oDoc.FullFileName
fname = Left(fname, Len(fname) - 3) & "dwf"
If UpdateDrawing(oDoc) = True Then
Set oDataIO = oDoc.Sheets(1).DataIO
Call oDataIO.WriteDataToFile("DWF", fname)
End If
ThisApplication.SilentOperation = False
End Sub