Polyline Thickness Variable

Polyline Thickness Variable

Anonymous
Not applicable
1,993 Views
4 Replies
Message 1 of 5

Polyline Thickness Variable

Anonymous
Not applicable

Hi all,

I'm writing a piece of code that allows me to use parameters on an object. I've been able to write all the parameters however I can't seem to find the variable name to change polyline thickness in LISP. I know to change polyline width it's "plinewid" but is there an equivalent to adjust the polyline thickness.

Many thanks

0 Likes
Accepted solutions (2)
1,994 Views
4 Replies
Replies (4)
Message 2 of 5

SeeMSixty7
Advisor
Advisor

The PLINEWID Variable will control the thickness for any new plines as a default width.

 

Any existing plines already have that value set within there entity settings.

I believe 40 and 41 will control the widths of the pline segments. But keep in mind a pline can have varying widths, so the more you dig into it the more it the more you have to deal with each vertex in the pline.

 

The pedit command is pretty easy to update it globally though.

 

Good luck,

 

 

 

0 Likes
Message 3 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

(setvar 'thickness 10)

or 

(command "_chprop" "last" "" "thickness" 10 ....)

0 Likes
Message 4 of 5

SeeMSixty7
Advisor
Advisor
Accepted solution

Thickness or Width? It's funny how these get used synonymously, but are two different things. I even referred to width as thickness in my post. @ВeekeeCZ post highlights that thickness is the 3D thickness of the object and not the width. So @Anonymous you have two things to consider, So keep that in mind for what you are trying to achieve. Width is the width of the polyline while thickness is the 3D extruded value of the pline or other object.

 

Good luck,

0 Likes
Message 5 of 5

Anonymous
Not applicable

Hello I have a related problem, it is about changing the width of text in non-VLA format. 

(command
"_.-layer" "_M" "ELECTRIC-TEXT" ""
"_.-layer" "on" "*" "th" "*" ""
"_.-layer" "LO" "*" "U" "MAP-ELEC-UGSTLIGHTNO,MAP-ELEC-OHSTLIGHTNO" ""
)

My agenda is to convert existing text words to a minimal width, eg: .0001.

0 Likes