<?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: Auto Room Dimensions in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/12251151#M65040</link>
    <description>Im using a mac... if that could be contributing to the issue</description>
    <pubDate>Tue, 19 Sep 2023 15:04:33 GMT</pubDate>
    <dc:creator>pranjal_mahe</dc:creator>
    <dc:date>2023-09-19T15:04:33Z</dc:date>
    <item>
      <title>Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040636#M65003</link>
      <description>&lt;P&gt;Hello, I would like a small lisp in which when I select 2 corners of the room, itll place a text in middle with the room name &amp;amp; room dimensions with the current layer and text style. Itll go like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line 1: Bedroom&lt;/P&gt;&lt;P&gt;Line 2: 3.05 x 3.30 M&lt;/P&gt;&lt;P&gt;Line 3: 10' x 10'9"&lt;/P&gt;&lt;P&gt;It should be length x breadth always.  All as middle center justification. I have found a few lisp but it just has feet inches and not both dimensions. Itll save a lot of my time if someone could do it. Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 378px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/873760iAA36A8D6F3581A23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 04:36:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040636#M65003</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T04:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040686#M65004</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, I would like a small lisp in which when I select 2 corners of the room, itll place a text in middle with the &lt;FONT color="#FF0000"&gt;room name&lt;/FONT&gt; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3" color="#FF0000"&gt;What is the source of the Room name?&amp;nbsp; User prompt?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;Are you wanting 3 separate TEXT entity or 1 MTEXT?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt; I have found a few lisp but it just has feet inches and not both dimensions.&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;Where is this lisp then?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Itll save a lot of my time if someone could do it. Thanks &amp;amp; Regards&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;It would save us&amp;nbsp; a lot of time&amp;nbsp; if you be more concise&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 05:28:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040686#M65004</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T05:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040706#M65005</link>
      <description>&lt;P&gt;I want 1 single Mtext. 1 text with 3 lines. I have attached the lisp below. it shows only in meters. I need both meters and feet inches&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 05:38:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040706#M65005</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T05:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040710#M65006</link>
      <description>&lt;P&gt;The source could be pre listed as in the attached lisp in previous reply. Or I could manually type when I enter the lisp command. As the texts are almost always the same typical as living kitchen bedroom toilet etc.. the first option would be better instead of typing everytime.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 05:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040710#M65006</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T05:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040757#M65007</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The source could be pre listed as in the attached lisp in previous reply. Or I could manually type when I enter the lisp command. As the texts are almost always the same typical as living kitchen bedroom toilet etc.. the first option would be better instead of typing everytime.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Attached is the modifed lisp to include the third line&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Here are the additional snippets&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;.....
  (setq	pt (polar p1 (angle p1 p2) (/ (distance p1 p2) 2)) ; mid point
	&lt;FONT color="#0000FF"&gt;pt (polar pt (/ pi 2.0) (* h 1.5))&lt;/FONT&gt;
	pm (polar pt (* pi 1.5) (* h 1.5))
	pf (polar pm (* pi 1.5) (* h 1.50))
  )
  (MakeText pm pm txlay "rs" ht1 mt)
 &lt;FONT color="#0000FF"&gt; (MakeText &lt;STRONG&gt;pf pf&lt;/STRONG&gt; txlay "rs" ht1 ft)
&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;IT should be 3 lines now, third line as imperial&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 06:06:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040757#M65007</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T06:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040789#M65008</link>
      <description>&lt;P&gt;Hello, this is just perfect. But the text does not gets placed in the middle of the room. Do you know how to fix that? I have attached a screenshot below to show. Another thing would be great if the first line be Bold. i.e. the 'Toilet' should be in bold font.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 06:16:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040789#M65008</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T06:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040829#M65009</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, this is just perfect. But the text does not gets placed in the middle of the room. Do you know how to fix that? I have attached a screenshot below to show. Another thing would be great if the first line be Bold. i.e. the 'Toilet' should be in bold font.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Where is the screenshot?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Not sure why it behaves that way, ok here on my end.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Here's a short code that creates three lines of text , the height is will refer to TEXTSIZE variable, it iwll be on the current layer.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:RoomLabel ( /  _Imperial Roomname fc nc h v str p)
(defun _Imperial (v)
  (rtos (cvunit v "meter" "inch") 4 0))
	(while
	 (and
	   (setq Roomname (getstring t "\nEnter room name: "))
	   (setq fc (getpoint "\nPick first corner"))
	   (null (initget 32))
	   (setq nc (getcorner fc "\nPick Next corner"))
	   )
	(setq h (abs (- (car fc)(car nc)))
	      v (abs (- (cadr fc)(cadr nc))))
	(setq str (strcat  (strcase Roomname) "\\P"
			   (rtos h 2 2) " x " (rtos v 2 2) "\\P"
			   (_Imperial h) " x " (_Imperial v)))
	(setq p (mapcar (function (lambda (a b) (/ (+ a b) 2.))) fc nc))
	(entmakex (list (cons 0 "MTEXT")
			  (cons 100 "AcDbEntity")
			  (cons 100 "AcDbMText")
			  (cons 10 (trans p 1 0))
			  (cons 1 str)
			  (cons 41 (- (car p)(car p)))	
			  (cons 71 5)
			  (cons 72 5)
			  (cons 73 1)
			  (cons 7 (getvar 'TextStyle))
				    )
			  )
	    )
  (princ)
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are savvy enough in lisp, you can add the options for Room names. and also add the "&lt;STRONG&gt;BOLD&lt;/STRONG&gt;" thingy. That&amp;nbsp; requires retrieving the current text style's font and some additional formatting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 06:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040829#M65009</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T06:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040845#M65010</link>
      <description>&lt;P&gt;Ok I created a new lisp command as per your new script. I am not well versed with all this. I dont know how to make it bold and room names. I will try to integrate both the lisps and try it. Rest all is just perfect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 06:45:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040845#M65010</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T06:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040911#M65011</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok I created a new lisp command as per your new script. I am not well versed with all this. I dont know how to make it bold and room names. I will try to integrate both the lisps and try it. Rest all is just perfect.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Formating Mtext is a bit complicated., we can add the boldness easy if you are using a rgular font type. Can you post a drawng sample of the label you are using.&amp;nbsp;Do that, and we might even add the room names on the code.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 07:20:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040911#M65011</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T07:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040978#M65012</link>
      <description>&lt;P&gt;1. I am not using regular font type. The font I am using is Bahnscrift (I have attached the font below)&lt;BR /&gt;&lt;BR /&gt;2. I have attached the drawing with all the text types/room names I need for the same. I'll write the same here for the short form it needs when using the lisp command.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;L=Living Room, K=Kitchen, D=Dining, B=Bedroom, MB=Master Bed., WC=W.C., B=Bath, T1=Toilet 1, T2, Toilet 2, LL=Lobby, P=Passage, Li=Lift, S=Shop, Ba=Balcony, Te=Terrace, DB=Dry Balc., T=Type the text by myself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10040978#M65012</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T08:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10041577#M65013</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... B=Bedroom, ... B=Bath ....&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Two rooms with the same abbreviation&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 12:46:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10041577#M65013</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-01-29T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10041984#M65014</link>
      <description>&lt;P&gt;oh sorry. Bt=Bath, B=Bedroom&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 15:13:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10041984#M65014</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10042266#M65015</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;1. I am not using regular font type. The font I am using is Bahnscrift (I have attached the font below)&lt;BR /&gt;&lt;BR /&gt;2. I have attached the drawing with all the text types/room names I need for the same. I'll write the same here for the short form it needs when using the lisp command.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try this, I used numbers instead of keywords, that way you can add as many as you need in the future and not worry about the keyword&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(defun c:RoomLabel ( /  _Imperial _StrcatW lst Roomname
		    			txFont fc opt nc h v str p)
;;		pBe Jan 2021		;;;
(defun _Imperial (v) (rtos (cvunit v "meter" "inch") 4 0))
(defun _StrcatW	(l f)
  (substr
    (apply 'strcat (mapcar '(lambda (s) (strcat f s)) l)) 2
  )
)
(setvar 'dynmode 3)  
(setq lst '(("1" " Living Room")("2" " Kitchen")("3" " Dining")("4" " Bedroom")
	    ("5" " Master Bed")("6" " W.C.")("7" " Bath")("8" " Toilet 01")
	    ("9" " Toilet 02")("10" " Lobby")("11" " Passage")("12" " Lift")
	    ("13"  " Shop")("T" " Type")))

;; if Bahnschrift in not the current textstyle or does not exist on the drawing	;;
;; the default textstyle would be standard, text height = current TEXTSIZE	;;
  
(setq txFont      
	  (if (member (Cdr (assoc 2 (tbLsearch "style" (getvar 'textstyle))))
		      '("BH-Light" "BH-Medium")) 
	    	(list "{\\fBahnschrift|b1|i0|c0|p34;"
		      "\\P\\fBahnschrift Light Condensed|b0|i0|c0|p34;" "}")
		(list "{\\fArial|b1|i0|c0|p34;" "}\\P" ""))
       )

(initget 1 (_strcatw (mapcar 'car lst) " "))
(setq opt (getkword (strcat  "\nChoose Room name ["
			     (_strcatw (mapcar 'strcat (mapcar 'car lst)
					       (mapcar 'cadr lst)) "/" ) "]: ")))
 
(setq Roomname
       (cond
	 ((= opt "T")(getstring t "\nTYPE ROOM NAME: "))
	 ((substr (cadr (assoc opt lst)) 2))
	 ;; more options here in the future ;;;
	 )
      )
  
(if
	(and
	   (setq fc (getpoint "\nPick first corner"))
	   (null (initget 32))
	   (setq nc (getcorner fc "\nPick Next corner"))
	   )
  (progn
	(setq h (abs (- (car fc)(car nc)))
	      v (abs (- (cadr fc)(cadr nc))))
	      
	(setq str (strcat (car txFont) Roomname (cadr txFont)
			   (rtos h 2 2) " x " (rtos v 2 2) "\\P"
			   (_Imperial h) " x " (_Imperial v) (caddr txFont)))
    
	(setq p (mapcar (function (lambda (a b) (/ (+ a b) 2.))) fc nc))
	(entmakex (list (cons 0 "MTEXT")
			  (cons 100 "AcDbEntity")
			  (cons 100 "AcDbMText")
			  (cons 10 (trans p 1 0))
			  (cons 1 str)
			  (cons 41 (- (car p)(car p)))	
			  (cons 71 5)
			  (cons 72 5)
			  (cons 73 1)))
	    )
  	)
  (princ)
  )&lt;/LI-CODE&gt;&lt;LI-CODE lang="lisp"&gt;Command:ROOMLABEL
Choose Room name [1 Living Room/2 Kitchen/3 Dining/4 Bedroom/5 Master Bed/6 W.C./7 Bath/8 Toilet 01/9 Toilet 02/10 LObby/11 Passage/12 Lift/13 Shop/T Type]: 2
Pick first corner
Pick Next corner&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Dynamic input:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rooms.png" style="width: 144px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/874088i6FBBCC89CC5D6DF3/image-dimensions/144x311?v=v2" width="144" height="311" role="button" title="rooms.png" alt="rooms.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 16:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10042266#M65015</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T16:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10042337#M65016</link>
      <description>&lt;P&gt;This is exactly what I wanted. Thanks a lot brother. You solved a major problem and much of manual work for me. Thanks a lot. I hope you succeed in life. Wish you all the very best. Kudos to you. Thanks &amp;amp; Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 17:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10042337#M65016</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-29T17:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10042393#M65017</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4016860"&gt;@zaid.k3112&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is exactly what I wanted. Thanks a lot brother. You solved a major problem and much of manual work for me. Thanks a lot. I hope you succeed in life. Wish you all the very best. Kudos to you. Thanks &amp;amp; Regards.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Good for you, glad i could help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You are welcome.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 17:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10042393#M65017</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10043276#M65018</link>
      <description>&lt;P&gt;A alternative to dynmode had some issues if forget to turn back off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq lst '("Please choose " " Living Room" " Kitchen" " Dining" " Bedroom"
	    " Master Bed" "W.C." " Bath" " Toilet 01"
	    " Toilet 02" " Lobby" " Passage"  " Lift"
	    " Shop"  " Type"))
(if (not AH:Butts)(load "Multi Radio buttons.lsp"))
(if (not but)(setq but 1))
(setq ans (ah:butts but "v"  lst)) ; ans holds the button picked value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Multi radio buttons.lsp can be used in any code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot324.png" style="width: 247px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/874252i3C0E1152E9D447BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot324.png" alt="screenshot324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Almost forgot can set default button to repeat last button picked so just click OK.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 00:24:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10043276#M65018</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-01-30T00:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10043552#M65019</link>
      <description>&lt;P&gt;What am i supposed to do with this code? I am not familiar with lisp&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 05:09:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10043552#M65019</guid>
      <dc:creator>zaid.k3112</dc:creator>
      <dc:date>2021-01-30T05:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10044983#M65020</link>
      <description>&lt;P&gt;Its an alternative to using dynmode method of selecting an option, very similar in that you have&amp;nbsp; a list of options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use what has been provided when you get a bit more experience come back happy to answer any questions, as its a library routine for any code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Multi radio.jpg" style="width: 715px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/874562i0CC106E8326E68BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Multi radio.jpg" alt="Multi radio.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 00:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10044983#M65020</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-01-31T00:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10062840#M65021</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Use this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;A href="https://www.kdmsoft.net/roomdim.html" target="_blank" rel="noopener"&gt;RoomDim&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FKx9vPpzKsCM%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKx9vPpzKsCM&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FKx9vPpzKsCM%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="600" height="338" scrolling="no" title="RoomDim - Automatic naming and dimensioning of areas in CAD" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 14:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10062840#M65021</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2021-02-06T14:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Room Dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10178270#M65022</link>
      <description>&lt;P&gt;Can you please update lisp for 10' to 10'-0"&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 06:54:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-room-dimensions/m-p/10178270#M65022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-23T06:54:55Z</dc:date>
    </item>
  </channel>
</rss>

