Atul asked me to forward this to the group:
Adam,
To save the DWF of a drawing sheet, you can use the sheet's DataIO object.
The resulting DWF will be in the "old" DWF format. See the following code
for details.
Dim oDoc as DrawingDocument
Dim oSheet As Inventor.Sheet
Dim oDataIO as DataIO
set oDoc = ThisApplication.ActiveDocument
Set oSheet = oDoc.Sheets(1)
Set oDataIO = apiSheet1.DataIO
Call oDataIO.WriteDataToFile("DWF", "c:\a.dwf")
Atul
Software developer
Autodesk Inventor API team
"Adam Wieczorek" wrote in message
news:3D0A69E1EECD9EFDD126ACD7BD1DA888@in.WebX.maYIadrTaRb...
> Hm..., ok SAT registry settings runs well (thx Kent).
> I was too fast. Just Inventor need to be restarted after registry change.
> But DWF is still unsolved problem.
>
> adam
>
>
> "Adam Wieczorek" wrote in message
> news:BFDDF99530CA6D37BD804555BF4F6BF0@in.WebX.maYIadrTaRb...
> > Hello,
> >
> > API Operation: ThisApplication.ActiveDocument.SaveAs
> "C:\Temp\INV_TEST.SAT",
> > True
> >
> > During SaveAs to SAT format, Inventor7 uses SAT7 format like a default.
> > In Inv6 it was possible to add registry value SaveACISVersion to proper
> SAT
> > version.
> > I try the same with Inv7 and it doesn't work.
> > Similar problem I have with DWF export from draft.
> > My VoloView2 sad: This DWF file is a newer version..bla, bla,bla....
> > DWF seams to be ver6 ?
> >
> > So questions:
> > How to force Inv7 API to save in old SAT format ?
> > How to force Inv7 API to save in old DWF format ?
> >
> > Regards,
> >
> > Adam Wieczorek
> >
> >
>
>