<?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 Profile Request in AC21 in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Profile-Request-in-AC21/m-p/274471#M4450</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
I have a problem with passing sizes of profile to other parameters:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!(1)
n = REQUEST ("Name_of_Profile", profil, profil_name)

!(2)
dim bbox[4]
n = REQUEST ("Profile_default_boundingbox", profil, bbox[1], bbox[2], bbox[3], bbox[4])

!(3)
w=  bbox[3]-bbox[1]
h=  bbox[4]-bbox[2]

!(4)
parameters width=w
parameters height=h


!--- preview
t=''
t= t+str(w, 4, 2)+'\n'
t= t+str(h, 4, 2)+'\n'
TEXT2   0,
      0,
      t
&lt;/PRE&gt;

(1) Reads name of profile &lt;BR /&gt;
(2) fillup array bbox with coords of boundary box &lt;BR /&gt;
(3) calculate w-width and h-height of boundary box&lt;BR /&gt;
(4) pass variables to parameters "width" and "height"&lt;BR /&gt;
&lt;BR /&gt;
Problem is parameters "width" and "height" show zeros!!&lt;BR /&gt;
From Reference I know that 
&lt;BLOCKQUOTE&gt;
The use of most requests in parameter scripts (or master scripts run as parameter script) can result in unstable returned values, therefore should be avoided.
&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
script is placed in MasterScript&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
Thanks &lt;BR /&gt;
Greg&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Mar 2018 10:39:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-09T10:39:45Z</dc:date>
    <item>
      <title>Profile Request in AC21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profile-Request-in-AC21/m-p/274471#M4450</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
I have a problem with passing sizes of profile to other parameters:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!(1)
n = REQUEST ("Name_of_Profile", profil, profil_name)

!(2)
dim bbox[4]
n = REQUEST ("Profile_default_boundingbox", profil, bbox[1], bbox[2], bbox[3], bbox[4])

!(3)
w=  bbox[3]-bbox[1]
h=  bbox[4]-bbox[2]

!(4)
parameters width=w
parameters height=h


!--- preview
t=''
t= t+str(w, 4, 2)+'\n'
t= t+str(h, 4, 2)+'\n'
TEXT2   0,
      0,
      t
&lt;/PRE&gt;

(1) Reads name of profile &lt;BR /&gt;
(2) fillup array bbox with coords of boundary box &lt;BR /&gt;
(3) calculate w-width and h-height of boundary box&lt;BR /&gt;
(4) pass variables to parameters "width" and "height"&lt;BR /&gt;
&lt;BR /&gt;
Problem is parameters "width" and "height" show zeros!!&lt;BR /&gt;
From Reference I know that 
&lt;BLOCKQUOTE&gt;
The use of most requests in parameter scripts (or master scripts run as parameter script) can result in unstable returned values, therefore should be avoided.
&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
script is placed in MasterScript&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
Thanks &lt;BR /&gt;
Greg&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Mar 2018 10:39:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profile-Request-in-AC21/m-p/274471#M4450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-09T10:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Profile Request in AC21</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profile-Request-in-AC21/m-p/274472#M4451</link>
      <description>I have exactly the same problem, did you find a fix?</description>
      <pubDate>Tue, 19 Jun 2018 13:41:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profile-Request-in-AC21/m-p/274472#M4451</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2018-06-19T13:41:39Z</dc:date>
    </item>
  </channel>
</rss>

