<?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: A way to Lock an Entitiy in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7121047#M119623</link>
    <description>&lt;P&gt;Are we inviting Tony T. into this fray? &amp;nbsp;(arx)&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 23:50:08 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2017-05-31T23:50:08Z</dc:date>
    <item>
      <title>A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7119332#M119610</link>
      <description>&lt;P&gt;Can anyone think of a way to lock an entity, that does not involve putting the entity on a locked layer? I'm wondering what people will come up with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it would be a great feature request for Autodesk.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 12:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7119332#M119610</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2017-05-31T12:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7119846#M119611</link>
      <description>&lt;P&gt;Define it into a Block, and put the Block on a locked Layer? &amp;nbsp;You can lock &lt;EM&gt;multiple&lt;/EM&gt; entities collectively that way if you want. &amp;nbsp;The entities&amp;nbsp;will retain the characteristics of their native Layers, not of the locked Layer that the Block is on.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 14:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7119846#M119611</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-05-31T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7119872#M119612</link>
      <description>&lt;P&gt;Check out cadlock.com&lt;/P&gt;
&lt;P&gt;It is run by gurus emeriti from earlier times around here.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 14:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7119872#M119612</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-05-31T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120270#M119613</link>
      <description>&lt;P&gt;Cadlock closed in 2015. &amp;nbsp;I don't see any benefit to entity locking BTW.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 17:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120270#M119613</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2017-05-31T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120291#M119614</link>
      <description>&lt;P&gt;I have some code that 'looks' for things.&amp;nbsp; And when those 'things' are not in the drawing, or changed location, deleted, exploded, it ends up being a longer winded way to complete the drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I had a magical piece of code, to unlock the entity, make my change and then lock it again, I could avoid such headaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a culture&amp;nbsp;to try to teach the right and wrongs, but someone will always try to get to the finish line their way, which screws it up for the next guy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did notice the Vault is no longer.&amp;nbsp; But I play with it, and not quite what I was looking for.&amp;nbsp; My guts tells me KC's suggestion to be better, but I haven't tested it out yet from a code perspective.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 17:16:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120291#M119614</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2017-05-31T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120325#M119615</link>
      <description>&lt;P&gt;Isn't Owen still running Manusoft?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 17:27:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120325#M119615</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-05-31T17:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120352#M119616</link>
      <description>&lt;P&gt;&amp;nbsp;"&lt;SPAN&gt;I have some code that 'looks' for things.&amp;nbsp; And when those 'things' are not in the drawing, or changed location, deleted, exploded, it ends up being a longer winded way to complete the drawing."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry Kenny. &amp;nbsp;I can't really offer a helpful reply to such a vague description of "things".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp; I have no idea and don't want to speculate. &amp;nbsp;If you search for Cadlock, the message is clear though.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 17:37:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120352#M119616</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2017-05-31T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120466#M119617</link>
      <description>&lt;P&gt;I would recommend 'looking' for entities using entity handles (not based on their xyz location). That way even if they move it makes no difference to your searching function. Also, if you want to lock them, locked layer is the most simplest and easiest option. You can make a block as recommended. Or get even fancier and attach reactors to your entities so they can't, be moved , edited, deleted etc.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 18:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120466#M119617</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-05-31T18:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120579#M119618</link>
      <description>&lt;P&gt;I would love to get into reactors.&amp;nbsp; But I have no code to reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, and I do look for entities not just based on x,y, and z coordinates.&amp;nbsp; The common one for me are attributes.&amp;nbsp; People explode them and therefore creating havoc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 19:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120579#M119618</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2017-05-31T19:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120600#M119619</link>
      <description>&lt;P&gt;look here, maybe this will answer your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/locking-objects/td-p/5917625.&amp;nbsp;" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/locking-objects/td-p/5917625.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'd tried this sometime ago and it works.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 19:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120600#M119619</guid>
      <dc:creator>pareson</dc:creator>
      <dc:date>2017-05-31T19:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120626#M119620</link>
      <description>&lt;P&gt;The first step to protect blocks is to make them unexplodeable. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second step is to pass out pick slips to the idiots who are still exploding them. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, I would consider fancier options.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 19:33:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120626#M119620</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2017-05-31T19:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120722#M119621</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/60740"&gt;@kpennell&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Can anyone think of a way to lock an entity, that does not involve putting the entity on a locked layer? I'm wondering what people will come up with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it would be a great feature request for Autodesk.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Define "lock an entity", and what purpose it would serve?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 20:27:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120722#M119621</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2017-05-31T20:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120945#M119622</link>
      <description>&lt;P&gt;If by "lock", you mean to make an entity completely 'read-only' where it can't be modified using any means, there is a way to do that with ObjectARX (native or managed), but unfortunately not with LISP.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 22:23:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7120945#M119622</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-05-31T22:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7121047#M119623</link>
      <description>&lt;P&gt;Are we inviting Tony T. into this fray? &amp;nbsp;(arx)&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 23:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7121047#M119623</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-05-31T23:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7122040#M119624</link>
      <description>&lt;P&gt;Sorry, but got an 'invalid parameters' message from the link. But it's got me curious though.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 11:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7122040#M119624</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2017-06-01T11:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7122452#M119625</link>
      <description>&lt;P&gt;Just remove the period off the end of the link.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:10:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7122452#M119625</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2017-06-01T14:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7122733#M119626</link>
      <description>&lt;P&gt;This is the most in-line with what I'm going for. I know I can work with this. I just tested, including the 'Loading', 'ObjectLockCallBack' and the 'ObjectLockGetItem' silently, will keep the entity locked by anyone who opens the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much for this.&amp;nbsp; I'm digging into the code the afternoon to figure out how this actually works.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 15:28:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7122733#M119626</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2017-06-01T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7123541#M119627</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/60740"&gt;@kpennell&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;This is the most in-line with what I'm going for. I know I can work with this. I just tested, including the 'Loading', 'ObjectLockCallBack' and the 'ObjectLockGetItem' silently, will keep the entity locked by anyone who opens the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for this.&amp;nbsp; I'm digging into the code the afternoon to figure out how this actually works.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, It actually doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no commands started/ended when you edit objects using the Properties Palette, most controls on the Ribbon, and various controls on toolbars. Try editing a 'locked' object using one of those means. It doesn't work, because the whole thing is dependent on objects only being modified within commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the BREAK or TRIM commands to break or trim a circle that's 'locked' (producing an arc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the TRIM command on a polyline, trimming it in multiple places. The code will undelete the original polyline, but it also leaves all of the new fragments created by TRIM intact.&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>Thu, 01 Jun 2017 19:54:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7123541#M119627</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-06-01T19:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7124906#M119628</link>
      <description>&lt;P&gt;I just noticed though, that this won't 'lock' attributes.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 11:12:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7124906#M119628</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2017-06-02T11:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: A way to Lock an Entitiy</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7125314#M119629</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/60740"&gt;@kpennell&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I just noticed though, that this won't 'lock' attributes.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Something else you may not have noticed, which I would call a deal-breaker:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load that code and lock one or more objects (one will do).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, draw a circle (or anything at all).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, issue the U command to undo the creation of the circle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, issue the REDO command to redo the undo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you see on the command line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:03:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/a-way-to-lock-an-entitiy/m-p/7125314#M119629</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-06-02T14:03:16Z</dc:date>
    </item>
  </channel>
</rss>

