<?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 How do I use the Profile parameter in a GDL script. in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225594#M3834</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I'm new to GDL, I can create basic shapes and write basic code, like IF statements, but I can't figure out how to create a shape using the Profile parameter to inform the geometry. Any help would be most appreciated.&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Sep 2021 07:29:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-15T07:29:54Z</dc:date>
    <item>
      <title>How do I use the Profile parameter in a GDL script.</title>
      <link>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225594#M3834</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I'm new to GDL, I can create basic shapes and write basic code, like IF statements, but I can't figure out how to create a shape using the Profile parameter to inform the geometry. Any help would be most appreciated.&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:29:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225594#M3834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T07:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Profile parameter in a GDL script.</title>
      <link>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225595#M3835</link>
      <description>&lt;PRE&gt;If GLOB_SCRIPT_TYPE = 2 or GLOB_SCRIPT_TYPE = 3 or GLOB_SCRIPT_TYPE = 4 or GLOB_SCRIPT_TYPE = 5 then
	_nComponents = 0
	dim _componentTypes[]

	n = REQUEST{2} ("Profile_components", myProfileIdx, _nComponents, _componentTypes)

	n2 = REQUEST ("Profile_default_boundingbox",  myProfileIdx, _xMin, _yMin, _xMax, _yMax)

	n3 = REQUEST{4} ("Profile_component_info", myProfileIdx, _nComponents, "gs_profile_surface", bMat_profile)
	
	If GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 5 then
		If rafPro = "Complex" then
				ProWidth = abs(_xMax - _xMin)
				ProHeight = abs(_yMax - _yMin)
				SquareV2 = ProHeight / ( cos(phi) )
		endIf
	endIf

	if n then
		dim _bShowPart[]
		_needRequestDetails = 0
	
		for _i = 1 to _nComponents
			_bShowPart[_i] = 1    
			  if GLOB_STRUCTURE_DISPLAY = 1 AND _componentTypes[_i] &amp;lt;&amp;gt; COMPTYPE_CORE then _bShowPart[_i] = 0   ! GLOB_STRUCTURE_DISPLAY: 0 – entire structure, 1 – core only, 2 – without finishes
			  if GLOB_STRUCTURE_DISPLAY = 2 AND _componentTypes[_i] = COMPTYPE_FINISH then _bShowPart[_i] = 0
			  if _bShowPart[_i] then _needRequestDetails = 1
		next _i
	
		if _needRequestDetails then
			dim _profileGeometryRawData[]
			n = REQUEST ("Profile_default_geometry", myProfileIdx, _profileGeometryRawData)		! n1, n2, ..., nn, x11, y11,s11 
	
			dim _contStartPoints[]
			dim _contEndPoints[]
			_contStartPoints[1] = _nComponents + 1
			for _i = 2 to _nComponents
				_contStartPoints[_i] = _contStartPoints[_i - 1] + _profileGeometryRawData[_i - 1] * 5
				_contEndPoints[_i-1] = _contStartPoints[_i] - 1
			next _i
			_contEndPoints[_nComponents] = vardim1(_profileGeometryRawData)
		endif
	endif
endif
&lt;/PRE&gt;

&lt;BR /&gt;
There is a sample object somewhere by Graphisoft, but it appears to be alluding me...&lt;BR /&gt;
&lt;BR /&gt;
There is also an object shared in this &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66662&amp;amp;start=10" target="_blank"&gt;thread&lt;/A&gt; which is in regards to having multiple &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Complex Profiles&lt;E&gt;&lt;/E&gt; in a single object.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Wed, 25 Nov 2020 01:30:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225595#M3835</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2020-11-25T01:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Profile parameter in a GDL script.</title>
      <link>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225596#M3836</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
There is a sample object somewhere by Graphisoft, but it appears to be alluding me...
&lt;/BLOCKQUOTE&gt;
Check out this thread: &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=56819" target="_blank"&gt;Profiles in GDL&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Wed, 25 Nov 2020 15:07:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225596#M3836</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2020-11-25T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Profile parameter in a GDL script.</title>
      <link>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225597#M3837</link>
      <description>Thanks for the help. Lingwisyer, I couldn't get the code you posted to work but the one in the link regarding 'multiple Complex Profiles' works great. Thank you:&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
There is also an object shared in this &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=66662&amp;amp;start=10" target="_blank"&gt;thread&lt;/A&gt; which is in regards to having multiple &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Complex Profiles&lt;E&gt;&lt;/E&gt; in a single object.
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:32:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225597#M3837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-03T19:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Profile parameter in a GDL script.</title>
      <link>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225598#M3838</link>
      <description>For the script I posted, you need to add &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;myProfileIdx&lt;E&gt;&lt;/E&gt; as a profile variable into the parameters list.&lt;BR /&gt;
&lt;BR /&gt;
I also accidentally left in a section that was specific to my script...&lt;BR /&gt;
&lt;BR /&gt;
Ignore:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;	If GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 5 then
		If rafPro = "Complex" then
				ProWidth = abs(_xMax - _xMin)
				ProHeight = abs(_yMax - _yMin)
				SquareV2 = ProHeight / ( cos(phi) )
		endIf
	endIf&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Fri, 04 Dec 2020 01:24:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-do-I-use-the-Profile-parameter-in-a-GDL-script/m-p/225598#M3838</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2020-12-04T01:24:49Z</dc:date>
    </item>
  </channel>
</rss>

