<?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: Autoscaling 2D lines, circles, etc... in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36335#M34930</link>
    <description>Michele,&lt;BR /&gt;
I copied your code into a new library part and noticed what Tom did.&lt;BR /&gt;
Your object is not centered on the origin (0,0) and the del is before&lt;BR /&gt;
the hotspots.&lt;BR /&gt;
&lt;BR /&gt;
An easy fix.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
MUL2 GLOB_SCALE/96,GLOB_SCALE/96 !Autoscaling&lt;BR /&gt;
add2 0,-1.375"&lt;BR /&gt;
PEN cpen&lt;BR /&gt;
LINE2 0'-0.0000", 0'-2.0157"+1.375", 1'-9.6614", 0'-2.0157"+1.375"&lt;BR /&gt;
LINE2 0'-0.0000", -0'-2.0157"+1.375", 1'-9.6614", -0'-2.0157"+1.375"&lt;BR /&gt;
CIRCLE2 1'-4.0079", 0'-0.0000"+1.375", 0'-6.0000"&lt;BR /&gt;
!!!DEL 1&lt;BR /&gt;
HOTSPOT2 0,+1.375",0&lt;BR /&gt;
HOTSPOT2 1'-4.0079",+1.375",0 &lt;BR /&gt;
DEL 2&lt;BR /&gt;
&lt;BR /&gt;
Peter Devlin</description>
    <pubDate>Wed, 01 Mar 2006 21:49:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-03-01T21:49:49Z</dc:date>
    <item>
      <title>Autoscaling 2D lines, circles, etc...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36331#M34926</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I use the following code to autoscale lines and circles that make up the 2d part of my object.&lt;BR /&gt;
I drew it @ 1/8" scale so that's why I had to use /96 in the code.&lt;BR /&gt;
&lt;BR /&gt;
MUL2  GLOB_SCALE/96,GLOB_SCALE/96          !Autoscaling&lt;BR /&gt;
&lt;BR /&gt;
My question is when it scales itself. the object moves in plan. It moves just a little bit 11/16" from 1/8" scale to 1/4" scale. Here's some of the code:&lt;BR /&gt;
&lt;BR /&gt;
MUL2  GLOB_SCALE/96,GLOB_SCALE/96          !Autoscaling&lt;BR /&gt;
PEN   cpen&lt;BR /&gt;
LINE2    0'-0.0000", 0'-2.0157"+1.375", 1'-9.6614", 0'-2.0157"+1.375"&lt;BR /&gt;
LINE2    0'-0.0000", -0'-2.0157"+1.375", 1'-9.6614", -0'-2.0157"+1.375"&lt;BR /&gt;
CIRCLE2  1'-4.0079", 0'-0.0000"+1.375", 0'-6.0000"&lt;BR /&gt;
DEL 1&lt;BR /&gt;
HOTSPOT2 0,+1.375",0&lt;BR /&gt;
HOTSPOT2 1'-4.0079",+1.375",0&lt;BR /&gt;
&lt;BR /&gt;
DEFINE STYLE STYLE_1 "Arial", 35 * MIN (a, b), 7, 0&lt;BR /&gt;
&lt;BR /&gt;
The code starts the object @ the center, where I want it to scale from. But it seems to be scaling the object from some other point. Is it because I drew the object @ 1/8" scale to begin with????&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any ideas,&lt;BR /&gt;
Michele&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Mar 2006 21:04:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36331#M34926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-01T21:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Autoscaling 2D lines, circles, etc...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36332#M34927</link>
      <description>How is the object moving in plan? I placed a few hotspots and could not find any movement.&lt;BR /&gt;
&lt;BR /&gt;
Is there a reason you placed the HOTSPOT2 statements outside the MUL/DEL statements? Is this all the code? Namely, are there any ADD2 statements around?&lt;BR /&gt;
&lt;BR /&gt;
I'm not sure it's related, but I make it a point to always draw scale sensitive objects at 1:1 scale.&lt;BR /&gt;
&lt;BR /&gt;
I tried adding a HOTSPOT2 at 0,0, and it is definitely off-center.</description>
      <pubDate>Wed, 01 Mar 2006 21:23:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36332#M34927</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-03-01T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Autoscaling 2D lines, circles, etc...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36333#M34928</link>
      <description>It's right here:
&lt;BLOCKQUOTE&gt;Michele wrote:&lt;BR /&gt;LINE2    0'-0.0000", 0'-2.0157"+1.375", 1'-9.6614", 0'-2.0157"+1.375"&lt;BR /&gt;
LINE2    0'-0.0000", -0'-2.0157"+1.375", 1'-9.6614", -0'-2.0157"+1.375"&lt;/BLOCKQUOTE&gt;

in a coordinate system, &lt;BR /&gt;
2" + 1.375" = 3.375"&lt;BR /&gt;
-2" + 1.375" = -0.625"&lt;BR /&gt;
&lt;BR /&gt;
Since it is not centered on 0 to begin with,  object is skewing when it scales.</description>
      <pubDate>Wed, 01 Mar 2006 21:35:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36333#M34928</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-03-01T21:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Autoscaling 2D lines, circles, etc...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36334#M34929</link>
      <description>Thanks,&lt;BR /&gt;
I made a copy of the object and was cleaning it up and I think I got it workng correctly. I always seem to see it clearer after I send an email for help.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michele</description>
      <pubDate>Wed, 01 Mar 2006 21:40:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36334#M34929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-01T21:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Autoscaling 2D lines, circles, etc...</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36335#M34930</link>
      <description>Michele,&lt;BR /&gt;
I copied your code into a new library part and noticed what Tom did.&lt;BR /&gt;
Your object is not centered on the origin (0,0) and the del is before&lt;BR /&gt;
the hotspots.&lt;BR /&gt;
&lt;BR /&gt;
An easy fix.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
MUL2 GLOB_SCALE/96,GLOB_SCALE/96 !Autoscaling&lt;BR /&gt;
add2 0,-1.375"&lt;BR /&gt;
PEN cpen&lt;BR /&gt;
LINE2 0'-0.0000", 0'-2.0157"+1.375", 1'-9.6614", 0'-2.0157"+1.375"&lt;BR /&gt;
LINE2 0'-0.0000", -0'-2.0157"+1.375", 1'-9.6614", -0'-2.0157"+1.375"&lt;BR /&gt;
CIRCLE2 1'-4.0079", 0'-0.0000"+1.375", 0'-6.0000"&lt;BR /&gt;
!!!DEL 1&lt;BR /&gt;
HOTSPOT2 0,+1.375",0&lt;BR /&gt;
HOTSPOT2 1'-4.0079",+1.375",0 &lt;BR /&gt;
DEL 2&lt;BR /&gt;
&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 01 Mar 2006 21:49:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Autoscaling-2D-lines-circles-etc/m-p/36335#M34930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-03-01T21:49:49Z</dc:date>
    </item>
  </channel>
</rss>

