<?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: Working with Paper / Model Space in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117817#M18347</link>
    <description>&lt;BLOCKQUOTE&gt;derekjackson wrote:&lt;BR /&gt;I'm trying to generate an object that lets the user choose between Paper or Model space when defining the size of the object output. It's an informative object that gives them a reading on various aspects of the model - I'd like to give them choice to choose its size in Model space for the working model, but also to pick a paper size so that it can be placed on layouts.&lt;/BLOCKQUOTE&gt;
This is straight-forward if you have a clear picture of the whole task. Your aim is for the object to appear on a printed page at a specified size irrespective of scale, e.g. if I say that text is 3mm high, it will always be 3mm high on the printed page. &lt;BR /&gt;
&lt;BR /&gt;
To achieve this, you need 2 parameters to represent a single measurement - one for the size in paper space (pSize) and the other in model space (mSize).&lt;UL&gt;&lt;LI&gt;- If the mSize parameter is not being edited, the Master Script should set mSize = pSize * scale&lt;BR /&gt;
&lt;BR /&gt;
- If the mSize parameter is stretched, then the Parameter Script should set pSize = mSize / scale&lt;BR /&gt;
&lt;BR /&gt;
- Always draw the object with mSize, and set the stretchable hotspots against mSize&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 25 Oct 2010 07:02:09 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2010-10-25T07:02:09Z</dc:date>
    <item>
      <title>Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117811#M18341</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
   I'm trying to generate an object that lets the user choose between Paper or Model space when defining the size of the object output. It's an informative object that gives them a reading on various aspects of the model - I'd like to give them choice to choose its size in Model space for the working model, but also to pick a paper size so that it can be placed on layouts.&lt;BR /&gt;
&lt;BR /&gt;
Obviously model space works fine - just treat it as any other architectural element.&lt;BR /&gt;
&lt;BR /&gt;
For the paper space / layout option, I'm taking the output size chosen by the user (sz), and multiplying it by 1/scale, but it doesn't give the correct output.&lt;BR /&gt;

&lt;PRE&gt;sz = sz*(1/A_)&lt;/PRE&gt;

Am I using it correctly? Do I need to be using some sort of 'Layout Scale' variable instead?&lt;BR /&gt;
&lt;BR /&gt;
It's probably really obvious but I'm stumped on this one...&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Oct 2010 15:20:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117811#M18341</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-10-19T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117812#M18342</link>
      <description>Does this work?
&lt;PRE&gt;sz = sz*(1000/A_)&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Oct 2010 02:15:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117812#M18342</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2010-10-20T02:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117813#M18343</link>
      <description>Ah - it seems my issue was that I was testing the thing on a layout, which meant it had passed through two different scales - no wonder things were confused. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
It now seems to work fine (with sz=sz*A_ in the end)&lt;BR /&gt;
&lt;BR /&gt;
Thanks anyway!</description>
      <pubDate>Wed, 20 Oct 2010 10:23:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117813#M18343</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-10-20T10:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117814#M18344</link>
      <description>One more query on this topic.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to get Graphical Hotspots to work so that the output can be dragged to a location by the user, and it will maintain a consistent relationship with the main object regardless of paper or model space.&lt;BR /&gt;
&lt;BR /&gt;
For my readout I currently have a graphical hotspot definition, then an ADD2 to move the origin to the hotpspot, and output the reading:&lt;BR /&gt;

&lt;PRE&gt;    hsid=hsid+1
    HOTSPOT2 0,texty,    hsid,textx,1+128
    hsid=hsid+1
    HOTSPOT2 textx,texty,    hsid,textx,2
    hsid=hsid+1
    HOTSPOT2 -1,texty,    hsid,textx,3
    
    hsid=hsid+1
    HOTSPOT2 textx,0,    hsid,texty,1+128
    hsid=hsid+1
    HOTSPOT2 textx,texty,    hsid,texty,2
    hsid=hsid+1
    HOTSPOT2 textx,-1,    hsid,texty,3

    ADD2 textx, texty
&lt;/PRE&gt;

For the paper space version, I have:
&lt;PRE&gt;    textxs = textx*A_
    textys = texty*A_

    hsid=hsid+1
    HOTSPOT2 0,textys,    hsid,textxs,1+128
    hsid=hsid+1
    HOTSPOT2 textxs,textys,    hsid,textxs,2
    hsid=hsid+1
    HOTSPOT2 -1,textys,    hsid,textxs,3
    
    hsid=hsid+1
    HOTSPOT2 textxs,0,    hsid,textys,1+128
    hsid=hsid+1
    HOTSPOT2 textxs,textys,    hsid,textys,2
    hsid=hsid+1
    HOTSPOT2 textxs,-1,    hsid,textys,3

    ADD2 textxs,textys
&lt;/PRE&gt; &lt;BR /&gt;
Although my elements (the object and font size) keep a consistent size regardless of scale, the distance between them keeps fluctuating. Any ideas where my hotspot script is going wrong? All help appreciated!&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Derek</description>
      <pubDate>Wed, 20 Oct 2010 15:19:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117814#M18344</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-10-20T15:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117815#M18345</link>
      <description>&lt;BLOCKQUOTE&gt;derekjackson wrote:&lt;BR /&gt;I'm trying to get Graphical Hotspots to work so that the output can be dragged to a location by the user, and it will maintain a consistent relationship with the main object regardless of paper or model space.&lt;/BLOCKQUOTE&gt;

I'm not clear exactly what you are trying to do but in my experience it is very difficult (if not impossible) to make dynamic hotspots responsive to both model and paper dimensions. It seems to be pretty much an either/or situation, at least practically speaking.</description>
      <pubDate>Sat, 23 Oct 2010 18:10:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117815#M18345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-23T18:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117816#M18346</link>
      <description>Derek,&lt;BR /&gt;
Would you mind sharing with us what kind of an object you are making?</description>
      <pubDate>Mon, 25 Oct 2010 00:41:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117816#M18346</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2010-10-25T00:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Paper / Model Space</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117817#M18347</link>
      <description>&lt;BLOCKQUOTE&gt;derekjackson wrote:&lt;BR /&gt;I'm trying to generate an object that lets the user choose between Paper or Model space when defining the size of the object output. It's an informative object that gives them a reading on various aspects of the model - I'd like to give them choice to choose its size in Model space for the working model, but also to pick a paper size so that it can be placed on layouts.&lt;/BLOCKQUOTE&gt;
This is straight-forward if you have a clear picture of the whole task. Your aim is for the object to appear on a printed page at a specified size irrespective of scale, e.g. if I say that text is 3mm high, it will always be 3mm high on the printed page. &lt;BR /&gt;
&lt;BR /&gt;
To achieve this, you need 2 parameters to represent a single measurement - one for the size in paper space (pSize) and the other in model space (mSize).&lt;UL&gt;&lt;LI&gt;- If the mSize parameter is not being edited, the Master Script should set mSize = pSize * scale&lt;BR /&gt;
&lt;BR /&gt;
- If the mSize parameter is stretched, then the Parameter Script should set pSize = mSize / scale&lt;BR /&gt;
&lt;BR /&gt;
- Always draw the object with mSize, and set the stretchable hotspots against mSize&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 25 Oct 2010 07:02:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Working-with-Paper-Model-Space/m-p/117817#M18347</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-10-25T07:02:09Z</dc:date>
    </item>
  </channel>
</rss>

