<?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 How to Lock Block Attributes? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3489378#M55170</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am filling values of Attributtes into title block using Code. I want no User can go and Update the value of Attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it Possible to Lock the Attributes of the Title Block?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2012 12:04:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-07T12:04:29Z</dc:date>
    <item>
      <title>How to Lock Block Attributes?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3489378#M55170</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am filling values of Attributtes into title block using Code. I want no User can go and Update the value of Attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it Possible to Lock the Attributes of the Title Block?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 12:04:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3489378#M55170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-07T12:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lock Block Attributes?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492840#M55171</link>
      <description>Have you tried setting the attribute mode to "Constant"? There is a checkbox in the&amp;nbsp;Attribute Definition dialog box for this. I haven't tried it but it should set the attribute&amp;nbsp;so that your user won't be prompted to&amp;nbsp;edit the value. Note that this will only be set once for each drawing so it may not work for you if you want to assign different values for each block reference. Refer to the AttributeDefinition.Constant property in the ObjectARX docs (arxmgd.chm) for further details on this. You&amp;nbsp;can set this in code as well.&amp;nbsp;Of course this won't stop a user from editing the attribute definition itself, but if a user wants to start messing with your block definitions then they can't complain if it breaks your setup.</description>
      <pubDate>Sat, 09 Jun 2012 06:45:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492840#M55171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-09T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lock Block Attributes?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492846#M55172</link>
      <description>You could also create seperate block definitions for eack block reference if you need different values for different block references - i.e. name them something like TitleBlock01, TitleBlock02, etc.</description>
      <pubDate>Sat, 09 Jun 2012 06:53:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492846#M55172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-09T06:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lock Block Attributes?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492872#M55173</link>
      <description>&lt;P&gt;Actually I want to Set the value of these Attributes using Command "TITLEBLOCK".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Actual Requirement is as:&lt;/P&gt;&lt;P&gt;The Command "EATTEDIT" should not work if fired from AutoCAD by any User.&lt;/P&gt;&lt;P&gt;I want automation everywhere. No manual thing should be Possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 08:26:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492872#M55173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-09T08:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lock Block Attributes?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492874#M55174</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; My Actual Requirement is as:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; The Command "EATTEDIT" should not work&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then redefine the EATTEDIT-command or check the CommandWillStart event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what will you do if the user modifies the attributes in the property-window then?&lt;/P&gt;&lt;P&gt;So I think concentrating to just this command may not be the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the most simple solution: what about setting the layer of your titleblocks to "locked" and just watch this layer is not unlocked by the user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 08:41:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492874#M55174</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-06-09T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Lock Block Attributes?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492882#M55175</link>
      <description>&lt;P&gt;Ok if you'd like to get fancy how about you create an anonymous block!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anonymous blocks&amp;nbsp;aren't available for editing by the user (i.e. BEDIT won't list it). For this&amp;nbsp;you create your BlockTableRecord in code as per&amp;nbsp;usual, except you must set its name to "*U" &lt;U&gt;before&lt;/U&gt; you add it to the BlockTable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure whether attributes will work with this, but it doesn't matter because with anonymouse blocks you won't need them. Instead you can&amp;nbsp;programatically add any text you like to your anonymous block definition&amp;nbsp;and the user won't be able to modify it at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could&amp;nbsp;be even more fancy by nesting an anonymous block inside of your normal title block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could even go further and add a hard reference pointer to the block reference from an XRecord so that it can't be erased.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds simple heh? :~)&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2012 09:45:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-lock-block-attributes/m-p/3492882#M55175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-09T09:45:29Z</dc:date>
    </item>
  </channel>
</rss>

