<?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 Betreff: Someone tell me what the problem is (pelo amor de deus kkkk) in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9331458#M78280</link>
    <description>&lt;P&gt;What I did!&lt;BR /&gt;I select all the blocks corresponding to your initial filter as in your code.&lt;BR /&gt;I store all the insertion points with the entity name in a list.&lt;BR /&gt;I ask for any selection of polyline (always with the same filter as you) and for each point of the vertex I test the distance with each insertion point.&lt;BR /&gt;If this is &amp;lt;or = at 2.75 (can be increased tolerance to 3) I add the ename associated with the point in a dedicated selection game.&lt;/P&gt;&lt;P&gt;So the selection game ss_blk is highlighted in relation to your selection of polylines and if they have the conditions.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2020 17:23:38 GMT</pubDate>
    <dc:creator>CADaSchtroumpf</dc:creator>
    <dc:date>2020-02-20T17:23:38Z</dc:date>
    <item>
      <title>Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9327965#M78259</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;I have two files, first is a test that is a small part of the second. The second is the complete file.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;when I run the program on the test it works very well.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;When squeegee in general does not work !!! why? why? why?&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;when I run only the section that doesn't work in the general file it works !! why? why? why?&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;I did it step by step: &lt;STRONG&gt;It doesn't work!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Isolated the polylines in the loop: &lt;STRONG&gt;It doesn't work!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;I turned off the precision tools: &lt;STRONG&gt;It doesn't work!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;I modified the subfunctions: &lt;STRONG&gt;It doesn't work!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Reduce the sspts filter: &lt;STRONG&gt;It doesn't work!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT size="4"&gt;I'm almost breaking my monitor lol lol&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;I attached a sreencast : '(&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;(defun c:ETC (/ selection *error* file selection clrcabo namebox coords points ecr nomeposte)
&lt;FONT color="#FF6600"&gt;; *Error* &amp;lt;- Ainda a ser ajustado&lt;/FONT&gt;
    (defun *error* ( errmsg )
        (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break"))
            (princ (strcat "\nError: " errmsg))
        )
        (close file)
        (vl-file-delete (strcat(getvar 'dwgprefix)(vl-filename-base(getvar 'dwgname)) " CB.csv"))
        (princ)
    )
&lt;FONT color="#FF6600"&gt;;End *error*&lt;/FONT&gt; 

    (if
        (and
            (setq selection (RJP:Setlist (ssget  '((0 . "*LWPOLYLINE") (-4 . "!=") (62 . 251)))))
            (setq file (open (strcat (getvar 'dwgprefix) (vl-filename-base (getvar 'dwgname)) " CB.csv") "w"))
        )
        (progn
            (write-line "NOME TRECHO;TIPO DE CABO;ORDEM" file)
            (foreach X selection
                (setq entdata (entget  x))
                (setq clrcabo (vla-get-color (setq plineobj (vlax-ename-&amp;gt;vla-object X))))
                (setq namebox (JR:NameExcerpts plineobj))
                (setq coords (vl-remove-if 'not (mapcar  (function (lambda ( p ) (if (= 10 (car p))(:Addzerolist 0.00 2 (cdr p))))) entdata)))
                (setq points nil  ecr nil nomeposte nil)
                
                (setq jns ;variavel fantasma para foreach
                    (mapcar
                        '(lambda ( n )
                            (if (setq sspts (ssget "_C" (mapcar '+ n '(1.2 2)) (mapcar '- n '(1.2 2)) '((0 . "INSERT") (2 . "`*U*") (8 . "D_Poste"))))
                                (progn
                                    (setq objpts (vlax-ename-&amp;gt;vla-object (ssname sspts 0)))
                                    (setq nomeposte (list (LM:vl-getattributevalue objpts "NUM")))
                                    (setq ecr (LM:lst-&amp;gt;str (setq points (append points nomeposte)) ","))
                                )
                                (setq ecr "")
                            )
                        )
                        coords
                    )
                )                
                (write-line (strcat (LM:lst-&amp;gt;str namebox " /") ";" (rtos clrcabo)  ;|(JR:DatabaseMaterial clrcabo)|;  ";" ecr) file)
            )
            (close file)
            (startapp "notepad" (strcat (getvar 'dwgprefix) (vl-filename-base (getvar 'dwgname)) " CB.csv"))
        )
        (prompt "\nOoops algo deu errado!!!")
    )
)

&lt;FONT color="#FF6600"&gt;;; Get Attribute Values  -  Lee Mac
;; Returns an association list of attributes present in the supplied block.
;; blk - [ent] Block (Insert) Entity Name
;; Returns: [lst] Association list of ((&amp;lt;tag&amp;gt; . &amp;lt;value&amp;gt;) ... )&lt;/FONT&gt;

(defun LM:vl-getattributevalue ( blk tag )
  (setq tag (strcase tag))
  (vl-some '(lambda ( att ) (if (= tag (strcase (vla-get-tagstring att))) (vla-get-textstring att))) (vlax-invoke blk 'getattributes))
)
&lt;FONT color="#FF6600"&gt;;; Set Attribute Values  -  Lee Mac
;; Sets attributes with tags found in the association list to their associated values.
;; blk - [ent] Block (Insert) Entity Name
;; lst - [lst] Association list of ((&amp;lt;tag&amp;gt; . &amp;lt;value&amp;gt;) ... )
;; Returns: nil
&lt;/FONT&gt;
(defun LM:vl-setattributevalue ( blk tag val )
  (setq tag (strcase tag))
  (vl-some '(lambda ( att )(if (= tag (strcase (vla-get-tagstring att))) (progn (vla-put-textstring att val) val)))(vlax-invoke blk 'getattributes))
)

&lt;FONT color="#FF6600"&gt;;; List to String  -  Lee Mac
;; Concatenates each string in a supplied list, separated by a given delimiter
;; lst - [lst] List of strings to concatenate
;; del - [str] Delimiter string to separate each item&lt;/FONT&gt;
(defun LM:lst-&amp;gt;str ( lst del )
    (if (cdr lst)
        (strcat (car lst) del (LM:lst-&amp;gt;str (cdr lst) del))
        (car lst)
    )
)
&lt;FONT color="#FF6600"&gt;;; RJP - Usar funções da biblioteca para tarefas repetitivas ... também pode validar a seleção
;; JR  - Fiz alteração no nome da função&lt;/FONT&gt;
(defun RJP:Setlist ( s )
  (if (= 'pickset (type s))
    (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
    )
)
    

&lt;FONT color="#FF6600"&gt;;; :Addzerolist 
;; Adciona zero no final de lista de coordenadas&lt;/FONT&gt;
(defun :Addzerolist ( item ind lst )
    (if (or (zerop ind) (null lst))
        (cons item lst)
        (cons (car lst) (:Addzerolist item (1- ind) (cdr lst)))
    )
)
&lt;FONT color="#FF6600"&gt;;; JR:NameExcerpts - Junior Nogueira
;; Cria duas variaveis com o noos inicial e final do trecho e uma lista com as duas
;; se não existir cria apenas uma das pontas&lt;/FONT&gt;
(defun JR:NameExcerpts ( ocx )
    (setq starpt (list (vlax-curve-getStartPoint ocx)) endpt (list (vlax-curve-getEndPoint ocx)))
    (setq starendpt (append starpt endpt))
    (setq nameexcerpts
        (mapcar 
            '(lambda ( x )
                (if (setq cx (ssget "_C" (mapcar '+ x '(5 5)) (mapcar '- x '(5 5)) '((0 . "INSERT")(66 . 1)(2 . "`*U*,Caixa00[1-6]")(8 . "P_Caixa00[1-6]"))))
                    (progn
                        (setq objcx (vlax-ename-&amp;gt;vla-object (ssname cx 0)))
                        (setq stringexcerpts (LM:vl-getattributevalue objcx "NOM"))
                    )
                    (setq stringexcerpts "")
                )
            )
            starendpt
        )
    )
    (mapcar 'set '(ssCxStart ssCxend) nameexcerpts)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;
&lt;P class="screencast_id"&gt;baf66b9e-de4c-4ede-819b-10394751b4fd,640,710&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2020 14:01:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9327965#M78259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328019#M78260</link>
      <description>&lt;P&gt;No screencast, no test file attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see that you use (ssget "_C")... but I don't see any ZOOM management. I would expect at least ZOOM extents. See Lee's caution &lt;A href="http://www.lee-mac.com/ssget.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Caution:&lt;/STRONG&gt;&amp;nbsp;Only objects visible in the drawing area at the time of selection will be selected by this method. Consider temporarily zooming to the selection window before performing the selection, and then zoom previous to restore the original screen position.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 14:13:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328019#M78260</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T14:13:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328058#M78261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I am missing the two DWG files...&lt;/P&gt;
&lt;P&gt;2. I am missing the description what "doesn't work" really means&lt;/P&gt;
&lt;P&gt;3. I am missing a well effective-name handling*&lt;/P&gt;
&lt;P&gt;4. I am missing a well view-control handling for your ssget "_c" part*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* you should have since weeks ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;"&lt;FONT size="4"&gt;why? why? why?&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;You don't want to hear the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In short: It isn't programmed bulletproof.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 14:22:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328058#M78261</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-02-19T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328173#M78262</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365" target="_blank"&gt;@BeekeeCZ&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Excuses! Attached Screencas and .dwgs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 110.9375%;"&gt;&lt;IFRAME width="640" height="710" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/baf66b9e-de4c-4ede-819b-10394751b4fd" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:00:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328173#M78262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328198#M78263</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;1. I am missing the two DWG files ...&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;I just attached!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#0000FF"&gt;2. I am missing the description what "doesn't work" really means&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;- My .csv when done in the general file it generates many duplicate points and cannot be repeated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;3. I am missing a well effective-name handling *&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;I don't think that's the problem because I'm dealing with more than one block. but I can do it without any problems !!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;4. I am missing a well view-control handling for your ssget "_c" part *&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;Do not understand: /&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&amp;gt;"&lt;FONT size="4"&gt;why? why? why?&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;You don't want to hear the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In short: It isn't programmed bulletproof.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Yes I want ! lol.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;the more i try to program the more stupid i look lol&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:08:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328198#M78263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328274#M78264</link>
      <description>&lt;P&gt;wait...&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: -180px; top: -20px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328274#M78264</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328312#M78265</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;You have the same result as me !! many exported values are doubled.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturar.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/731638i0FC2303FA89A12A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.JPG" alt="Capturar.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;I thought of adding &lt;A href="http://lee-mac.com/uniqueduplicate.html" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt; They are function &amp;lt;&amp;lt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;(setq nomeposte (LM:Unique (list (LM:vl-getattributevalue objpts "NUM"))))&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;with that I avoid duplicate values in the list, but it is not a good solution, as I don't know if my points are correct.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328312#M78265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328341#M78266</link>
      <description>&lt;P&gt;OK. Unless you give us/me a massive detail description of what's right and what's not, I give up.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pick one complicated detail of your drawing, make a schema or whatever is necessary.&lt;/P&gt;
&lt;P&gt;Sorry. Not going to read your code and guess what was your intentions.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:49:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328341#M78266</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328425#M78267</link>
      <description>&lt;P&gt;OK!! Excuse me.&lt;/P&gt;
&lt;P&gt;let's go . If I choose * a complicated design detail *, the code will work !!! : '(&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="Capturar.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/731650i9F7295AF88B49439/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.JPG" alt="Capturar.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;my problem is in the values (name of points) duplicated in .csv. (red items in the image)&lt;/P&gt;
&lt;P&gt;this problem occurs in the general file, in the test file it works.&lt;/P&gt;
&lt;P&gt;I can add &lt;A href="http://lee-mac.com/uniqueduplicate.html" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt; this function &amp;lt;&amp;lt;&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;(setq nomeposte (LM:Unique (list (LM:vl-getattributevalue objpts "NUM"))))&lt;/PRE&gt;
&lt;P&gt;But I don't know if my points are correct.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328425#M78267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T16:08:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328504#M78268</link>
      <description>&lt;P&gt;Again, not enough. Pick one bad block, tell which one, and explain what the numbers should be are where they coming from?!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:41:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328504#M78268</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328590#M78269</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt; something like ?&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="Capturar2.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/731679i2387FFB6AB074DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar2.JPG" alt="Capturar2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorFrjuniornogueira_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:07:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328590#M78269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328690#M78270</link>
      <description>&lt;P&gt;Better!&lt;/P&gt;
&lt;P&gt;But why those numbers? Are they somehow close, next in line...&lt;/P&gt;
&lt;P&gt;And describe your algorithms how you pair those numbers together.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:36:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328690#M78270</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T17:36:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328760#M78271</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;I take all the coordinates of the vertices of the polyline and store them in a list -&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;I take the first coordinate from the list (which is one end)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;,select using (ssget "_C") the nearest block (5m) -&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;after creating a list with the attribute value "NUM" -&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;I repeat this at all vertices of my polyline.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cats.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/731706i8C74B8040CE69184/image-size/large?v=v2&amp;amp;px=999" role="button" title="cats.jpg" alt="cats.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:03:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328760#M78271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328844#M78272</link>
      <description>&lt;P&gt;Check this file and verify if there is anything wrong. Some polylines would be probably missing.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:29:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328844#M78272</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T18:29:18Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328874#M78273</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Apparently, there are no more duplicate values!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328874#M78273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T18:39:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328923#M78274</link>
      <description>&lt;P&gt;Good! T&lt;SPAN style="font-family: inherit;"&gt;he good news is that your code is without flaws.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The bad news is that it's not feasible to make it reliably work on the entire file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is known - it's (ssget "_c"). And the solution is obvious - get rid of (ssget "_c").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So basically your approach has to be the other way around. Whether now you make a window around a polyline to select all close blocks, the better approach would be to collect all block insertion points (pnt . ename) and filter them by proximity to the polyline.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 19:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328923#M78274</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328949#M78275</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;With that my result will be better ??&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;Can I get the snippet report like that?&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4"&gt;is there an example code for me to understand what you mean?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 19:09:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9328949#M78275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9329232#M78276</link>
      <description>&lt;P&gt;Hopefully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, I don't have any.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be something like... just to show you direction.&lt;/P&gt;
&lt;P&gt;(vl-remove-if-not '(lambda (x) (&amp;lt; (vlax-curve-getclosestpointat pl (car x) ) 5.))) lst)&lt;/P&gt;
&lt;P&gt;where lst would be list of all blocks that matters with properties and atts that matters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's really essential to know these things. So try, learn, try, learn... you need to be able to write that any time of day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 15px; top: 222.2px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:15:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9329232#M78276</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-02-19T21:15:47Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9330454#M78277</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp; Thanks!!! I will do what it says !! but honestly, I think I will have the same result: /&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 11:05:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9330454#M78277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-20T11:05:29Z</dc:date>
    </item>
    <item>
      <title>Betreff: Someone tell me what the problem is (pelo amor de deus kkkk)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9330641#M78278</link>
      <description>&lt;P&gt;A start with this for ignor&lt;/P&gt;&lt;PRE&gt;((lambda ( / ss_blk-dyn n ent lst_pt-ins-dyn ss_blk-att lst_pt-ins-att ss_pl lst_pt-vtx ss_blk)
  (setq ss_blk-dyn (ssget "_X" '((0 . "INSERT") (2 . "`*U*") (8 . "D_Poste"))) lst_pt-ins-dyn nil lst_pt-ins-att nil lst_pt-vtx nil)
  (cond
    (ss_blk-dyn
      (repeat (setq n (sslength ss_blk-dyn))
        (setq
          ent (ssname ss_blk-dyn (setq n (1- n)))
          lst_pt-ins-dyn (cons (cons (cdr (assoc 10 (entget ent))) ent) lst_pt-ins-dyn)
        )
      )
      (setq ss_blk-att (ssget "_X" '((0 . "INSERT") (66 . 1) (2 . "`*U*,Caixa00[1-6]") (8 . "P_Caixa00[1-6]"))))
      (cond
        (ss_blk-att
          (repeat (setq n (sslength ss_blk-att))
            (setq
              ent (ssname ss_blk-att (setq n (1- n)))
              lst_pt-ins-att (cons (cons (cdr (assoc 10 (entget ent))) ent) lst_pt-ins-att)
            )
          )
          (setq ss_pl (ssget '((0 . "LWPOLYLINE") (-4 . "!=") (62 . 251))) ss_blk (ssadd))
          (cond
            (ss_pl
              (repeat (setq n (sslength ss_pl))
                (setq
                  ent (ssname ss_pl (setq n (1- n)))
                  lst_pt-vtx (append (mapcar 'cdr (vl-remove-if '(lambda (x) (/= (car x) 10)) (entget ent))) lst_pt-vtx)
                )
              )
              (foreach el lst_pt-vtx
                (mapcar
                  '(lambda (x)
                    (if (&amp;lt;= (distance (car x) el) 2.75)
                      (setq ss_blk (ssadd (cdr x) ss_blk))
                    )
                  )
                  (append lst_pt-ins-dyn lst_pt-ins-att)
                )
              )
              (sssetfirst nil ss_blk)
            )
          )
        )
      )
    )
  )
))&lt;/PRE&gt;&lt;P&gt;e sssget with crossing who have problem.&lt;/P&gt;&lt;P&gt;You can use select "ss_blk" for extract your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 12:55:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/someone-tell-me-what-the-problem-is-pelo-amor-de-deus-kkkk/m-p/9330641#M78278</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2020-02-20T12:55:07Z</dc:date>
    </item>
  </channel>
</rss>

