Dwg to image without displaying
Posted: 07 Dec 2011, 14:37
Hi,
I am trying to batch convert .dwg CAD images to PNG images in a ASP.NET WebService without displaying the images at all.
Tried something like that:
1) This results in an error (only white background). Why, what's wrong here? How to achieve my requirement?
2) The example above uses a fixed sized Rectangle for testing purposes. How to determine the right width/height of the complete loaded CADImage without using any UI logic/controls?
Best Regards
Andreas
I am trying to batch convert .dwg CAD images to PNG images in a ASP.NET WebService without displaying the images at all.
Tried something like that:
Code: Select all
CADImage image = CADImage.CreateImageByExtension(inputFilePath);
MemoryStream ms = new MemoryStream();
image.SaveToStream(ms, ImageFormat.Png, new DRect(0.0, 0.0, 500.0, 200.0));
2) The example above uses a fixed sized Rectangle for testing purposes. How to determine the right width/height of the complete loaded CADImage without using any UI logic/controls?
Best Regards
Andreas