<?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: where is/name of the match properties .lsp file ? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10742722#M52878</link>
    <description>Nice, Alan.  Well organized.&lt;BR /&gt;Too bad I was impatient and copied your code from my e-mail, thereby having&lt;BR /&gt;to add all the indentation.&lt;BR /&gt;Anyway, I think you need to change...&lt;BR /&gt;  (defun arcprops (obj txtlst)&lt;BR /&gt;to&lt;BR /&gt;  (defun arcprops (obj lst)</description>
    <pubDate>Mon, 08 Nov 2021 14:13:02 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2021-11-08T14:13:02Z</dc:date>
    <item>
      <title>where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740674#M52873</link>
      <description>&lt;P&gt;i want to learn / make my own lisps based on existing ones i use alot.&lt;/P&gt;&lt;P&gt;where can i find the match properties .lsp ?&lt;/P&gt;&lt;P&gt;is there a website with the default commands files list, to make it easier for users to find ?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 09:34:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740674#M52873</guid>
      <dc:creator>yairMSKTU</dc:creator>
      <dc:date>2021-11-07T09:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740742#M52874</link>
      <description>&lt;P&gt;If you follow up on your question from last week,&amp;nbsp;&lt;A href="http://www.lee-mac.com/matchtextprops.html" target="_blank" rel="noopener"&gt;THIS&lt;/A&gt;&amp;nbsp;routine could solve your issue or at least help to solve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lee's website is worth exploring, one of the best public libraries we have.&amp;nbsp;But... for learning, in general, is probably better to start&amp;nbsp;&lt;A href="https://www.afralisp.net/" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;. Lee's programs might be too advanced to learn from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the good resource with many examples, I think even with a tutorial, is&amp;nbsp;&lt;A href="https://help.autodesk.com/view/ACD/2021/ENU/" target="_blank" rel="noopener"&gt;HELP&lt;/A&gt;&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="Z9E3zK5E_0-1636283189851.png" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/986710iC76ED5D42290447C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Z9E3zK5E_0-1636283189851.png" alt="Z9E3zK5E_0-1636283189851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, just to be clear. The built-in commands as MATCHPROP are not distributed as *.lsp files. They are not adjustable. You can use them in your LISP routines just as a black box. Contrarily some of Express Tools ARE LISPs, see in help where the files are stored. But still, see their copyrights.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 11:14:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740742#M52874</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-11-07T11:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740877#M52875</link>
      <description>&lt;P&gt;i have some history with basic java and c+ and scripts so i can understand these basics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the idea is to create a sort of match properties with settings of "text", but add to it a specific custom text style, which is not the same from the source text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the idea is to take the match properties lisp and add to it a few lines for that plot style.&amp;nbsp;&lt;/P&gt;&lt;P&gt;im almost done with my work,&amp;nbsp; but im sure something like that would help me in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 07:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740877#M52875</guid>
      <dc:creator>yairMSKTU</dc:creator>
      <dc:date>2021-11-08T07:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740972#M52876</link>
      <description>&lt;P&gt;I have thought about that myself because not every property gets matched.&lt;/P&gt;
&lt;P&gt;So I think you have to build a list of all the properties that can be, eg.&lt;/P&gt;
&lt;P&gt;(setq littany '(height width textstring layer color etc. etc.))&lt;/P&gt;
&lt;P&gt;and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(foreach property littany
  (if 
    (and
      (vlax-property-available-p source property)
      (vlax-property-available-p target property)
    )
    (vlax-put target 'property (vlax-get source 'property))
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks simple, right?&amp;nbsp; BUT in many cases the property of one object type may not be named the same as the same property of another object type.&amp;nbsp; AND you can't put areas and lengths,&amp;nbsp; AND you shouldn't put textstrings, or insertion points, or coordinates, or northings and eastings, and elevations.&amp;nbsp; AND probably thousands of other caveats that leave my mind boggled.&lt;/P&gt;
&lt;P&gt;But what the heck; give it a shot.&amp;nbsp; Best of luck.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 15:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10740972#M52876</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-11-07T15:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10741426#M52877</link>
      <description>&lt;P&gt;Dumpit.lsp is your friend.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;;;===================================================================; 
;;; DumpIt                                                            ; 
;;;-------------------------------------------------------------------; 
;;; Dump all methods and properties for selected objects              ; 
;;;===================================================================; 
(defun C:Dumpit ( / ent) 
  (while (setq ent (entsel)) 
    (vlax-Dump-Object 
      (vlax-Ename-&amp;gt;Vla-Object (car ent)) 
    ) 
  ) 
  (princ) 
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is something I worked on as Library function get what you want from an object. Look at bottom for examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; properties use as a library function
; By Alan H july 2020

(defun cords (obj / co-ords xy )
(setq coordsxy '())
(setq co-ords (vlax-get obj 'Coordinates))
(setq numb (/ (length co-ords) 2))
(setq I 0)
(repeat numb
(setq xy (list (nth (+ I 1) co-ords)(nth I co-ords) ))
(setq coordsxy (cons xy coordsxy))
(setq I (+ I 2))
)
)


(defun AH:chkcwccw (obj / lst newarea)
(setq lst (CORDS obj))
(setq newarea
(/ (apply (function +)
            (mapcar (function (lambda (x y)
                                (- (* (car x) (cadr y)) (* (car y) (cadr x)))))
                    (cons (last lst) lst)
                    l)) 
2.)
)
(if (&amp;lt; newarea  0)
(setq cw "F")
(setq cw "T")
)
)

; Can use reverse in Autocad - pedit reverse in Bricscad.

(defun plprops (obj txt / lst)
(foreach val lst
(cond
((= (strcase val)  "LAY") (setq lay (vla-get-layer obj)))
((= (strcase val) "AREA")(setq area (vla-get-area obj)))
((= (strcase val) "START")(setq start (vlax-curve-getstartpoint obj)))
((= (strcase val) "END" (strcase txt))(setq end (vlax-curve-getendpoint obj)))
((= (strcase val) "LEN" (strcase txt))(setq len (vlax-get obj 'Length)))
((= (strcase val) "CW" (strcase txt))(AH:chkcwccw obj))
((= (strcase val) "CORDS" (strcase txt))(CORDS obj))
)
)
)

(defun lineprops (obj lst / )
(foreach val lst
(cond
((= (strcase val)  "LAY") (setq lay (vlax-get obj 'layer)))
((= (strcase val) "START")(setq start (vlax-get obj 'startpoint)))
((= (strcase val) "END" (strcase txt))(setq end (vlax-get obj 'endpoint)))
((= (strcase val) "LEN" (strcase txt))(setq len (vlax-get obj 'Length)))
)
)
)

(defun circprops (obj lst / )
(foreach val lst
(cond
((= (strcase val)  "LAY") (setq lay (vlax-get obj 'layer)))
((= (strcase val) "LEN" (strcase txt))(setq len (vlax-get obj 'Circumference)))
((= (strcase val) "RAD" (strcase txt))(setq rad (vla-get-radius obj)))
((= (strcase val) "CEN" (strcase txt))(setq cen (vlax-get obj 'Center)))
((= (strcase val) "AREA" (strcase txt))(setq end (vlax-get obj 'AREA)))
)
)
)

(defun arcprops (obj txtlst)
(foreach val lst
(cond
((= (strcase val)  "LAY") (setq lay (vlax-get obj 'layer)))
((= (strcase val) "LEN" (strcase txt))(setq len (vlax-get obj 'length)))
((= (strcase val) "RAD" (strcase txt))(setq rad (vla-get-radius obj)))
((= (strcase val) "CEN" (strcase txt))(setq cen (vlax-get obj 'Center)))
((= (strcase val) "START" (strcase txt))(setq area (vlax-get obj 'startpoint)))
((= (strcase val) "END" (strcase txt))(setq area (vlax-get obj 'endpoint)))
((= (strcase val) "AREA" (strcase txt))(setq end (vlax-get obj 'AREA)))
)
)
)

; starts here
(setq ent (vlax-ename-&amp;gt;vla-object (car (entsel "Pick Object "))))
; do a check for object type then use defun
; pick an example below


; many examples copy to command line for testing mix and match 
; (plprops ent '("LAY"))(princ lay)
; (plprops ent '("END"))(princ end)
; (plprops ent '("START"))(princ start)
; (plprops ent '("END" "START"))(princ end)(princ start)
; (plprops ent '("AREA" "LAY" "END" "START"))(princ area)(princ lay)(princ end)(princ start)
; (plprops ent '("START" "AREA" "LAY" "CW"))(princ start)(princ area)(princ cw)
; (plprops ent '("start" "END" "CORDS" "cw"))(princ start)(princ end)(princ coordsxy)(princ cw)
; (plprops ent '("CW"))(princ cw)
; (plprops ent '("AREA"))(princ area)
; (plprops ent '("CORDS"))(princ coordsxy)
; (lineprops ent "len"))(princ len)
; (lineprops ent '("len" "lay"))(princ len)(princ lay)
; (lineprops ent '("lay" "end" "start" "len"))(princ len)(princ lay)(princ start)(princ end)
; (circprops ent '("lay" "rad" "area" "cen"))(princ lay)(princ rad)(princ area)(princ cen)
; (circprops ent '("lay" "rad"))
; (arcprops ent '("lay" "rad"))




&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 23:58:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10741426#M52877</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-11-07T23:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10742722#M52878</link>
      <description>Nice, Alan.  Well organized.&lt;BR /&gt;Too bad I was impatient and copied your code from my e-mail, thereby having&lt;BR /&gt;to add all the indentation.&lt;BR /&gt;Anyway, I think you need to change...&lt;BR /&gt;  (defun arcprops (obj txtlst)&lt;BR /&gt;to&lt;BR /&gt;  (defun arcprops (obj lst)</description>
      <pubDate>Mon, 08 Nov 2021 14:13:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10742722#M52878</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-11-08T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10744008#M52879</link>
      <description>&lt;P&gt;Thanks will fix, if I could edit post would fix here also silly 30 minute timer.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 02:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10744008#M52879</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-11-09T02:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10744034#M52880</link>
      <description>Well, if it takes you that long until you realize an error, then ...&lt;BR /&gt;&lt;SOMETHING&gt;.&lt;BR /&gt;Hey, that's why the rest of us are here... to notice little mistakes,&lt;BR /&gt;that's all.&lt;BR /&gt;Meanwhile, why didn't you notice that I went out with the wrong car&lt;BR /&gt;keys this morning? &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/SOMETHING&gt;</description>
      <pubDate>Tue, 09 Nov 2021 02:39:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10744034#M52880</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-11-09T02:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: where is/name of the match properties .lsp file ?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10744302#M52881</link>
      <description>&lt;P&gt;Well, let me advise you, actually you can edit your posts as much as you want. Times has changed.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:17:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/where-is-name-of-the-match-properties-lsp-file/m-p/10744302#M52881</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-11-09T06:17:52Z</dc:date>
    </item>
  </channel>
</rss>

