<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<title>entmakex</title>
<link>http://www.zwsoft.com/forum/viewthread.php?tid=2423</link>
<description>[i=s] Post Last Edit by gteng5876 at 2012-9-8 16:15 [/i]

What's wrong with this routine applied to ZWCAD 2012 +?


(if (null (tblsearch &quot;LAYER&quot; (getvar &quot;USERS3&quot;)))
           (entmake
                      (list
                                 (cons 0  &quot;LAYER&quot;)
                                 (cons 2  (getvar &quot;USERS3&quot;))
                                 (cons 70  0)
                                 (cons 62  7)
                                 (cons 6  &quot;Continuous&quot;)
                      )
           )
        )


Thanks.</description>
<author>gteng5876</author>
<pubDate>2012-09-08 12:26:20</pubDate>
<item><link>http://www.zwsoft.com/forum/viewthread.php?tid=2423&amp;pid=15948</link>
<description>Thank you, it worked well.</description>
<author>gteng5876</author>
<pubDate>2012-09-11 10:43:33</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=2423&amp;pid=15943</link>
<description>Corrected code:

(if (null (tblsearch &quot;LAYER&quot; (getvar &quot;USERS3&quot;))) 
(entmake 
(list 
(cons 0 &quot;LAYER&quot;) 
(cons 100 &quot;AcDbSymbolTableRecord&quot;)
(cons 100 &quot;AcDbLayerTableRecord&quot;)
(cons 2 (getvar &quot;USERS3&quot;)) 
(cons 70 0) 
(cons 62 7) 
(cons 6 &quot;Continuous&quot;) 
) 
) 
) 

You can discover necessary DXF groups by reading existing layers.
For example:
(entget (tblobjname &quot;LAYER&quot; &quot;0&quot;))</description>
<author>seav735587</author>
<pubDate>2012-09-10 00:25:29</pubDate>
</item>  </channel>
</rss>