Camera.CreateImage Does not seem to work

Camera.CreateImage Does not seem to work

Raider_71
Collaborator Collaborator
197 Views
0 Replies
Message 1 of 1

Camera.CreateImage Does not seem to work

Raider_71
Collaborator
Collaborator

Hi has anyone had this issue before. When setting up the camera object I can save an image from the Camera but I cant use the CreateImage method of the object. Just throws an error all the time.

If I create it as an iLogic function it works 100% but my app is a standalone .Net Windows app.

 

Dim oDoc As Inventor.Document = oApp.ActiveDocument
Dim oCam As Inventor.Camera = oApp.ActiveView.Camera
Dim oColor As Inventor.Color
oColor = oApp.TransientObjects.CreateColor(255, 255, 255)
Dim ThumbNail As stdole.IPictureDisp
ThumbNail = oCam.CreateImage(oApp.ActiveView.Width, oApp.ActiveView.Height, oColor, oColor) 'Error here

 

 

I can use the oCam.SaveAsBitmap function successfully so I know the camera object works its just the CreateImage function that has an issue in my situation.

It seems like as soon as you work with the iPicturedisplay interface then it's an issue. I tried setting my project to full 64bit but no luck.

 

Any ideas?

0 Likes
198 Views
0 Replies
Replies (0)