cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

VB API program to import neutral file

ms-6
6-Contributor

VB API program to import neutral file

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 1
sjuraj
13-Aquamarine
(To:ms-6)

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

Top Tags