Width of a Polyline

Width of a Polyline

Anonymous
Not applicable
761 Views
2 Replies
Message 1 of 3

Width of a Polyline

Anonymous
Not applicable

Hi, and sorry about the basic question but i cant get with this.

How can i put a polyline width or start point or end point into a variable?

i try this but get this error (sim is the variable with the selectino of the poly)

 

(setq wi (cdr (assoc 43 sim)))

 

 

error: bad argument type: listp <Entity name: 2396cc970a0>

 

Thanks and regards.

Clode

0 Likes
Accepted solutions (1)
762 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

You have to use the entget function to get the the dxf list of the polyline :

(setq wi (cdr (assoc 43 (entget sim))))

 You can also use the getpropertyvalue function:

(getpropertyvalue sim "ConstantWidth")


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 3

Anonymous
Not applicable

@_gile  ha escrito:

Hi,

 

You have to use the entget function to get the the dxf list of the polyline :

(setq wi (cdr (assoc 43 (entget sim))))

 You can also use the getpropertyvalue function:

(getpropertyvalue sim "ConstantWidth")

Perfect!!!

 

Thanks

Clode

0 Likes