How can I export/import Camera data to/from Autodesk?

You can use WriteAutodeskParams.Viewport property to set the Viewport from which the camera data must be exported.

var wa = new WriteAutodesk(new WriteAutodeskParams(model1) {Viewport = model1.ActiveViewport}, "out.dwg");
wa.DoWork();

After reading a file, you can set the camera data to a Viewport by calling readAutodesk.SetView() method.

ReadAutodesk ra = new ReadAutodesk("out.dwg");
ra.DoWork();
ra.AddToScene(model1);
ra.SetView(model1.ActiveViewport);
model1.Invalidate();
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.