Hi All,
I've started working on a project but I'm a little out of practice. I need to create a standalone application, with a window to view the active model. Essentially, it'll be a viewer tool with some other minor functionality for interrogation.
I recall seeing an example from Brian Ekins (if I recall correctly) where he used the Apprentice Server to print model output to an image on the VB.net form window, but I can't find this example.
Alternatively, Is there a way for me to add a viewer window to my form? Like an InventorViewWindow Control or something?
I've spent the last day or so searching, but nothing really useful has surfaced.
Appreciate any assistance.
Regards
Solved! Go to Solution.
Solved by xiaodong_liang. Go to Solution.
AU 2011 Understanding What Autodesk Inventor Apprentice Can Do for You
Thanks for that, I'll take a look just as soon as I get a few mins spare.
Are you aware of any options using Inventor (not apprentice server) to solve my problem?
Regards
Hi Gerrard,
There is a viewer ActiveX control that is available if you install Inventor or Apprentice. This seems to be what you're looking for. Attached is a VB.Net sample.
Regards,
Philippe.
Philippe,
I tried to open the example you've attached, but it appeared to be missing some COM references.. There were 3 COM reference there, only one of which was the Autodesk Inventor Type Library, I couldn't view the other two. I'm reasonably sure I have Inventor and the SDK installed correctly, can you attach a screenshot of the references for that project, or list them out?
Thanks and Regards
Hi Gerrard,
In Visual Studio, try adding the Autodesk Inventor View Control to your toolbox (Choose Toolbox Items...).
Here is a pic of this item and my references.
I hope it helps,
Philippe.
Philippe,
Sorry to be a nuisance, but I still can't find that COM reference. I've done some research, and realise that I need to register the InventorViewCtrl.ocx file manually (from ModTheMachine), but it's still not visible.
Are there any other pre-requisites I need to be aware of before I can use this control?
Regards
Sorry, I have no idea then. The chapter of that post on ModTheMachine is written by me. I did test on my Win 7 64 with Inventor 2013. It worked well at my side. What I referred to is another post
Hi all,
Just a quick update. After revisiting this issue, I found where I was going wrong...
As Xiaodong pointed out, I needed to register the .ocx file from the <Inventor>\Bin\Bin32\ path, NOT <Inventor>\Bin\ as I had done originally... Unfortunately I just glazed over your response the first time I read it.
Just a point to note, but there doesn't seem to be any reference to the full path for that .ocx file mentioned on ModtheMachine or the other blog, which wouldn't be so critical except that there's several InventorViewCtrl.ocx files installed...
Now just to test to see whether it does what I need
I'll be sure to read response twice in the future too!
Can't find what you're looking for? Ask the community or share your knowledge.