Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB API - Can't create new part

  • Thread starter Thread starter GoWatzmann
  • Start date Start date
G

GoWatzmann

Guest
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()
 

Part and Inventory Search

Sponsor

Back
Top