Hi,
Little baffled by the approuch.
A) Lineweights are a distinct set up to 2.11mm
B) Only Polylines have widths, global over the entire poly or locally per segment start/end.
Breaking it down:
Given an entity from the document called entityPointer.
For the .getType = RS.EntityPolyline your shapes are the individual polyline segments resulted
from the explosion of the Poly. (Exploded according Prefs in App.Prefs)
>> Meaning you are adding the individual polyline segments back with props: white, continuous, 10 width (10>2.11 !!)
For the .getType = RS.EntityArc and RS.EntityLine you are trying to get shapes.
Any idea what kind of shapes you expect from an Arc or a Line?
Shapes from an explosion are new shapes. These you can (re-)add with the Simple API and with props.
The basic shapes Line, Arc, Poly, ... are document shapes (entities) themselves.
For these you have to alter the props of these entities in the document.
RAddObjectsOperation is better suited
This is not your usage but it's a start.
https://qcad.org/rsforum/viewtopic.php?t=7486
Regards,
CVH