entmakex

Rank: 1

GTeng

Newbie

posts: 9

Registered: 2012-9-8

Message 1 of 3

  entmakex
08-09-2012 12:26 . pm | View his/her posts only
Post Last Edit by gteng5876 at 2012-9-8 16:15

What's wrong with this routine applied to ZWCAD 2012 +?


(if (null (tblsearch "LAYER" (getvar "USERS3")))
(entmake
(list
(cons 0 "LAYER")
(cons 2 (getvar "USERS3"))
(cons 70 0)
(cons 62 7)
(cons 6 "Continuous")
)
)
)


Thanks.
0 Kudos

Rank: 1

seav735587

Newbie

posts: 9

Registered: 2012-9-7

Message 2 of 3

entmakex
10-09-2012 12:25 . am | View his/her posts only
Corrected code:

(if (null (tblsearch "LAYER" (getvar "USERS3")))
(entmake
(list
(cons 0 "LAYER")
(cons 100 "AcDbSymbolTableRecord")
(cons 100 "AcDbLayerTableRecord")
(cons 2 (getvar "USERS3"))
(cons 70 0)
(cons 62 7)
(cons 6 "Continuous")
)
)
)

You can discover necessary DXF groups by reading existing layers.
For example:
(entget (tblobjname "LAYER" "0"))
TOP 0 Kudos

Rank: 1

GTeng

Newbie

posts: 9

Registered: 2012-9-8

Message 3 of 3

entmakex
11-09-2012 10:43 . am | View his/her posts only
Thank you, it worked well.
TOP 0 Kudos
© 2012 ZWCAD Software Co., Ltd. All rights reserved. | About ZWSOFT | Privacy Policy | Terms and Conditions | Contact us | Site Map
All trademarks,trade names or company names referenced herein are used for identification only and are the property of their respective owners.