<?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 Change properties (coordinates and rotation) of all annotation scales assigned to an annotative object. in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/change-properties-coordinates-and-rotation-of-all-annotation/m-p/9827735#M3934</link>
    <description>&lt;P&gt;Is it possible to iterate through all annotation scales, which are assigned to an annotative object,&lt;BR /&gt;without setting each annotation scale as current? For each assigned annotation scale the properties must be updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current procedure is very cumbersome:&lt;BR /&gt;- check if the AcDbEntity is annotative.&lt;BR /&gt;- get pointer to AcDbObjectContextManager&lt;BR /&gt;- get pointer to AcDbObjectContextCollection (ACDB_ANNOTATIONSCALES_COLLECTION)&lt;BR /&gt;- iterate through all AcDbAnnotationScale of the current DWG.&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - check if the annotativ object has the annotation scale the iterator points to (…-&amp;gt;hasContext(...))|&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - if yes, set the annotation scale current (…-&amp;gt;setCannoscale(...))&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - update the AcDbEntity&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - next iteration ...&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 16:27:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-27T16:27:02Z</dc:date>
    <item>
      <title>Change properties (coordinates and rotation) of all annotation scales assigned to an annotative object.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/change-properties-coordinates-and-rotation-of-all-annotation/m-p/9827735#M3934</link>
      <description>&lt;P&gt;Is it possible to iterate through all annotation scales, which are assigned to an annotative object,&lt;BR /&gt;without setting each annotation scale as current? For each assigned annotation scale the properties must be updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current procedure is very cumbersome:&lt;BR /&gt;- check if the AcDbEntity is annotative.&lt;BR /&gt;- get pointer to AcDbObjectContextManager&lt;BR /&gt;- get pointer to AcDbObjectContextCollection (ACDB_ANNOTATIONSCALES_COLLECTION)&lt;BR /&gt;- iterate through all AcDbAnnotationScale of the current DWG.&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - check if the annotativ object has the annotation scale the iterator points to (…-&amp;gt;hasContext(...))|&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - if yes, set the annotation scale current (…-&amp;gt;setCannoscale(...))&lt;BR /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - update the AcDbEntity&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; - next iteration ...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 16:27:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/change-properties-coordinates-and-rotation-of-all-annotation/m-p/9827735#M3934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-27T16:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change properties (coordinates and rotation) of all annotation scales assigned to an annotative object.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/change-properties-coordinates-and-rotation-of-all-annotation/m-p/9861546#M3935</link>
      <description>&lt;P&gt;If you don't want individual "Scale-dependent Properties" you can reset Scale-dependent Properties with&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; AcDbAnnotativeObjectPE::resetScaleDependentProperties(AcDbObject* pObject)&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need "Scale-dependent Properties" you have to do what you described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can force the entity to be visible in all annotation scales independent from ANNOALLVISIBLE using&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; AcDbAnnotativeObjectPE::setForceAnnoAllVisible(AcDbObject* pObj, bool bForce)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;You can apply the same transform matrix for all annotation scales to an entity using&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; AcDbEntity::TransformBy(const AcGeMatrix3d &amp;amp;mat)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 11:34:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/change-properties-coordinates-and-rotation-of-all-annotation/m-p/9861546#M3935</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2020-11-11T11:34:56Z</dc:date>
    </item>
  </channel>
</rss>

