<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lisp to change layer of lines based on bar diameter in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692963#M15597</link>
    <description>&lt;P&gt;Regards&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15312644"&gt;@prash1730&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this code...&lt;/P&gt;
&lt;P&gt;First Apply "JOIN" to all the lines and polylines that represent the bars, then apply the "color_bar" routine, selecting all the blocks with the bar data.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;;___
(defun c:color_bar (/ ltxn lc blkn ltxn	ldx x y	lc c sl	atf pmin pmax
		    slw	lp ang pn lpn)
  (setq	ltxn (vl-remove-if
	       'listp
	       (mapcar 'cadr (ssnamex (ssget '((0 . "INSERT")))))
	     )
  )
  (setq	lc (list '(8 . "3")'(10 . "5")'(12 . "30")'(16 . "4")'(20 . "1")'(25 . "90")		)
  )
  (foreach x ltxn
    (setq ldx (entget (entnext (entnext x)))
	  atf (atoi (cdr (assoc 1 ldx)))
    )
    (foreach y lc
      (if (= atf (car y))
	(progn
	  (setq c (cdr y))
	  (vla-getboundingbox (vlax-ename-&amp;gt;vla-object x) 'pmin 'pmax)
	  (setq	pmin (vlax-safearray-&amp;gt;list pmin)
		pmax (vlax-safearray-&amp;gt;list pmax)
		sl   (ssget "_c"
			    (mapcar '- pmin '(3. 0. 0.))
			    pmax
			    '((0 . "leader"))
		     )
		lp   (mapcar 'cdr
			     (vl-remove-if-not
			       '(lambda (j) (= (car j) 10))
			       (entget (ssname sl 0))
			     )
		     )
		ang  (/ pi 4)
		lpn  '()
	  )
	  (repeat 4
	    (setq pn  (polar (car lp) ang 1.2)
		  lpn (cons pn lpn)
	    )
	    (setq ang (+ ang (/ pi 2)))
	  )
	  (setq	slw
		 (ssname
		   (ssget "_cp"
			  lpn
			  (list '(0 . "*line") (cons 8 "Reinforcement"))
		   )
		   0
		 )
	  )
	  (vlax-put (vlax-ename-&amp;gt;vla-object slw) 'Color (atoi c))
	)
      )				
    )				
  )				
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 00:10:24 GMT</pubDate>
    <dc:creator>calderg1000</dc:creator>
    <dc:date>2024-04-08T00:10:24Z</dc:date>
    <item>
      <title>Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12690254#M15590</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;Can anyone please help me out with a lisp / command which identifies the bar diameter and changes the layer &amp;amp; color of the bars it is indicating (nearest to arrow pointer)&lt;/P&gt;&lt;P&gt;For ex: 8mm green, 10mm blue, 12mm orange 16mm magenta, 20mm red, 25mm flourecent green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your valuable time.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;PNP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: i am using another lisp to give the length of the each bar dia and multiply them manually by 2 (usually we will have 2 bars in a beam ) to get the overall length for boq purposes.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 20:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12690254#M15590</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-05T20:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12690509#M15591</link>
      <description>&lt;P&gt;Post a dwg how do you determine what is a 8mm bar ? Why not draw bars on layers 8mm, 10mm etc. You can make a choose dia pretty quick say a lisp defun if you type 8 it will set layer 8mm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:8 ()(setvar 'clayer "8mm"))
(defun c:10 ()(setvar 'clayer "10mm"))
(defun c:12 ()(setvar 'clayer "12mm"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 23:29:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12690509#M15591</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-05T23:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12690808#M15592</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick response&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;. PFA typical drawing we prepare. We indicate the bars and no. of bars as attributes. Drawing the bars of 8, 10 etc. in layers is time consuming and also is prone to change by designer leading to rework.&amp;nbsp;I am new to VBA coding. So, do not know how the below code works. Request you to please help&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;prash1730&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 04:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12690808#M15592</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-06T04:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12691556#M15593</link>
      <description>&lt;P&gt;You should probably rename the 2nd Attribute Tagname in your block 'NO' so it is unique. Perhaps name it as "DIM".&lt;/P&gt;&lt;P&gt;This Lisp will get you started. Once you get the Diameters, you can do the Color change..&lt;/P&gt;&lt;P&gt;;; Get_Bars.lsp&lt;/P&gt;&lt;P&gt;(vl-load-com)&lt;BR /&gt;(setq ss nil)&lt;BR /&gt;(setq ss (ssget "X" (list (cons 2 "NO")(cons 0 "INSERT"))))&lt;BR /&gt;(if ss&lt;BR /&gt;(progn&lt;BR /&gt;(setq C 0)&lt;BR /&gt;(repeat (sslength ss)&lt;BR /&gt;(setq blk (vlax-ename-&amp;gt;vla-object (ssname ss C)))&lt;BR /&gt;(if (safearray-value (setq atts (vlax-variant-value (vla-getattributes blk))))&lt;BR /&gt;(progn&lt;BR /&gt;(setq atts (vlax-safearray-&amp;gt;list (vlax-variant-value (vla-getattributes blk))))&lt;BR /&gt;(setq ctr 0 Dia "")&lt;BR /&gt;(foreach att atts&lt;BR /&gt;(setq Tag (vla-get-tagstring att))&lt;BR /&gt;(if (= Tag "00")&lt;BR /&gt;(setq ctr (+ ctr 1))&lt;BR /&gt;); if&lt;BR /&gt;(if (= ctr 2); second attribute with tagname "00"&lt;BR /&gt;(setq Dia (vla-get-textstring att))&lt;BR /&gt;); if&lt;BR /&gt;); foreach&lt;BR /&gt;); progn&lt;BR /&gt;); if&lt;BR /&gt;(if (/= Dia "")&lt;BR /&gt;(princ (strcat "\nFound Diameter of: " Dia))&lt;BR /&gt;); if&lt;BR /&gt;(setq C (+ C 1))&lt;BR /&gt;); repeat&lt;BR /&gt;); progn&lt;BR /&gt;); if&lt;BR /&gt;(princ)&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 17:54:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12691556#M15593</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-06T17:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12691577#M15594</link>
      <description>&lt;P&gt;Hmm..&lt;/P&gt;&lt;P&gt;Looks like I missed the question. You want to change the Color and Layer of the 'lines' that the NO block / Leader are pointing at ?&amp;nbsp; They are not 'attached' in any manner that I can determine. Maybe you could 'pick' the NO block, extract the value, say 12. Then pick the lines that you want to change ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 18:16:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12691577#M15594</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-06T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692057#M15595</link>
      <description>&lt;P&gt;Thank you for the response &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;. yes. I would like the program to identify the bar dia. and change its layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR if it changes only the colour then also it is fine.. I can click the particular dia. say, 12mm and use select similar feature to get the total length.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 05:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692057#M15595</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-07T05:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692743#M15596</link>
      <description>&lt;P&gt;Prash1730&lt;/P&gt;&lt;P&gt;I'm working on it have a lisp for you to check out.&lt;/P&gt;&lt;P&gt;Next phase would be to get the Lines, and change the Color per your specs.&lt;/P&gt;&lt;P&gt;All the time I have for now. I'll finish it up later.&lt;/P&gt;&lt;P&gt;ECCAD2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 19:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692743#M15596</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-07T19:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692963#M15597</link>
      <description>&lt;P&gt;Regards&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15312644"&gt;@prash1730&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this code...&lt;/P&gt;
&lt;P&gt;First Apply "JOIN" to all the lines and polylines that represent the bars, then apply the "color_bar" routine, selecting all the blocks with the bar data.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;;___
(defun c:color_bar (/ ltxn lc blkn ltxn	ldx x y	lc c sl	atf pmin pmax
		    slw	lp ang pn lpn)
  (setq	ltxn (vl-remove-if
	       'listp
	       (mapcar 'cadr (ssnamex (ssget '((0 . "INSERT")))))
	     )
  )
  (setq	lc (list '(8 . "3")'(10 . "5")'(12 . "30")'(16 . "4")'(20 . "1")'(25 . "90")		)
  )
  (foreach x ltxn
    (setq ldx (entget (entnext (entnext x)))
	  atf (atoi (cdr (assoc 1 ldx)))
    )
    (foreach y lc
      (if (= atf (car y))
	(progn
	  (setq c (cdr y))
	  (vla-getboundingbox (vlax-ename-&amp;gt;vla-object x) 'pmin 'pmax)
	  (setq	pmin (vlax-safearray-&amp;gt;list pmin)
		pmax (vlax-safearray-&amp;gt;list pmax)
		sl   (ssget "_c"
			    (mapcar '- pmin '(3. 0. 0.))
			    pmax
			    '((0 . "leader"))
		     )
		lp   (mapcar 'cdr
			     (vl-remove-if-not
			       '(lambda (j) (= (car j) 10))
			       (entget (ssname sl 0))
			     )
		     )
		ang  (/ pi 4)
		lpn  '()
	  )
	  (repeat 4
	    (setq pn  (polar (car lp) ang 1.2)
		  lpn (cons pn lpn)
	    )
	    (setq ang (+ ang (/ pi 2)))
	  )
	  (setq	slw
		 (ssname
		   (ssget "_cp"
			  lpn
			  (list '(0 . "*line") (cons 8 "Reinforcement"))
		   )
		   0
		 )
	  )
	  (vlax-put (vlax-ename-&amp;gt;vla-object slw) 'Color (atoi c))
	)
      )				
    )				
  )				
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 00:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12692963#M15597</guid>
      <dc:creator>calderg1000</dc:creator>
      <dc:date>2024-04-08T00:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12693007#M15598</link>
      <description>&lt;P&gt;I think I have it. Attached 'Do_Bars.lsp' changes the colors.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 01:02:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12693007#M15598</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-08T01:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12694815#M15599</link>
      <description>&lt;P&gt;Prash1730 - This change will report the re-rods into "ReRod-report.csv" in current folder.&lt;/P&gt;&lt;P&gt;Maybe you can use this additional data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As before, just load it and type GO.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 17:13:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12694815#M15599</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-08T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12701784#M15600</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4920461"&gt;@calderg1000&lt;/a&gt;&amp;nbsp;and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;i will check it out and revert. Once again thanks a lot for your valuable time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;PNP&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:00:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12701784#M15600</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-11T13:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12701909#M15601</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;i checked the lisp and it is changing the rebar colour perfectly! &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, all the bars are in one layer - reinforcement. Can it be changed to say rein 12 for 12mm dia bar, rein 16 for 16mm dia bar and so on.. This will help in taking the length of only those dia meter bars which we are interested... Thanks a ton for your kind help &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;PNP&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:41:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12701909#M15601</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-11T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12702546#M15602</link>
      <description>&lt;P&gt;Prash1730,&lt;/P&gt;&lt;P&gt;Attached will make the Layers you requested..rein8mm rein10mm..etc. and will place each reinforcement bar&lt;/P&gt;&lt;P&gt;on that layer as well as change it's color to match..&lt;/P&gt;&lt;P&gt;Hope you like it. (again)&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 17:26:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12702546#M15602</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-11T17:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12717971#M15603</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;thank you for the updated lisp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the below error:&lt;/P&gt;&lt;P&gt;; error: no function&amp;nbsp;definition: DXF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i doing it correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;PNP&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 16:50:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12717971#M15603</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-18T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12718184#M15604</link>
      <description>&lt;P&gt;Of course, I missed that call in the Lisp.&lt;/P&gt;&lt;P&gt;Here's the updated version.&lt;/P&gt;&lt;P&gt;Sorry about the trouble my bad.&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 18:25:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12718184#M15604</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-18T18:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725107#M15605</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;Thank you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;foe the updated file. Sory to bother you..&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using the lisp. But when i load the lsp and click GO, nothing seems to be happening.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please let me know if i am doing it correctly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PNP&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:39:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725107#M15605</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-22T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725187#M15606</link>
      <description>&lt;P&gt;prash1730,&lt;/P&gt;&lt;P&gt;I just ran it on the original 'drawing1' that you posted. Seems to work fine here.&lt;/P&gt;&lt;P&gt;When you appload and type GO at the command prompt, you may not notice anything but&lt;/P&gt;&lt;P&gt;a change in Color for those rods. But, there will be some Layers made, and the rods will be&lt;/P&gt;&lt;P&gt;changed to those Layers also.&lt;/P&gt;&lt;P&gt;At command prompt, after you do GO you might want to do the LAYWALK command.&lt;/P&gt;&lt;P&gt;Just type LAYWALK at the Command prompt. And look for items on those new layers.&lt;/P&gt;&lt;P&gt;Also, if nothing on the drawing you are working with changes, no new Layers ..&lt;/P&gt;&lt;P&gt;Please attach that drawing here for me to check out.&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:09:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725187#M15606</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-22T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725626#M15607</link>
      <description>&lt;P&gt;Namaste,&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;i tried again and found that new layers based on dia are being generated. However, they are not getting assigned to the respective rod diameters. Still all bars are diaplaying "Reinforcement" layer. Also, colour of the rods seems to be unchanged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attaching the file for your kind perusal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;PNP&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 17:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725626#M15607</guid>
      <dc:creator>prash1730</dc:creator>
      <dc:date>2024-04-22T17:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725788#M15608</link>
      <description>&lt;P&gt;The new drawing you attached kinda looks like the original, but it's not the same block set as original.&lt;/P&gt;&lt;P&gt;You have Text where the original drawing Block 'NO' was placed. So, as a consequence, the Lisp was looking&lt;/P&gt;&lt;P&gt;for the block NO, and it cannot find any on your new drawing. That 'block' insertion point and 2 attributes were&lt;/P&gt;&lt;P&gt;the key to grabbing the Leader, and at the insertion point of the Leader, grabbing the Pline.&lt;/P&gt;&lt;P&gt;See the attached 'checked' drawing for what is wrong.&lt;/P&gt;&lt;P&gt;So, I cannot help you any further on this topic, sorry.&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 18:23:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12725788#M15608</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-22T18:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to change layer of lines based on bar diameter</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12728317#M15609</link>
      <description>&lt;P&gt;prash1730,&lt;/P&gt;&lt;P&gt;I might have a solution. I'll check "Text" and look at the last character, if it's a (chr 216) I'll try&lt;/P&gt;&lt;P&gt;to break that down and use it's insertion point to start looking for the Leader..&lt;/P&gt;&lt;P&gt;working on it. If it works, I'll attach Do_Bars4.lsp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 17:39:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-change-layer-of-lines-based-on-bar-diameter/m-p/12728317#M15609</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-04-23T17:39:57Z</dc:date>
    </item>
  </channel>
</rss>

