We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Quality of generated images is low: Lines are not rendered fine

Hello,
I hope you can help me with the quality of the images generated with ASPOSE.

For example, if you visualize the purple lines in the following image generated with AUTOCAD. You can see that they are thick lines.
AUTOCAD.png (198.5 KB)

On the other hand, when I generate an image of the same plan above, the lines come out thin (the image must be in grayscale):
ASPOSE.jpg (199.5 KB)

I am using the following code to generate the images:
image.png (40.0 KB)

I need the images generated with ASPOSE to respect the thickness of the lines defined in AUTOCAD.

Thanks!!

@IP1

I request you to please share the source CAD file along with generated output and used sample code. I will be able to investigate the issue further on my end on provision of requested information.

Hi @mudassir.fayyaz

Source CAD:
BT_Hawa_Frontino_20H FS ul_TH_3_Color.zip (562.0 KB)

Sample Code:
Sample code.zip (6.3 MB)

Thanks for your help!

@IP1

Thank you for sharing the information with us. A ticket with ID CADNET-8246 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

1 Like

@IP1

We have investigated the issue further on our end. In order to proceed further with investigation on our end, we need to know, how you have exported to image in AutoCad and which commands you have used or which buttons. There are different ways depending on the way you have generated this image is important.

We also need the Plot Style Table. There is “Hawa.ctb” plot style table used in this drawing, it is the separate custom file. If possible, we need it too.

@mudassir.fayyaz

I send you the requested information:

How to export an image from Autocad
Export image.zip (428.5 KB)

Plot Style Table
plotstyletable.zip (3.4 KB)

Thanks!

@IP1

Thank you for sharing the feedback. I have associated that in our issue tracking system and will share the feedback with you as soon as it will be shared.

@mudassir.fayyaz
Is there news about this issue?

Friendly regards!

@IP1

I suggest you to please try using latest Aspose.CAD for .NET 21.8 on your end. The following are our findings.

  1. About lineweights please see the attached document (8246.docx) for convenience. There is explanation and code example.

  2. Additionally, we have fixed the issue with missing dimension values for color images and the usage of colors from CTB files for the drawing.

  3. Option for greyscaling of the image may be skipped, now colors are got correctly from CTB file.

Options 2 and 3 will be available according to release schedule for 21.8.

Etalon result has been added too.

BT_Hawa_Frontino_20H FS ul_TH_3_Color.dxf.jpg (661.4 KB)

8246.docx (29.1 KB)