I am trying to create a PDF from an ACAD dwn but the lines are coming out thick. I have tried setting the line weight in each layout but doesn;t seem to have an affect. Link below to test code which produces the PDF and the original drawing.
@connor.ferguson,
Hello.
In this fragment
For Each layer As CadTables.CadLayerTable In cadFile.Layers
If layer.LineWeight < 0 Then
layer.LineWeight = 0
End If
Next
the lineweight is changed for only those layers, that have default lineweight (<0). The entities that appear to be thick are in other layers with non-default lineweight, so lineweight for them remains unchanged.
I propose to remove this “If” condition and make 0 lineweight for all layers. But there are some other entities (lines, dimensions) in this drawing that have their own thick lineweights. Unfortunately, we don’t see another option than to iterate over all entities and set zero lineweights for all entities:
For Each entity As CadEntityBase In cadFile.Entities
entity.LineWeight = 0
Next