Skip to main content
1-Visitor
May 29, 2017
Question

VB API program to import neutral file

  • May 29, 2017
  • 1 reply
  • 1570 views

Hi all,

I am trying  to import neutral file(igs) using api, I get error as INVALID VARIANT TYPE

Try

            session.ImportNewModel("C:\4021B30hs.igs", EpfcNewModelImportType.EpfcIMPORT_NEW_IGES, EpfcModelType.EpfcMDL_ASSEMBLY, "vv", "")

Catch ex As Exception

            MsgBox(ex.Message.ToString + Chr(13) + ex.StackTrace.ToString)

End Try

1 reply

15-Moonstone
May 30, 2017

I think your last parameter is wrong. It should be LayerImportFilter or null not empty string.