<?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 VBA OR LISP to create block with attribute in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085550#M83009</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;hope someone can help me create VBA or Lisp to create attribute and then change it to block so I can extract data to excel&lt;/P&gt;&lt;P&gt;of course I know it take time and I am welling to pay if I have too&lt;/P&gt;&lt;P&gt;I need to create Lisp/VBA to create attributes to prompt&amp;nbsp; user to type text or select object as per the following:-&lt;/P&gt;&lt;P&gt;1: Room Number : ask me to type room number (default # 0001)&lt;/P&gt;&lt;P&gt;2:R&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;oom Name: ask me to type room name(default room name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;3:Floor Finish: ask me to select object and then bring back layer name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;4: &lt;STRONG&gt;Area&lt;/STRONG&gt; : &lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ask me to select object and then bring back area of selected object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;5: Length:ask me to select object and then bring back length of selected object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;6:number of doors : ask me to type number of doors&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;7:wall finish: ask me type wall finish&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;8: wall qty : ask me to type wall qty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 16:47:37 GMT</pubDate>
    <dc:creator>jalal.mousa</dc:creator>
    <dc:date>2019-10-14T16:47:37Z</dc:date>
    <item>
      <title>VBA OR LISP to create block with attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085550#M83009</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;hope someone can help me create VBA or Lisp to create attribute and then change it to block so I can extract data to excel&lt;/P&gt;&lt;P&gt;of course I know it take time and I am welling to pay if I have too&lt;/P&gt;&lt;P&gt;I need to create Lisp/VBA to create attributes to prompt&amp;nbsp; user to type text or select object as per the following:-&lt;/P&gt;&lt;P&gt;1: Room Number : ask me to type room number (default # 0001)&lt;/P&gt;&lt;P&gt;2:R&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;oom Name: ask me to type room name(default room name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;3:Floor Finish: ask me to select object and then bring back layer name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;4: &lt;STRONG&gt;Area&lt;/STRONG&gt; : &lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ask me to select object and then bring back area of selected object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;5: Length:ask me to select object and then bring back length of selected object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;6:number of doors : ask me to type number of doors&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;7:wall finish: ask me type wall finish&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;8: wall qty : ask me to type wall qty&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 16:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085550#M83009</guid>
      <dc:creator>jalal.mousa</dc:creator>
      <dc:date>2019-10-14T16:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBA OR LISP to create block with attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085662#M83010</link>
      <description>&lt;P&gt;INSERT command with your posted block already brings up quite a comprehensive pop-up for a user to fill in, is that not working well enough on your end?&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="Capture.PNG" style="width: 530px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/687485iC4B1FD6AB06CB17A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 17:45:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085662#M83010</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2019-10-14T17:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: VBA OR LISP to create block with attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085797#M83011</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: 'inherit',serif; color: #666666;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;inherit&amp;quot;,serif"&gt;T&lt;SPAN style="font-family: 'inherit',serif; color: #666666;"&gt;he block works, but, what I am trying to do is adding this block every time I close polyline and change the block's reference object to the new &lt;SPAN style="box-sizing: border-box; color: #666666; font-family: &amp;amp;quot; inherit&amp;amp;quot;,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;closed&lt;/SPAN&gt; polyline.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;inherit&amp;quot;,serif"&gt;S&lt;SPAN style="font-family: 'inherit',serif; color: #666666;"&gt;o, at the end of drawing any new polyline, it will prompt me to choose which object I would like to get the area, length and layer name from said object &lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="font-family: 'inherit',serif; color: #666666;"&gt;and update the block accordingly. instead of choosing each attribute in the block multiple times&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;inherit&amp;quot;,serif"&gt;A&lt;SPAN style="font-family: 'inherit',serif; color: #666666;"&gt;lso, it would be ideal if I can retrieve the room number, room name, and layer from an excel table that I had already made and insert it into the block. Afterwards, the information such as the area and length as well as the number of doors from the block would be reinserted into said excel table.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit',serif; color: #666666;"&gt;Thanks.&lt;/SPAN&gt;&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;</description>
      <pubDate>Mon, 14 Oct 2019 18:42:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9085797#M83011</guid>
      <dc:creator>jalal.mousa</dc:creator>
      <dc:date>2019-10-14T18:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: VBA OR LISP to create block with attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9086203#M83012</link>
      <description>First, thank for for elaborating on your actual need. That's way more than your initial post.&lt;BR /&gt;&lt;BR /&gt;Second: are you just using plain AutoCAD? The abilities and features you seem to want are stock (or modifable stock) options in AutoCAD ARCHITECTURE (or better yet, REVIT).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:08:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9086203#M83012</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2019-10-14T23:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: VBA OR LISP to create block with attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9086237#M83013</link>
      <description>&lt;P&gt;When you insert a block you can populate the attributes at the time of insertion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you ask the questions 1st, pick objects, measure distances, layers etc then do the insert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "-insert" "roomblk" (getpoint "pick point") 1 1 0 att1 att2 att3 att4 etc)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:44:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9086237#M83013</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-10-14T23:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: VBA OR LISP to create block with attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9086341#M83014</link>
      <description>&lt;P&gt;Thanks for clarification&lt;/P&gt;&lt;P&gt;you are right but I am trying to avoid dealing with 3 different attribute that refer to same object&lt;/P&gt;&lt;P&gt;is there a way to select object once with out doing same for each attribute&lt;/P&gt;&lt;P&gt;this will save time and avoid mistakes&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 01:38:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/vba-or-lisp-to-create-block-with-attribute/m-p/9086341#M83014</guid>
      <dc:creator>jalal.mousa</dc:creator>
      <dc:date>2019-10-15T01:38:07Z</dc:date>
    </item>
  </channel>
</rss>

