<?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: Extract Block Geometery &amp;amp; Attribute in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8767615#M89763</link>
    <description>&lt;P&gt;Thank you again&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5644077"&gt;@dlanorh&lt;/a&gt; !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it be easy to have it check if in model space and if the block exist with an alert? And an alert to upon completions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried but haven't gotten it to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((alert "Command unavailable in Modelspace"))

((alert "Pile_Block not found!"))&lt;BR /&gt;&lt;BR /&gt;((alert "Pile data exported sucessfuly"))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&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>Thu, 02 May 2019 17:22:19 GMT</pubDate>
    <dc:creator>Jonathan3891</dc:creator>
    <dc:date>2019-05-02T17:22:19Z</dc:date>
    <item>
      <title>Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8737592#M89750</link>
      <description>&lt;P&gt;I thought I had this working until I realized that a data extraction template is tied to a single drawing. Data extraction gives me exactly what I want but&amp;nbsp;&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;I want to automate this completely without any interaction from the user.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to be able to extract pile data (a block) to a csv file containing:&lt;/P&gt;
&lt;P&gt;Position X&lt;/P&gt;
&lt;P&gt;Position Y&lt;/P&gt;
&lt;P&gt;Position Z&lt;/P&gt;
&lt;P&gt;Dynamic Block Information&lt;/P&gt;
&lt;P&gt;Attribute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is what I'm asking possible without using Data Extraction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found one on the forums but it wouldn't do anything&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/data-extraction-amp-attributes-on-dynamic-blocks-through-lisp/m-p/4811213?collapse_discussion=true&amp;amp;filter=location&amp;amp;location=forum-board:130&amp;amp;q=Data%20Extraction%20&amp;amp;%20Attributes&amp;amp;search_type=thread" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/data-extraction-amp-attributes-on-dynamic-blocks-through-lisp/m-p/4811213?collapse_discussion=true&amp;amp;filter=location&amp;amp;location=forum-board:130&amp;amp;q=Data%20Extraction%20&amp;amp;%20Attributes&amp;amp;search_type=thread&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8737592#M89750</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-04-17T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738027#M89751</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/756506"&gt;@Jonathan3891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I thought I had this working until I realized that a data extraction template is tied to a single drawing. Data extraction gives me exactly what I want but&amp;nbsp;&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;I want to automate this completely without any interaction from the user.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to be able to extract pile data (a block) to a csv file containing:&lt;/P&gt;
&lt;P&gt;Position X&lt;/P&gt;
&lt;P&gt;Position Y&lt;/P&gt;
&lt;P&gt;Position Z&lt;/P&gt;
&lt;P&gt;Dynamic Block Information&lt;/P&gt;
&lt;P&gt;Attribute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is what I'm asking possible without using Data Extraction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found one on the forums but it wouldn't do anything&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/data-extraction-amp-attributes-on-dynamic-blocks-through-lisp/m-p/4811213?collapse_discussion=true&amp;amp;filter=location&amp;amp;location=forum-board:130&amp;amp;q=Data%20Extraction%20&amp;amp;%20Attributes&amp;amp;search_type=thread" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/data-extraction-amp-attributes-on-dynamic-blocks-through-lisp/m-p/4811213?collapse_discussion=true&amp;amp;filter=location&amp;amp;location=forum-board:130&amp;amp;q=Data%20Extraction%20&amp;amp;%20Attributes&amp;amp;search_type=thread&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The lisp in the marked solution of the indicated thread (&lt;SPAN class="lia-link-navigation lia-attachment-link-disabled lia-link-disabled"&gt;DBtxt.LSP) &lt;/SPAN&gt;has hard wired block names and attribute tag names. These are at the top of the lisp file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	(setq data   nil
	      bnames "&lt;FONT color="#FF0000"&gt;SAMPLEB,SAMPLEC&lt;/FONT&gt;,`*U*"
	      Tags '(&lt;FONT color="#FF0000"&gt;"TAG1" "TAG2"&lt;/FONT&gt;)
	      ss     (ssget "_X"
			    (list '(0 . "INSERT") '(66 . 1) (cons 2 bnames))
		     )
	)
&lt;/PRE&gt;
&lt;P&gt;Open the file in a text editor and change the items marked in red above to reflect your block name and tag name. Save the file to a slightly different name,&amp;nbsp; then try loading and running the altered lisp.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 18:06:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738027#M89751</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-17T18:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738033#M89752</link>
      <description>I've changed the block and tag names in that lisp. I just couldn't get it to do anything.</description>
      <pubDate>Wed, 17 Apr 2019 18:07:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738033#M89752</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-04-17T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738105#M89753</link>
      <description>&lt;P&gt;Your block doesn't have a visibility state and thus failed one of the and conditions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have modified the lisp (attached) and it should now work with your block, but it won't display the stretch distance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It must be run on a drawing that has been saved at least once, and will write a text file (csv format) containing the attribute value followed by the x,y and z coords.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 18:46:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738105#M89753</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-17T18:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738119#M89754</link>
      <description>&lt;P&gt;I realise that this is not in the format you require, but it is to show that data extraction is possible without using autocad's data extraction tool and a template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you rename the *.txt file to *.csv it should load into excel.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 18:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8738119#M89754</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-17T18:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8739586#M89755</link>
      <description>&lt;P&gt;Try the attached. This collects all the information and sorts by pile number (assuming it is only numeric) and writes the csv to the same directory as the drawing (alterable by changing the path or prompting for a path)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8739586#M89755</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-18T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8740535#M89756</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I change the units from inches to feet?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 17:12:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8740535#M89756</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-04-18T17:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8740845#M89757</link>
      <description>&lt;P&gt;If you are refering to the "pile length" dynamic property&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change the red item below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(write-line (strcat (rtos (car i_pt) 2 3) "," (rtos (cadr i_pt) 2 3) "," (rtos (caddr i_pt) 2 3) "," &lt;FONT color="#FF0000"&gt;(rtos p_len 2 3)&lt;/FONT&gt; "," val) fp)&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(write-line (strcat (rtos (car i_pt) 2 3) "," (rtos (cadr i_pt) 2 3) "," (rtos (caddr i_pt) 2 3) "," &lt;FONT color="#0000FF"&gt;(rtos (\  p_len 12) 2 3)&lt;/FONT&gt; "," val) fp)&lt;/PRE&gt;
&lt;P&gt;This will preserve the drawing units but display the output in the csv file in decimal feet.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8740845#M89757</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-18T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8756203#M89758</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5644077"&gt;@dlanorh&lt;/a&gt; for all your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can I make one more request?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I change the information and order to the following:&lt;/P&gt;
&lt;P&gt;Pile No, Northing, Easting, Insert Elevation, Pile Length&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 17:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8756203#M89758</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-04-26T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8756369#M89759</link>
      <description>&lt;P&gt;Scratch that. I got all that figured out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do need to control the location of the csv file though. Is that something that can be done easily?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 19:02:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8756369#M89759</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-04-26T19:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8756481#M89760</link>
      <description>Is the csv file location something that can be hard coded or is it something that will vary? Both are relatively easy</description>
      <pubDate>Fri, 26 Apr 2019 20:07:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8756481#M89760</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-26T20:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8759407#M89761</link>
      <description>&lt;P&gt;It will be hard coded.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 12:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8759407#M89761</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-04-29T12:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8759466#M89762</link>
      <description>&lt;P&gt;Find this line in the setq at the top of the lisp :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;path (getvar 'dwgprefix)
&lt;/PRE&gt;
&lt;P&gt;Change it to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;path "(Drive) :/(Path to Save Location)" ; use "/" as the directory divider i.e. "C:/Users/....../"
&lt;/PRE&gt;
&lt;P&gt;Hopefully that should work.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 12:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8759466#M89762</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-04-29T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8767615#M89763</link>
      <description>&lt;P&gt;Thank you again&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5644077"&gt;@dlanorh&lt;/a&gt; !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it be easy to have it check if in model space and if the block exist with an alert? And an alert to upon completions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried but haven't gotten it to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((alert "Command unavailable in Modelspace"))

((alert "Pile_Block not found!"))&lt;BR /&gt;&lt;BR /&gt;((alert "Pile data exported sucessfuly"))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&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>Thu, 02 May 2019 17:22:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8767615#M89763</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2019-05-02T17:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Geometery &amp; Attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8767894#M89764</link>
      <description>&lt;P&gt;I have attached an updated lisp that will need editing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The lisp can run from modelspace or paperspace, so there is no need to check. I have included them but commented out so you can see how i have structured them within the cond statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the top of the attached lisp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included a local error function (just in case). The main purpose of this is to close the open file if an error should occur whilst it is open. This error routine replaces AutoCAD's error routine only for the duration of the lisp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The red items are the needed parts for the model/paper space checks. The sections in the "cond" statement have been commented out. If you want to remove them, only remove items coloured red.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The orange item is a check to ensure the drawing has been saved. This is to avoid a disconnected drawing csv file pairing. The program will still work if the line is removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The indigo line is the check for the block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that the path variable will need setting to the path where you require the csv file to be saved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:EPD ( / &lt;FONT color="#0000FF"&gt;*error*&lt;/FONT&gt; c_doc b_nme tag ss path f_name fp val i_pt p_len b_lst)

&lt;FONT color="#0000FF"&gt;  (defun *error* ( msg )
    (if fp (close fp))
    (if (and c_doc (= 8 (logand 8 (getvar 'UNDOCTL)))) (vla-endundomark c_doc))
    (if (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*EXIT*")) (princ (strcat "\nOops an Error : " msg " occurred.")))
    (princ)
  );end_*error*_defun
&lt;/FONT&gt;	
  (setq c_doc (vla-get-activedocument (vlax-get-acad-object))
        &lt;FONT color="#FF0000"&gt;c_spc (vla-get-activespace c_doc)&lt;/FONT&gt;&lt;FONT color="#008000"&gt;;Remove this line if you don't want a model/paper space check&lt;/FONT&gt;
        b_nme "PILE_BLOCK"
  );end_setq
  
  (cond &lt;FONT color="#FF0000"&gt;;( (= acpaperspace c_spc) (alert "Command Unavailable in Paperspace"))
        ;( (= acmodelspace c_spc) (alert "Command Unavailable in Modelspace"))&lt;/FONT&gt;
        &lt;FONT color="#FF6600"&gt;( (= (getvar 'dwgtitled) 0) (alert "Drawing not Saved"))&lt;/FONT&gt;
        &lt;FONT color="#333399"&gt;( (not (tblobjname "block" b_nme)) (alert (strcat "Block " b_nme " NOT available in drawing")))&lt;/FONT&gt;
        ( (and  (setq b_lst nil
                      path (getvar 'dwgprefix)&lt;FONT color="#008000"&gt;;CHANGE THIS TO YOUR REQUIRED PATH TO CSV FILE!!!&lt;/FONT&gt; 
&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2019 19:21:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extract-block-geometery-amp-attribute/m-p/8767894#M89764</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-05-02T19:21:52Z</dc:date>
    </item>
  </channel>
</rss>

