Message 1 of 6
Exporting IGS and STEP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to export a model to IGS and STEP. when the model is exported, there is a dialogue box immediately appreas saying that "unable to open the file" as shown in pic down.
Is Inventor trying to open the exported file immediately? if yes. then how to suppress the opening of igs and step
Public Sub ExportToIGES() ' Get the IGES translator Add-In. Dim oIGESTranslator As TranslatorAddIn Set oIGESTranslator = ThisApplication.ApplicationAddIns.ItemById("{90AF7F44-0C01-11D5-8E83-0010B541CD80}") If oIGESTranslator Is Nothing Then MsgBox "Could not access IGES translator." Exit Sub End If Dim oContext As TranslationContext Set oContext = ThisApplication.TransientObjects.CreateTranslationContext Dim oOptions As NameValueMap Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap If oIGESTranslator.HasSaveCopyAsOptions(ThisApplication.ActiveDocument, oContext, oOptions) Then ' Set geometry type for wireframe. ' 0 = Surfaces, 1 = Solids, 2 = Wireframe oOptions.Value("GeometryType") = 1 ' To set other translator values: ' oOptions.Value("SolidFaceType") = n ' 0 = NURBS, 1 = Analytic ' oOptions.Value("SurfaceType") = n ' 0 = 143(Bounded), 1 = 144(Trimmed) oContext.Type = kFileBrowseIOMechanism Dim oData As DataMedium Set oData = ThisApplication.TransientObjects.CreateDataMedium oData.FileName = "C:\Temptest.igs" Call oIGESTranslator.SaveCopyAs(ThisApplication.ActiveDocument, oContext, oOptions, oData) End If End Sub