Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Re: appPED = CreateObject("MGCPCBLibraries.PartsEditorDlg") in VX not work?

$
0
0

Are you directly referencing the .dll or are you going through the "Add Reference", browsing through the com objects and selecting the PDB Editor?

 

Are you running 32-bit or 64-bit VX?

 

That very statement works for me in all my implementations:

 

     DimpedAppAsMGCPCBPartsEditor.PartsEditorDlg

     DimpedDocAsMGCPCBPartsEditor.PartsDB

 

     RaiseEventeUpdateStatus("Creating instance of PDB Editor.")

 

     'pedApp = libDoc.PartEditor 'Connect directly to PDB Editor using LM license

     'pedDoc = pedApp.ActiveDatabaseEx

 

     pedApp = CreateObject("MGCPCBLibraries.PartsEditorDlg")

 

       Try

           pedDoc = pedApp.OpenDatabaseEx(frmMain.librarydata.LibPath, False)

       CatchexAsException

           RaiseEventeUpdateStatus("Failed to create instance of PDB Editor.")

           pedApp.Quit()

           pedApp = Nothing

           RaiseEventeExportFailed()

           Exit Sub

       EndTry


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>