<?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 changing material of called object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32037#M32593</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I know it's not a 'good' thing to call an object but I did it and have a need to change the material of it now. I can only give a material name and not a parameter variable &lt;BR /&gt;
Here is the line I need to change:&lt;BR /&gt;
This works-                       gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"Surf-Whitewash"),&lt;BR /&gt;
&lt;BR /&gt;
 This does not work-           gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"parameter_value"),&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Here is the called object:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    CALL    "Cylinder 10"     PARAMETERS A = 0'-0.0000", B = 10'-0.0000",&lt;BR /&gt;
            ZZYZX = 0'-8.0000", gs_detlevel_3D = "Detailed", radius_1 = 5'-0.0000",&lt;BR /&gt;
            radius_1_gc = 5'-0.0000", end_mode = "Perpendicular", edit_mode = "Angle-Length",&lt;BR /&gt;
            gamma =           90, length = 0'-8.0000", dist_x = 0'-0.0000",&lt;BR /&gt;
            dist_y = 0'-0.0000", angle_1 =           60, angle_2 =           45,&lt;BR /&gt;
            gs_resol =     36, gs_shadow =      1, AC_show2DHotspotsIn3D =      0,&lt;BR /&gt;
            gs_cont_pen =      2, gs_fill_type = IND(FILL,"Empty Fill"),&lt;BR /&gt;
!gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"Surf-Whitewash"),&lt;BR /&gt;
            gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"parameter_value"),&lt;BR /&gt;
&lt;BR /&gt;
            !gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"0_PHM Blue"),&lt;BR /&gt;
            gs_list_cost =            0, gs_list_manufacturer = "",&lt;BR /&gt;
            gs_list_note = "", gs_list_location = "", gs_list_accessories = "",&lt;BR /&gt;
            FM_Type = "Others", FM_InventoryNumber = "", FM_SerialNumber = "",&lt;BR /&gt;
            FM_ProductionYear = "", FM_ObjectWeight =            0,&lt;BR /&gt;
            FM_ObjectWeightUnit = "kg", gs_list_custom1 = "", gs_list_custom2 = "",&lt;BR /&gt;
            gs_list_custom3 = "", gs_list_custom4 = "", gs_list_custom5 = ""&lt;BR /&gt;
    DEL          2&lt;BR /&gt;
&lt;BR /&gt;
Tthanks,&lt;BR /&gt;
Michele&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Nov 2006 18:08:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-11-16T18:08:12Z</dc:date>
    <item>
      <title>changing material of called object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32037#M32593</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I know it's not a 'good' thing to call an object but I did it and have a need to change the material of it now. I can only give a material name and not a parameter variable &lt;BR /&gt;
Here is the line I need to change:&lt;BR /&gt;
This works-                       gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"Surf-Whitewash"),&lt;BR /&gt;
&lt;BR /&gt;
 This does not work-           gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"parameter_value"),&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Here is the called object:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
    CALL    "Cylinder 10"     PARAMETERS A = 0'-0.0000", B = 10'-0.0000",&lt;BR /&gt;
            ZZYZX = 0'-8.0000", gs_detlevel_3D = "Detailed", radius_1 = 5'-0.0000",&lt;BR /&gt;
            radius_1_gc = 5'-0.0000", end_mode = "Perpendicular", edit_mode = "Angle-Length",&lt;BR /&gt;
            gamma =           90, length = 0'-8.0000", dist_x = 0'-0.0000",&lt;BR /&gt;
            dist_y = 0'-0.0000", angle_1 =           60, angle_2 =           45,&lt;BR /&gt;
            gs_resol =     36, gs_shadow =      1, AC_show2DHotspotsIn3D =      0,&lt;BR /&gt;
            gs_cont_pen =      2, gs_fill_type = IND(FILL,"Empty Fill"),&lt;BR /&gt;
!gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"Surf-Whitewash"),&lt;BR /&gt;
            gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"parameter_value"),&lt;BR /&gt;
&lt;BR /&gt;
            !gs_fill_pen =     91, gs_back_pen =     91, gs_prim_mat = IND(MATERIAL,"0_PHM Blue"),&lt;BR /&gt;
            gs_list_cost =            0, gs_list_manufacturer = "",&lt;BR /&gt;
            gs_list_note = "", gs_list_location = "", gs_list_accessories = "",&lt;BR /&gt;
            FM_Type = "Others", FM_InventoryNumber = "", FM_SerialNumber = "",&lt;BR /&gt;
            FM_ProductionYear = "", FM_ObjectWeight =            0,&lt;BR /&gt;
            FM_ObjectWeightUnit = "kg", gs_list_custom1 = "", gs_list_custom2 = "",&lt;BR /&gt;
            gs_list_custom3 = "", gs_list_custom4 = "", gs_list_custom5 = ""&lt;BR /&gt;
    DEL          2&lt;BR /&gt;
&lt;BR /&gt;
Tthanks,&lt;BR /&gt;
Michele&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Nov 2006 18:08:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32037#M32593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-11-16T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: changing material of called object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32038#M32594</link>
      <description>Michele,&lt;BR /&gt;
Is "parameter_value" the name of a material defined in&lt;BR /&gt;
the parameter list of the calling object ?&lt;BR /&gt;
If not try creating a material type parameter called&lt;BR /&gt;
"cylmat" or something like that in the calling objects&lt;BR /&gt;
parameter list then in the script for calling the cylinder write:&lt;BR /&gt;
&lt;BR /&gt;
gs_fill_pen = 91, gs_back_pen = 91, gs_prim_mat = cylmat&lt;BR /&gt;
&lt;BR /&gt;
Unless I completely misunderstand, this should work.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Thu, 16 Nov 2006 18:54:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32038#M32594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-11-16T18:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: changing material of called object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32039#M32595</link>
      <description>Thanks it worked great</description>
      <pubDate>Thu, 16 Nov 2006 19:32:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/changing-material-of-called-object/m-p/32039#M32595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-11-16T19:32:41Z</dc:date>
    </item>
  </channel>
</rss>

