Hi
I will try to Open the Document without Opening the Inventor.So that am using Inventor ApperticeserverComponent method
Am using the following Code But get error while connecting
Dim InvAper As New Inventor.ApprenticeServerComponent()
Dim CurrDoc As ApprenticeServerDocument
CurrDoc = InvAper.Open("C:\Temp\Part1.ipt")
Am getting the following error while creating the new instance
System.IO.FileNotFoundException
HResult=0x8007007E
Message=Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Source=mscorlib
StackTrace:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at InventorStandAloneApplication.Form1.Create_ApprenticeDocument() in C:\Shan\Study Documents\InventorStandAloneApplication\InventorStandAloneApplication\Form1.vb:line 315
at InventorStandAloneApplication.Form1.Form1_Load(Object sender, EventArgs e) in C:\Shan\Study Documents\InventorStandAloneApplication\InventorStandAloneApplication\Form1.vb:line 156
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Could You Please suggest the ideas to sort out this issue
Can you try to set your Target CPU to 'x64' instead?
Can't find what you're looking for? Ask the community or share your knowledge.