<?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 for extraction of polyline properties in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11306382#M43199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this wich can be near to your ask...&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 14:05:49 GMT</pubDate>
    <dc:creator>CADaSchtroumpf</dc:creator>
    <dc:date>2022-07-19T14:05:49Z</dc:date>
    <item>
      <title>LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11304098#M43196</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a LISP that can extract into a csv file the area of a closed polyline, the name of the room that is written inside it and the layer on which the polyline was drawn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get into the same csv file the properties of each polyline, because they contain valuable information.&lt;/P&gt;&lt;P&gt;The properties are in a object data table.&lt;/P&gt;&lt;P&gt;That would be in the form of new columns in the csv file (one column for each property field in the object data table) after the ones already existing (area, name of room and layer).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me to find what lines I should add to the LISP in order to perform that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 13:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11304098#M43196</guid>
      <dc:creator>NSL26</dc:creator>
      <dc:date>2022-07-18T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11304450#M43197</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12620223"&gt;@NSL26&lt;/a&gt;&amp;nbsp;For better understanding, and maybe get further help, please upload such sample.dwg&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 16:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11304450#M43197</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2022-07-18T16:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11306293#M43198</link>
      <description>&lt;P&gt;Hello again, here's a sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It contains 2 apartments with the room shape layer only and the text.&lt;/P&gt;&lt;P&gt;Usually I draw all the floors on the same dwg file, one next to the other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the properties of each polyline, you can see the data object table I created and associated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It contains 4 fields : Building, Batch, Floor and Apartment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I selected the polylines I need and wrote in the adequate field the number of the apartment, etc... So the value is updated on the properties of each individual polyline selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LISP I have allows me to have a csv file with the name of the rooms, their area and the layer they are on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is to also extract the properties data and have them in the csv.&lt;/P&gt;&lt;P&gt;And I would like to have all the data classified by building number and apartment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, I would get a csv file with : all the rooms of building 1 with their area, their building number, floor number and appartment number, beginning with the rooms of the first apartment of the first floor, then those of the second apartment of the first floor...&lt;/P&gt;&lt;P&gt;Then the same for the second floor, and so on.&lt;/P&gt;&lt;P&gt;And after, all that again for building 2, 3, 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will clarify my question.&amp;nbsp;&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11306293#M43198</guid>
      <dc:creator>NSL26</dc:creator>
      <dc:date>2022-07-19T13:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11306382#M43199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this wich can be near to your ask...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 14:05:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11306382#M43199</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2022-07-19T14:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11307581#M43200</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524107"&gt;@CADaSchtroumpf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;defun&amp;nbsp; ade_odgettables&amp;nbsp; and&amp;nbsp;ade_odtabledefn&amp;nbsp; &amp;nbsp; ade_odgetfield&amp;nbsp; &amp;nbsp; are not at lsp&amp;nbsp;&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="devitg_0-1658275373571.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1093509iF4F3B131B88008A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="devitg_0-1658275373571.png" alt="devitg_0-1658275373571.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 00:07:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11307581#M43200</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2022-07-20T00:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11307991#M43201</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524107"&gt;@CADaSchtroumpf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;defun&amp;nbsp; ade_odgettables&amp;nbsp; and&amp;nbsp;ade_odtabledefn&amp;nbsp; &amp;nbsp; ade_odgetfield&amp;nbsp; &amp;nbsp; are not at lsp&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are specials functions lisp for AutocadMap only.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://documentation.help/AutoCAD-Map-3D-2009-AutoLISP/" target="_blank" rel="noopener"&gt;documentation help.&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@NSL26&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the properties of each polyline, you can see the data object table I created and associated.&lt;/P&gt;&lt;P&gt;It contains 4 fields : Building, Batch, Floor and Apartment.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Fields for Data Object are visible only on Autocad Map.&lt;/P&gt;&lt;P&gt;NSL26 should have posted in &lt;A href="https://forums.autodesk.com/t5/autocad-map-3d-forum/bd-p/85" target="_blank" rel="noopener"&gt;autocad-map-3d-forum &lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 07:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11307991#M43201</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2022-07-20T07:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308380#M43202</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 10:14:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308380#M43202</guid>
      <dc:creator>NSL26</dc:creator>
      <dc:date>2022-07-20T10:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308391#M43203</link>
      <description>&lt;P&gt;Thank you, now I can have the content of the data object table in a csv file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few questions :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) when I select the polylines of a whole apartment with your LISP, I am unable to choose some of them.&lt;/P&gt;&lt;P&gt;Namely for the upper toilets and the cupboards, they do not get selected even if I try to select them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When not using the LISP, I can select them with no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) In the csv file I get the room names (I added a "room name" field in the table) and their features in a descending order, beginning with Building 9, Floor 9, Apartment 99 for exemple, and ending with Building 1, Floor 1, Apartment 1. What should I change in the code in order to have them in an ascending order ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) In the csv file, on rare occasions, there's a break in the order : for example, I have 8 rooms for apartment 32 listed, then all the rooms for apartment 31, then the 2 remaining rooms of apartment 32.&lt;/P&gt;&lt;P&gt;Do you know the reason ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sorry, i replied to the wrong person in the first place)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit : I added 2 photos to show you the problem. When I am asked whether I want to do a manual selection or not, when I choose "all", they are not all present in the csv file, and when I choose "manual" and pick the polylines I need, some (always the same) are not taken into account. It's always one toilet room and two cupboards. That happens when I have to click on a polyline and then chose manual and pick the rest of the polylines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the first one I pick is not among the 3 problematic ones, they will not be selected after when I pick the whole apartment, and when the first polyline I pick is among the problematic ones, only these 3 polylines are selected when I try to select a whole apartment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Map 3D 2023, that's maybe part of the problem ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:00:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308391#M43203</guid>
      <dc:creator>NSL26</dc:creator>
      <dc:date>2022-07-20T13:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308753#M43204</link>
      <description>&lt;P&gt;For question 1, it's because I'm using DXF code 70 to select all polylines with the same code. For example, if the starting model is a closed polyline (70 . 1), I will only select the polylines with the same code.&lt;BR /&gt;At the same time the generation of the type of line and also stored in this code (value 128) which will give for example (70 . 129) 128 + 1.&lt;BR /&gt;So the solution for you is to put the same linetype generation for all the polylines you want to process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For 2 and 3 I can only advise you to do your sorting in excel, it will be the easiest.&lt;BR /&gt;To do this, you can also (as shown in the code) remark lines 263-265-266 by putting a semicolon at the beginning of the line. It will be easier to sort in excel according to a column.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:12:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308753#M43204</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2022-07-20T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308793#M43205</link>
      <description>&lt;P&gt;Thank you very much, I'll do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know a good tutorial to learn about DXF codes ?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:32:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308793#M43205</guid>
      <dc:creator>NSL26</dc:creator>
      <dc:date>2022-07-20T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308913#M43206</link>
      <description>&lt;P&gt;Apart from the &lt;U&gt;&lt;STRONG&gt;&lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-265AADB3-FB89-4D34-AA9D-6ADF70FF7D4B" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&lt;/STRONG&gt;&lt;/U&gt;, I don't know of a tutorial...&lt;/P&gt;&lt;P&gt;But you can use this little code for listing the DXF code of an entitie (or sub-entitie).&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:dxflistdata ( / ent msg l_str nb ch)
	(setq ent 0)
	(while (not (listp ent))
		(if user-dxf
			(setq msg "\n[Entite/Sous-entite]&amp;lt;S&amp;gt; - Choix de l'objet à lister ses codes DXF: ")
			(setq msg "\n[Entite/Sous-entite]&amp;lt;E&amp;gt; - Choix de l'objet à lister ses codes DXF: ")
		)
		(initget "Entite Sous-entite")
		(if user-dxf
			(setq ent (nentsel msg))
			(setq ent (entsel msg))
		)
		(if (eq ent "Sous-entite") (setq user-dxf T))
		(if (eq ent "Entite") (setq user-dxf nil))
	)
	(cond
		(ent
			(setq
				l_str (cons "\tDATA DXF d'OBJET\n\n" (mapcar '(lambda (x) (strcat x "\n")) (mapcar 'vl-prin1-to-string (entget (car ent)))))
				nb (length l_str)
				ch ""
			)
			(while (&amp;gt; (length l_str) 31)
				(repeat 31
					(setq
						ch (strcat ch (car l_str))
						l_str (cdr l_str)
					)
				)
				(alert ch)
				(setq l_str (cons "suite DATA DXF d'OBJET\n\n" l_str) ch "")
			)
			(setq ch (apply 'strcat l_str))
			(alert ch)
		)
	)
	(prin1)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11308913#M43206</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2022-07-20T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP for extraction of polyline properties</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11309363#M43207</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12620223"&gt;@NSL26&lt;/a&gt;&amp;nbsp; from adsk&amp;nbsp; all about DXF codes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-extraction-of-polyline-properties/m-p/11309363#M43207</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2022-07-20T16:36:40Z</dc:date>
    </item>
  </channel>
</rss>

