<?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: Double click block object in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445531#M145402</link>
    <description>&lt;P&gt;Pli,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did not work,&lt;/P&gt;&lt;P&gt;When I undefine the eattedit command and then activate the lisp as eattedit, it gives me "unknown command"&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2014 22:22:04 GMT</pubDate>
    <dc:creator>leothebuilder</dc:creator>
    <dc:date>2014-12-16T22:22:04Z</dc:date>
    <item>
      <title>Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445249#M145399</link>
      <description>&lt;P&gt;I have a block with attributes and on double click I would like to suppress the autocad attribute editor opening and instead have my own customized dialog box open for input. Is this possible and where would I begin. I have the dcl and lisp for the custom dialog running fine, but rather than invoke this with a command I would like to try if I can get this running by double cliking this block object.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445249#M145399</guid>
      <dc:creator>leothebuilder</dc:creator>
      <dc:date>2014-12-16T18:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445330#M145400</link>
      <description>&lt;P&gt;Just Undefine EATTEDIT and change your lisp command to be activated as EATTEDIT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aareaobjectlink_windows32and64%3aen"&gt;Area Object Link&lt;/A&gt; | &lt;A target="_blank" href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addattmod_windows32and64%3aen"&gt;Attribute Modifier&lt;/A&gt; | &lt;A target="_blank" href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addsetup_windows32and64%3aen"&gt;Dwg Setup&lt;/A&gt; | &lt;A target="_blank" href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addcalc_windows32and64%3aen"&gt;Feet-Inch Calculator&lt;/A&gt; | &lt;A target="_blank" href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3alayerapps_windows32and64%3aen"&gt;Layer Apps&lt;/A&gt; | &lt;A target="_blank" href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addlist_windows32and64%3aen"&gt;List on Steroids&lt;/A&gt; | &lt;A target="_blank" href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addzmscl_windows32and64%3aen"&gt;VP Zoom Scales&lt;/A&gt;&lt;BR /&gt;&lt;A target="_blank" href="https://apps.exchange.autodesk.com/ACD/en/Home/Index"&gt;Exchange App Store&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 19:46:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445330#M145400</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2014-12-16T19:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445385#M145401</link>
      <description>&lt;P&gt;Hi leo, pli,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do what pli is advising.&lt;/P&gt;&lt;P&gt;But on that way, your not going to be able to use eattedit command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If You still need this command, I think there is a way that you change double click action in CUI for attributes.&lt;/P&gt;&lt;P&gt;This is going to activate your command, but I'm not sure how it is going to work with it. There might be a problem with selecting entity.&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, 16 Dec 2014 20:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445385#M145401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-16T20:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445531#M145402</link>
      <description>&lt;P&gt;Pli,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did not work,&lt;/P&gt;&lt;P&gt;When I undefine the eattedit command and then activate the lisp as eattedit, it gives me "unknown command"&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 22:22:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445531#M145402</guid>
      <dc:creator>leothebuilder</dc:creator>
      <dc:date>2014-12-16T22:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445569#M145403</link>
      <description>&lt;P&gt;Leo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is probably because your command defined in your program is something other than eattedit. You could either defun your command as c:eattedit or add eattedit&amp;nbsp;in the&amp;nbsp;pgp file as an alias for your command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if the CUI allows you to assign the double click to your command as mentioned, that may be a better approach.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 22:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5445569#M145403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-16T22:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5446037#M145404</link>
      <description>&lt;P&gt;Define your function(s) like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:editblock ( / ss e)
  (if
    (setq ss (ssget ":E:S:L" '((0 . "INSERT"))))
    (MyEditCommand (ssname ss 0))
    )
  )

(defun MyEditCommand (e)&lt;BR /&gt;   ;your code here
  (foreach x (vlax-invoke (vlax-ename-&amp;gt;vla-object e) 'GetAttributes)
    (print (vla-get-TagString x))
  )
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then edit CUI and change EATTEDIT command under DoubleClickAction with your function.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:35:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5446037#M145404</guid>
      <dc:creator>phanaem</dc:creator>
      <dc:date>2014-12-17T11:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5446118#M145405</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that this will work, but I am not sure if this is the way I should go as it will prevent the use of eattedit on other attribute blocks.&lt;/P&gt;&lt;P&gt;For the double click I was looking for something like: if this is "myblock" use&amp;nbsp;my dialog box, if not "myblock" use eattedit.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 13:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5446118#M145405</guid>
      <dc:creator>leothebuilder</dc:creator>
      <dc:date>2014-12-17T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5446135#M145406</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/282809"&gt;@leothebuilder&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that this will work, but I am not sure if this is the way I should go as it will prevent the use of eattedit on other attribute blocks.&lt;/P&gt;&lt;P&gt;For the double click I was looking for something like: if this is "myblock" use&amp;nbsp;my dialog box, if not "myblock" use eattedit.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Try something like this&lt;/P&gt;&lt;PRE&gt;(defun c:editblock ( / ss e o)
  (if
    (setq ss (ssget ":E:S:L" '((0 . "INSERT"))))
    (if
      (member
        (vlax-get
          (setq o (vlax-ename-&amp;gt;vla-object (setq e (ssname ss 0))))
          (if
            (vlax-property-available-p o 'EffectiveName)
            'EffectiveName
            'Name
            )
          )
        '("BlockName1" "BlockName2");&amp;lt;- Your block name list here
        )
        (MyEditCommand e)
        (command "_eattedit" e)
      )
    )
  (princ)
  )

(defun MyEditCommand (e)
  ;your code here
  (foreach x (vlax-invoke (vlax-ename-&amp;gt;vla-object e) 'GetAttributes)
    (print (vla-get-TagString x))
  )
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 13:39:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5446135#M145406</guid>
      <dc:creator>phanaem</dc:creator>
      <dc:date>2014-12-17T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Double click block object</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5449035#M145407</link>
      <description>&lt;P&gt;Thank you....I'll try that.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:33:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/double-click-block-object/m-p/5449035#M145407</guid>
      <dc:creator>leothebuilder</dc:creator>
      <dc:date>2014-12-19T15:33:15Z</dc:date>
    </item>
  </channel>
</rss>

