Get image from AutoCAD camera entity.

Get image from AutoCAD camera entity.

galaxyblazer
Enthusiast Enthusiast
727 Views
1 Reply
Message 1 of 2

Get image from AutoCAD camera entity.

galaxyblazer
Enthusiast
Enthusiast

Hi. I have a question about how get image from camera which created in AutoCAD drawing.

Also, maybe someone can give some consultation about data dependencies between Camera : Entity and ViewTableReckord. How they relate to each other ?

Also, is it possible to create Camera from code.

I'm talking about cameras which possible to create in AutoCAD using CAMERA command.

0 Likes
Accepted solutions (1)
728 Views
1 Reply
Reply (1)
Message 2 of 2

galaxyblazer
Enthusiast
Enthusiast
Accepted solution

I found way:
1. remember current ViewTableRecord.

    Editor.GetCurrentView.
2. Get from camera ViewTableReckord using ObjectId ViewId { get; }

3. Set camera view to current in editor :

     Editor.SetCurrentView(cameraView);

4. Render image like in this sample : http://through-the-interface.typepad.com/through_the_interface/2007/04/rendering_autoc.html

5. Then make current view from step 1.

0 Likes