Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

VB API - Can't create new part

GoWatzmann

New member
Hello,

get error "pfcExceptions::XToolkitNotFound" at "BaseSession.RetrieveModel(oModelDescriptor)". What's wrong?

Code:
                Dim oModelDescriptorCreate As New pfcls.CCpfcModelDescriptor
                Dim oModelDescriptor As pfcls.IpfcModelDescriptor = oModelDescriptorCreate.Create(pfcls.EpfcModelType.EpfcMDL_PART, "test.prt", Nothing)
                Dim ModelPart As pfcls.IpfcModel = BaseSession.RetrieveModel(oModelDescriptor)
                Dim oWindow As pfcls.IpfcWindow = BaseSession.OpenFile(oModelDescriptor)
                oWindow.Activate()
 

Sponsor

Articles From 3DCAD World

Back
Top