<?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: Trees (and other objects) Fill-Type not Gradient Enabled in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Trees-and-other-objects-Fill-Type-not-Gradient-Enabled/m-p/196968#M20190</link>
    <description>ares997,&lt;BR /&gt;
&lt;BR /&gt;
Try to replace&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;poly2_b 2, 2, gs_fill_pen, gs_back_pen, &lt;BR /&gt;
0,0,900, &lt;BR /&gt;
a/2,360,4000 &lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
with this:&lt;BR /&gt;
&lt;BR /&gt;
set fill  gs_fill_type  !or [set fill "gradient fill"] (check the name, please)&lt;BR /&gt;
poly2_b{5}       2,      3,      0,     12,&lt;BR /&gt;
gs_fill_pen, gs_back_pen, &lt;BR /&gt;
			&lt;BR /&gt;
0, 	.3,&lt;BR /&gt;
1,      0,      0,     1,&lt;BR /&gt;
0.3, &lt;BR /&gt;
						&lt;BR /&gt;
0,0,900, &lt;BR /&gt;
a/2,360,4000&lt;BR /&gt;
&lt;BR /&gt;
check details GDL Reference quide page 150 (AC !3)&lt;BR /&gt;
&lt;BR /&gt;
You can also draw Your tree 2d in plan wiew and then drag it into an object´s 2d program window. Then You can copy the code into Your object.&lt;BR /&gt;
poly2_b{5} has lots of controll flags, be patient...by adjusting them You get what You want.&lt;BR /&gt;
&lt;BR /&gt;
If You can´t get the gradient fill from the dialog box, just write it like You get it from dragging it in the 2d window</description>
    <pubDate>Wed, 22 Sep 2010 19:14:10 GMT</pubDate>
    <dc:creator>Pertti Paasky</dc:creator>
    <dc:date>2010-09-22T19:14:10Z</dc:date>
    <item>
      <title>Trees (and other objects) Fill-Type not Gradient Enabled</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trees-and-other-objects-Fill-Type-not-Gradient-Enabled/m-p/196967#M20189</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm trying to make some fancy trees with a gradient fill in them but can't really see why they can't be gradient nor where to adjust the code to make them gradient....so this is a stock ac14 trees' 2d script (out of the box):&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
***&lt;BR /&gt;
unID = 1&lt;BR /&gt;
pen gs_cont_pen&lt;BR /&gt;
&lt;BR /&gt;
if type=`Simple` then&lt;BR /&gt;
&lt;BR /&gt;
	hotspot2 0, 0&lt;BR /&gt;
	hotspot2 a/2, 0&lt;BR /&gt;
	hotspot2 -a/2, 0&lt;BR /&gt;
	hotspot2 0, b/2&lt;BR /&gt;
	hotspot2 0, -b/2&lt;BR /&gt;
&lt;BR /&gt;
	circle2 0,0, a/2&lt;BR /&gt;
	circle2 0,0, diaTrunk/2&lt;BR /&gt;
&lt;BR /&gt;
	fill gs_fill_type&lt;BR /&gt;
&lt;BR /&gt;
	poly2_b 2, 2, gs_fill_pen, gs_back_pen,&lt;BR /&gt;
			0,0,900,&lt;BR /&gt;
			a/2,360,4000&lt;BR /&gt;
&lt;BR /&gt;
else&lt;BR /&gt;
&lt;BR /&gt;
	for iType = 1 to 40&lt;BR /&gt;
		if stSymbolType[iType] = type then&lt;BR /&gt;
			macroName = stSymbolMacroName[iType]&lt;BR /&gt;
			call macroName parameters a=a, b=b,type=stSymbolInMacroType[iType], cont_pen=gs_cont_pen,&lt;BR /&gt;
							fill_type=gs_fill_type, f_pen=gs_fill_pen, b_pen=gs_back_pen&lt;BR /&gt;
		endif&lt;BR /&gt;
	next iType&lt;BR /&gt;
&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
! TEXT&lt;BR /&gt;
! ======================================================================&lt;BR /&gt;
nTrans = 0&lt;BR /&gt;
if txt_show then&lt;BR /&gt;
&lt;BR /&gt;
	hotspot2 txt_pos_x,	0,			UnID, txt_pos_y, 1+128	: unID=unID+1&lt;BR /&gt;
	hotspot2 txt_pos_x,	-1,			UnID, txt_pos_y, 3		: unID=unID+1&lt;BR /&gt;
	hotspot2 txt_pos_x,	txt_pos_y,	UnID, txt_pos_y, 2		: unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
	hotspot2 0,			txt_pos_y,	UnID, txt_pos_x, 1+128	: unID=unID+1&lt;BR /&gt;
	hotspot2 -1,		txt_pos_y,	UnID, txt_pos_x, 3		: unID=unID+1&lt;BR /&gt;
	hotspot2 txt_pos_x,	txt_pos_y,	UnID, txt_pos_x, 2		: unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
	pen txt_pen&lt;BR /&gt;
&lt;BR /&gt;
	define style fe1 fontType, fontSizeFixed_mm, 5, isBold + isItalic * 2 + isUnderlined * 4&lt;BR /&gt;
	style fe1&lt;BR /&gt;
	add2 txt_pos_x, txt_pos_y&lt;BR /&gt;
	nTrans = nTrans + 1&lt;BR /&gt;
&lt;BR /&gt;
	! --- Oriented View ------------------------------ [&lt;BR /&gt;
&lt;BR /&gt;
	angleViewRot = 0&lt;BR /&gt;
	rrr = REQUEST ("View_Rotangle", "", angleViewRot)&lt;BR /&gt;
	totalRotate = (SYMB_ROTANGLE + angleViewRot) MOD 360&lt;BR /&gt;
&lt;BR /&gt;
	! Text Rotation - Readable / Always Horizontal / Align with Symbol&lt;BR /&gt;
	! ----------------------------------------------------------------------&lt;BR /&gt;
	if typeTextRotation_m = 2 then								! Readable&lt;BR /&gt;
		if (totalRotate &amp;gt; (gs_readable_angle + eps) &amp;amp; totalRotate &amp;lt; (gs_readable_angle + 180 + eps)) then&lt;BR /&gt;
			rot2 180&lt;BR /&gt;
			nTrans = nTrans + 1&lt;BR /&gt;
		endif&lt;BR /&gt;
	else&lt;BR /&gt;
		if typeTextRotation_m = 1 then							! Horizontal&lt;BR /&gt;
			rot2 totalRotate * (SYMB_MIRRORED - not(SYMB_MIRRORED)) ! 1/-1&lt;BR /&gt;
			nTrans = nTrans + 1&lt;BR /&gt;
		endif&lt;BR /&gt;
	endif&lt;BR /&gt;
	! ----------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
	text2 0,0,txt&lt;BR /&gt;
	del nTrans&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
end&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
&lt;BR /&gt;
call "tree_2D-01" parameters all&lt;BR /&gt;
call "tree_2D-02" parameters all&lt;BR /&gt;
call "tree_2D-03" parameters all&lt;BR /&gt;
call "tree_2D-04" parameters all&lt;BR /&gt;
call "tree_2D-05" parameters all&lt;BR /&gt;
call "tree_2D-06" parameters all&lt;BR /&gt;
call "tree_2D-07" parameters all&lt;BR /&gt;
call "tree_2D-08" parameters all&lt;BR /&gt;
call "tree_2D-09" parameters all&lt;BR /&gt;
call "tree_2D-10" parameters all&lt;BR /&gt;
call "tree_2D-11" parameters all&lt;BR /&gt;
***&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But when I go to the variable for the Fill type in the parameters the variable doesn't have an option for gradient.&lt;BR /&gt;
&lt;BR /&gt;
All suggestions&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Aug 2010 22:05:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trees-and-other-objects-Fill-Type-not-Gradient-Enabled/m-p/196967#M20189</guid>
      <dc:creator>ares997</dc:creator>
      <dc:date>2010-08-26T22:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trees (and other objects) Fill-Type not Gradient Enabled</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Trees-and-other-objects-Fill-Type-not-Gradient-Enabled/m-p/196968#M20190</link>
      <description>ares997,&lt;BR /&gt;
&lt;BR /&gt;
Try to replace&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;poly2_b 2, 2, gs_fill_pen, gs_back_pen, &lt;BR /&gt;
0,0,900, &lt;BR /&gt;
a/2,360,4000 &lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
with this:&lt;BR /&gt;
&lt;BR /&gt;
set fill  gs_fill_type  !or [set fill "gradient fill"] (check the name, please)&lt;BR /&gt;
poly2_b{5}       2,      3,      0,     12,&lt;BR /&gt;
gs_fill_pen, gs_back_pen, &lt;BR /&gt;
			&lt;BR /&gt;
0, 	.3,&lt;BR /&gt;
1,      0,      0,     1,&lt;BR /&gt;
0.3, &lt;BR /&gt;
						&lt;BR /&gt;
0,0,900, &lt;BR /&gt;
a/2,360,4000&lt;BR /&gt;
&lt;BR /&gt;
check details GDL Reference quide page 150 (AC !3)&lt;BR /&gt;
&lt;BR /&gt;
You can also draw Your tree 2d in plan wiew and then drag it into an object´s 2d program window. Then You can copy the code into Your object.&lt;BR /&gt;
poly2_b{5} has lots of controll flags, be patient...by adjusting them You get what You want.&lt;BR /&gt;
&lt;BR /&gt;
If You can´t get the gradient fill from the dialog box, just write it like You get it from dragging it in the 2d window</description>
      <pubDate>Wed, 22 Sep 2010 19:14:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Trees-and-other-objects-Fill-Type-not-Gradient-Enabled/m-p/196968#M20190</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2010-09-22T19:14:10Z</dc:date>
    </item>
  </channel>
</rss>

