<?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: Calling objects? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205896#M24513</link>
    <description>Interesting post. It shows a lack with autoscripted objects.&lt;BR /&gt;
&lt;BR /&gt;
The macro called object "Pyramid" has graphical hotspots. That's the problem.&lt;BR /&gt;
&lt;BR /&gt;
In such situation, for scripted objects, we learn by trial an error, as Erika said,&lt;BR /&gt;
that we have to declare all the parameters relative to graphical hotspots in the main object.&lt;BR /&gt;
&lt;BR /&gt;
For autoscripted objects, AC should create automatically these (hotspot relative) parameters in the main object, to avoid a failure.</description>
    <pubDate>Wed, 08 Apr 2009 21:15:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-08T21:15:39Z</dc:date>
    <item>
      <title>Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205891#M24508</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;How come when I make an object then check the script I get errors when an object (that is a basic AC object) is called I get errors.  For example:&lt;BR /&gt;
&lt;BR /&gt;
I'm making a newel post.  It consists of a column, a slab and a pyramid (Pyramid 11)&lt;BR /&gt;
&lt;BR /&gt;
Simple object, right?&lt;BR /&gt;
&lt;BR /&gt;
When I "check script" I get errors that:&lt;BR /&gt;
&lt;BR /&gt;
DIST_Y isn't a valid parameter name&lt;BR /&gt;
DIST_X isnt' a valid parameter name&lt;BR /&gt;
GAMMA isn't a valid parameter name&lt;BR /&gt;
&lt;BR /&gt;
etc., etc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
It seems all the called parameters are invalid. I don't get why this is when it's an AC object.&lt;BR /&gt;
&lt;BR /&gt;
Here is the whole script:&lt;BR /&gt;
&lt;BR /&gt;
!&lt;BR /&gt;
!   Name     : StdNewell.gsm&lt;BR /&gt;
!   Date     : Wednesday, April 8, 2009&lt;BR /&gt;
!   Version  : 11.00&lt;BR /&gt;
!   Written by ArchiCAD &lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
mulx	A/0'-6.5000"&lt;BR /&gt;
muly	B/0'-6.5000"&lt;BR /&gt;
mulz	ZZYZX/3'-6.0000"&lt;BR /&gt;
addx    0'-3.2500"&lt;BR /&gt;
addy    0'-3.2500"&lt;BR /&gt;
rotz             270&lt;BR /&gt;
body    -1&lt;BR /&gt;
model solid&lt;BR /&gt;
resol       36&lt;BR /&gt;
GLOB_SCRIPT_TYPE =      3&lt;BR /&gt;
GLOB_CONTEXT =      3&lt;BR /&gt;
GLOB_SCALE =     48&lt;BR /&gt;
GLOB_NORTH_DIR =           90&lt;BR /&gt;
GLOB_DRAWING_BGD_PEN =     91&lt;BR /&gt;
GLOB_FRAME_NR =     -1&lt;BR /&gt;
GLOB_EYEPOS_X = 40'-10.5550"&lt;BR /&gt;
GLOB_EYEPOS_Y = -55'-1.0332"&lt;BR /&gt;
GLOB_EYEPOS_Z = 25'-0.0000"&lt;BR /&gt;
GLOB_TARGPOS_X = 40'-10.5550"&lt;BR /&gt;
GLOB_TARGPOS_Y = 24'-10.9668"&lt;BR /&gt;
GLOB_TARGPOS_Z = 5'-0.0000"&lt;BR /&gt;
GLOB_SUN_AZIMUTH = 332.3090550957&lt;BR /&gt;
GLOB_SUN_ALTITUDE = 56.42999939507&lt;BR /&gt;
body    -1&lt;BR /&gt;
body    -1&lt;BR /&gt;
GLOB_HSTORY_HEIGHT = 10'-0.0000"&lt;BR /&gt;
!!Object-01&lt;BR /&gt;
WALL_ID = "Wall-02"&lt;BR /&gt;
WALL_INTGUID = "00000000-0000-0000-0000-000000000000"&lt;BR /&gt;
WALL_RESOL =     36&lt;BR /&gt;
WALL_THICKNESS = 0'-9.0000"&lt;BR /&gt;
WALL_START_THICKNESS = 0'-9.0000"&lt;BR /&gt;
WALL_END_THICKNESS = 0'-9.1250"&lt;BR /&gt;
WALL_HEIGHT = 10'-0.0000"&lt;BR /&gt;
WALL_LINETYPE =      1&lt;BR /&gt;
WALL_FILL =     85&lt;BR /&gt;
WALL_FILL_PEN =      2&lt;BR /&gt;
WALL_SECT_PEN =      1&lt;BR /&gt;
WALL_VIEW_PEN =     11&lt;BR /&gt;
WALL_FBGD_PEN =     -1&lt;BR /&gt;
WALL_POSITION[1] = 0'-0.0000"&lt;BR /&gt;
WALL_POSITION[2] = 0'-0.0000"&lt;BR /&gt;
WALL_POSITION[3] = 0'-0.0000"&lt;BR /&gt;
WALL_MAT_A =     68&lt;BR /&gt;
WALL_MAT_B =     50&lt;BR /&gt;
WALL_MAT_EDGE =     50&lt;BR /&gt;
GLOB_ELEVATION = 3'-3.0000"&lt;BR /&gt;
SYMB_LINETYPE =      1&lt;BR /&gt;
SYMB_FILL =     85&lt;BR /&gt;
SYMB_FILL_PEN =     91&lt;BR /&gt;
SYMB_FBGD_PEN =     -1&lt;BR /&gt;
SYMB_SECT_PEN =      4&lt;BR /&gt;
SYMB_VIEW_PEN =      4&lt;BR /&gt;
SYMB_MAT =     18&lt;BR /&gt;
SYMB_POS_Z = 3'-3.0000"&lt;BR /&gt;
SYMB_ROTANGLE =          225&lt;BR /&gt;
SYMB_A_SIZE = 0'-9.1875"&lt;BR /&gt;
SYMB_B_SIZE = 0'-6.4965"&lt;BR /&gt;
GLOB_CUTPLANES_INFO[1] = 4'-0.0000"&lt;BR /&gt;
GLOB_CUTPLANES_INFO[2] = 10'-0.0000"&lt;BR /&gt;
GLOB_CUTPLANES_INFO[3] = 0'-0.0000"&lt;BR /&gt;
GLOB_CUTPLANES_INFO[4] = 0'-0.0000"&lt;BR /&gt;
WALL_THICKNESS = 0'-0.0000"&lt;BR /&gt;
pen          4&lt;BR /&gt;
set material "09 | Paint-02 Whitewash"&lt;BR /&gt;
GLOB_LAYER = "A-FLOR"&lt;BR /&gt;
GLOB_ID = "Object-01"&lt;BR /&gt;
GLOB_INTGUID = "634A70BD-A518-DC4E-9D98-C3C287CDD14A"&lt;BR /&gt;
GLOB_ELEM_TYPE =      1&lt;BR /&gt;
body    -1&lt;BR /&gt;
add     0'-0.0000", 0'-0.0000", 3'-3.0000"&lt;BR /&gt;
rotz             225&lt;BR /&gt;
call    "Pyramid 11",&lt;BR /&gt;
    PARAMETERS A = 0'-9.1875", B = 0'-6.4965", ZZYZX = 0'-3.0000",&lt;BR /&gt;
        AC_show2DHotspotsIn3D =      0, gs_detlevel_3D = "Detailed",&lt;BR /&gt;
        radius_1 = 0'-4.5937", edit_mode = "Angle-Length", end_mode = "Perpendicular",&lt;BR /&gt;
        edge_num =      4, gamma =           90, length = 0'-3.0000",&lt;BR /&gt;
        dist_x = 0'-0.0000", dist_y = 0'-0.0000", gs_shadow =      1,&lt;BR /&gt;
        gs_cont_pen =      4, gs_fill_type = ind(fill,"Empty Fill"),&lt;BR /&gt;
        gs_fill_pen =      2, gs_back_pen =     -1, gs_prim_mat = ind(material,"05 | Copper New"),&lt;BR /&gt;
        gs_list_cost =            0, gs_list_manufacturer = "", gs_list_note = "",&lt;BR /&gt;
        gs_list_location = "", gs_list_accessories = "", FM_Type = "Others",&lt;BR /&gt;
        FM_InventoryNumber = "", FM_SerialNumber = "", FM_ProductionYear = "",&lt;BR /&gt;
        FM_ObjectWeight =            0, FM_ObjectWeightUnit = "kg",&lt;BR /&gt;
        gs_list_custom1 = "", gs_list_custom2 = "", gs_list_custom3 = "",&lt;BR /&gt;
        gs_list_custom4 = "", gs_list_custom5 = ""&lt;BR /&gt;
del          2&lt;BR /&gt;
body    -1&lt;BR /&gt;
!!Column-01&lt;BR /&gt;
pen          2&lt;BR /&gt;
GLOB_ID = "Column-01"&lt;BR /&gt;
GLOB_INTGUID = "A7A89F5F-607A-D94E-82C3-CBD044781E9E"&lt;BR /&gt;
body    -1&lt;BR /&gt;
sprism_{2} col_mat, col_mat, col_mat,&lt;BR /&gt;
             5, 0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 3'-1.5000",            0,&lt;BR /&gt;
0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 0'-0.0000",            0,&lt;BR /&gt;
        -0'-2.7500", -0'-2.7500",     63, ind(material,"09 | Paint-02 Whitewash"),&lt;BR /&gt;
        0'-2.7500", -0'-2.7500",     63, ind(material,"09 | Paint-02 Whitewash"),&lt;BR /&gt;
        0'-2.7500", 0'-2.7500",     63, ind(material,"09 | Paint-02 Whitewash"),&lt;BR /&gt;
        -0'-2.7500", 0'-2.7500",     63, ind(material,"09 | Paint-02 Whitewash"),&lt;BR /&gt;
        -0'-2.7500", -0'-2.7500",     63, ind(material,"09 | Paint-02 Whitewash")&lt;BR /&gt;
body    -1&lt;BR /&gt;
body    -1&lt;BR /&gt;
!!Slab-01&lt;BR /&gt;
GLOB_ID = "Slab-01"&lt;BR /&gt;
GLOB_INTGUID = "92445F34-0C9F-1A4B-A761-DF3DA9FB1D17"&lt;BR /&gt;
body    -1&lt;BR /&gt;
addz    3'-1.5000"&lt;BR /&gt;
cprism_ "09 | Paint-02 Whitewash", "09 | Paint-02 Whitewash", "09 | Paint-02 Whitewash",&lt;BR /&gt;
             5, 0'-1.5000",&lt;BR /&gt;
        -0'-3.2500", 0'-3.2500",     15,&lt;BR /&gt;
        0'-3.2500", 0'-3.2500",     15,&lt;BR /&gt;
        0'-3.2500", -0'-3.2500",     15,&lt;BR /&gt;
        -0'-3.2500", -0'-3.2500",     15,&lt;BR /&gt;
        -0'-3.2500", 0'-3.2500",     -1&lt;BR /&gt;
base&lt;BR /&gt;
vert    0'-0.0000", 0'-0.0000", -3'-1.5000"&lt;BR /&gt;
vert    0'-6.5000", 0'-0.0000", -3'-1.5000"&lt;BR /&gt;
vert    0'-0.0000", 0'-6.5000", -3'-1.5000"&lt;BR /&gt;
vert    0'-0.0000", 0'-0.0000", -3'-0.0000"&lt;BR /&gt;
coor      8468,     -1,     -2,     -3,     -4&lt;BR /&gt;
del          1&lt;BR /&gt;
body    -1&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Apr 2009 14:19:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205891#M24508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-08T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205892#M24509</link>
      <description>You need to add these parameters on the Parameter tab of your newel post. They are parameters from the pyramid element you used. The values you enter for the length will be dummies as the pyramid will stay the dimensions as set when you dragged the element into the 3D Script window.</description>
      <pubDate>Wed, 08 Apr 2009 16:06:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205892#M24509</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2009-04-08T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205893#M24510</link>
      <description>Thanks, Erika.&lt;BR /&gt;
&lt;BR /&gt;
That makes my object work and I appreciate that, but I still don't understand what's going on here.  I'd rather not have to bug everyone here with a post of my script every time something like this doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
How did you know what parameters needed to be added?</description>
      <pubDate>Wed, 08 Apr 2009 16:34:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205893#M24510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-08T16:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205894#M24511</link>
      <description>&lt;BLOCKQUOTE&gt;Wrathchild wrote:&lt;BR /&gt;  I'd rather not have to bug everyone here with a post of my script every time something like this doesn't work.&lt;/BLOCKQUOTE&gt;
Your welcome. &lt;BR /&gt;
How do you think we all learned? Posting questions. That's what the forum is for.&lt;BR /&gt;
I clicked on the Check Script button in the 3D window and noted down the missing parameter, and added a new parameter with that name. Then clicked again on the Check Script button, noted the missing parameter and added... until there were no more missing parameter error messages.</description>
      <pubDate>Wed, 08 Apr 2009 16:45:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205894#M24511</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2009-04-08T16:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205895#M24512</link>
      <description>Wow!  Seems so simple when you spell it out.  When I got errors saying 'missing parameter" I thought the errors were missing from the script. I didn't even think to add parameters to the, well, uh, parameters......lol.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a bunch Erika.</description>
      <pubDate>Wed, 08 Apr 2009 16:50:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205895#M24512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-08T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205896#M24513</link>
      <description>Interesting post. It shows a lack with autoscripted objects.&lt;BR /&gt;
&lt;BR /&gt;
The macro called object "Pyramid" has graphical hotspots. That's the problem.&lt;BR /&gt;
&lt;BR /&gt;
In such situation, for scripted objects, we learn by trial an error, as Erika said,&lt;BR /&gt;
that we have to declare all the parameters relative to graphical hotspots in the main object.&lt;BR /&gt;
&lt;BR /&gt;
For autoscripted objects, AC should create automatically these (hotspot relative) parameters in the main object, to avoid a failure.</description>
      <pubDate>Wed, 08 Apr 2009 21:15:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205896#M24513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-08T21:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205897#M24514</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;Interesting post. It shows a lack with autoscripted objects.&lt;BR /&gt;
&lt;BR /&gt;
The macro called object "Pyramid" has graphical hotspots. That's the problem.&lt;BR /&gt;
&lt;BR /&gt;
In such situation, for scripted objects, we learn by trial an error, as Erika said,&lt;BR /&gt;
that we have to declare all the parameters relative to graphical hotspots in the main object.&lt;BR /&gt;
&lt;BR /&gt;
For autoscripted objects, AC should create automatically these (hotspot relative) parameters in the main object, to avoid a failure.&lt;/BLOCKQUOTE&gt;

Sounds like a good tutorial...........and shouldn't that be a topic here?&lt;BR /&gt;
&lt;BR /&gt;
Put that on my wish list.</description>
      <pubDate>Wed, 08 Apr 2009 21:27:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205897#M24514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-08T21:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling objects?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205898#M24515</link>
      <description>One problem with relying on someone else's objects and macros (even Graphisoft's) is that they may be changed at some point in the future. If this happens, you run the risk of further errors being generated.&lt;BR /&gt;
&lt;BR /&gt;
You know, you would probably find it easier to write the script yourself using GDL elements rather than objects. And the script would be a lot easier to debug.</description>
      <pubDate>Thu, 09 Apr 2009 02:19:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Calling-objects/m-p/205898#M24515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-09T02:19:42Z</dc:date>
    </item>
  </channel>
</rss>

