<?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: block with attributes and fields in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6506358#M265357</link>
    <description>&lt;P&gt;thanks for your reply , but the link you posted just talks about attaching link attribute to a block , what i want to have is the block promotes me to enter 2 values (attributes) and to take the length of two lines (fields) all in the same block. and give the result in text&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2016 18:59:34 GMT</pubDate>
    <dc:creator>NERDASORUS</dc:creator>
    <dc:date>2016-08-17T18:59:34Z</dc:date>
    <item>
      <title>block with attributes and fields</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6503871#M265353</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I want to create a Block with attributes and Fields ,that when i Insert it it promotes me to enter the attributes value , and pick 2 objects for the fields , the question is is that possible ,and how&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 19:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6503871#M265353</guid>
      <dc:creator>NERDASORUS</dc:creator>
      <dc:date>2016-08-16T19:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: block with attributes and fields</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6504159#M265354</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous.melhem wrote:&lt;BR /&gt;&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I want to create a Block with attributes and Fields ,that when i Insert it it promotes me to enter the attributes value , and pick 2 objects for the fields , the question is is that possible ,and how&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here's a good place to start:&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-67A2DDAD-2217-412F-8AEF-D4495192F45B-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-67A2DDAD-2217-412F-8AEF-D4495192F45B-htm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 21:52:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6504159#M265354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-16T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: block with attributes and fields</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6504199#M265355</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;Without doing it for you, this is the process:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First create the block with the attributes. &amp;nbsp;Do this manually.&lt;/P&gt;
&lt;P&gt;Save the block to a library location so it is available for insert.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Insert the block manually. Write down the prompts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create an object field with the field command. Set it up just like you want in the block attributes.&lt;/P&gt;
&lt;P&gt;Look at the field code. &amp;nbsp;All you need to replicate is the stuff to the left and right of the objectid, properly formatted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write a lisp command that uses the insert command prototyped here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun c:yourcommand ( nil / local arguments )&lt;/P&gt;
&lt;P&gt;...set environment correctly, including error handler.&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;ask user to select objects with ssget or entsel&lt;/P&gt;
&lt;P&gt;...vet the selection&lt;/P&gt;
&lt;P&gt;...convert the enames to objectids for the fields.&lt;/P&gt;
&lt;P&gt;...build the field based on looking at object fields you've built before&lt;/P&gt;
&lt;P&gt;(command "_.insert" &amp;nbsp;"yourblockname" ... answers to prompts you wrote down including attributes....)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...cleanup&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 22:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6504199#M265355</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2016-08-16T22:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: block with attributes and fields</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6506346#M265356</link>
      <description>&lt;P&gt;thanks for your reply , when you get the field part i cant follow , and i have no idea how to write&amp;nbsp;lisps , could you please elaborate some more&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 18:56:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6506346#M265356</guid>
      <dc:creator>NERDASORUS</dc:creator>
      <dc:date>2016-08-17T18:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: block with attributes and fields</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6506358#M265357</link>
      <description>&lt;P&gt;thanks for your reply , but the link you posted just talks about attaching link attribute to a block , what i want to have is the block promotes me to enter 2 values (attributes) and to take the length of two lines (fields) all in the same block. and give the result in text&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 18:59:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/block-with-attributes-and-fields/m-p/6506358#M265357</guid>
      <dc:creator>NERDASORUS</dc:creator>
      <dc:date>2016-08-17T18:59:34Z</dc:date>
    </item>
  </channel>
</rss>

