<?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 Can’t change the size of the drawing.. in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224550#M3726</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to change the size of my drawing. I am accessing the element’s bounds, (element.drawing.bounds) changing it and it doesn’t work..&lt;BR /&gt;&lt;BR /&gt;I can change the name or position but bounds changes nothing..&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" border="0" /&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Oct 2022 14:32:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-04T14:32:36Z</dc:date>
    <item>
      <title>Can’t change the size of the drawing..</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224550#M3726</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to change the size of my drawing. I am accessing the element’s bounds, (element.drawing.bounds) changing it and it doesn’t work..&lt;BR /&gt;&lt;BR /&gt;I can change the name or position but bounds changes nothing..&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:32:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224550#M3726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can’t change the size of the drawing..</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224551#M3727</link>
      <description>&lt;BLOCKQUOTE&gt;Tomer1 wrote:&lt;BR /&gt;
I am trying to change the size of my drawing. I am accessing the element’s bounds, (element.drawing.bounds) changing it and it doesn’t work..&lt;/BLOCKQUOTE&gt;
Do you want to crop the drawing to a specified bounding box or change the sizing ratio of the drawing?</description>
      <pubDate>Thu, 16 May 2019 08:27:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224551#M3727</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2019-05-16T08:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can’t change the size of the drawing..</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224552#M3728</link>
      <description>I want to change the ratio, not to crop.. I guess that i miss some more properties that needs to be changed in order for this to work  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 16 May 2019 08:56:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224552#M3728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-16T08:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can’t change the size of the drawing..</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224553#M3729</link>
      <description>&lt;BLOCKQUOTE&gt;Tomer1 wrote:&lt;BR /&gt;
I want to change the ratio, not to crop.. I guess that i miss some more properties that needs to be changed in order for this to work  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;
&lt;/BLOCKQUOTE&gt;
If you want to change the scale, change &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_DrawingType::ratio&lt;E&gt;&lt;/E&gt; (&lt;B&gt;Magnification &lt;/B&gt;on Dialog). Note that the value is based on &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_DrawingType::drawingScale&lt;E&gt;&lt;/E&gt;  (&lt;B&gt;Original Scale&lt;/B&gt; on Dialog).&lt;BR /&gt;
[API_DrawingType::ratio] = [API_DrawingType::drawingScale] / [your new Drawing Scale];&lt;BR /&gt;
Ex.&lt;BR /&gt;
If you want to change your 1:100 drawing to 1:200, you set ratio = 0.50. (50% on Dialog) // ratio = 100 / 200&lt;BR /&gt;
For 1:100 -&amp;gt; 1:50, ratio = 2.0. (200% on Dialog) // ratio = 100 / 50</description>
      <pubDate>Mon, 20 May 2019 06:20:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224553#M3729</guid>
      <dc:creator>Erenford</dc:creator>
      <dc:date>2019-05-20T06:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can’t change the size of the drawing..</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224554#M3730</link>
      <description>Thanks!&lt;BR /&gt;
So I am able to change the ratio, but I want it to change to fit the grid cell. Do I need to change the bounds parameter?&lt;BR /&gt;
&lt;BR /&gt;
Edit:&lt;BR /&gt;
It seems that what I need to change is the bounds, but I can’t get it to be done in the actual drawing, just the variable. I am applying the changes with acapi_element_change (using a mask and memo) and the bounds aren’t changing on the drawing itself.. Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Edit 2:&lt;BR /&gt;
I have noticed that after changing the ratio the layout is “dead”. It doesn’t update anymore (even if I set manualupdate to false on the code and even if switching back to manual update and then again to auto).&lt;BR /&gt;
It also doesn’t fit frame to drawing until I change it to manual resize and back to auto fit.&lt;BR /&gt;
This is all in addition to my problem in edit 1, where the bounds aren’t changed on the actual draw.&lt;BR /&gt;
&lt;BR /&gt;
I’m using ARCHICAD 21 update 7000..&lt;BR /&gt;
&lt;BR /&gt;
Thanks  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 02 Jul 2019 13:40:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-change-the-size-of-the-drawing/m-p/224554#M3730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T13:40:53Z</dc:date>
    </item>
  </channel>
</rss>

