Apprentice Server COM Exception with Inventor 2015
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i have some sample code from the Mod The Machine Blog, which runs on Inventor2012 without problems, but with Inventor 2015 it throws an exception.
I have no idea whats going wrong.
(Code from: http://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-2.html)
Private Sub CreateImage( _
Apprentice As Inventor.ApprenticeServerComponent, _
PartOrAssembly As Inventor.ApprenticeServerDocument, _
Filename As String)
' Create a new camera.
Dim cam As Inventor.Camera
cam = Apprentice.TransientObjects.CreateCamera
' Associate the document with the camera.
cam.SceneObject = PartOrAssembly.ComponentDefinition
This last line throws a "System.Runtime.InteropServices.COMException"
I know that this have worked with Inventor 2012 as i have build a small "Snapshot" App with this code.
Any Ideas?