Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

in AUTOLISP how can I get the layer's lineweight?

Status
Not open for further replies.

golfrund

Technical User
Jul 5, 2003
13
ES
In Autolisp when you write '(setq CLAY (cdr (assoc 62 LLAY)))' the CLAY variable is setted with the associated element 62 of the list LLAY which is the LAYER'S COLOR.

Does anyone know the ASSOC NUMBER for the LINEWEIGHT property?

Is there anyway to set a var with a LAYER'S LINEWEIGHT?

Thanks a lot to all.
 
You can get the information through the layer table. For example:

(tblobjname "LAYER" "Mylayer")
<Entity name: 18afd80>

(entget (tblobjname &quot;LAYER&quot; &quot;Mylayer&quot;))
((-1 . <Entity name: 18afd80>) (0 . &quot;LAYER&quot;) (330 . <Entity name: 18afc10>) (5 . &quot;40&quot;)
(100 . &quot;AcDbSymbolTableRecord&quot;) (100 . &quot;AcDbLayerTableRecord&quot;) (2 . &quot;Mylayer&quot;)
(70 . 0) (62 . 7) (6 . &quot;Continuous&quot;) (290 . 1) (370 . -3) (390 . <Entity name: 18afc78>))

The 370 group code is the lineweight. I took this example from
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top