<?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: Profiles in GDL in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295275#M5803</link>
    <description>Thanks to both of You - thats "the gate" i was looking for! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
    <pubDate>Sat, 08 Jul 2017 16:56:05 GMT</pubDate>
    <dc:creator>Hmooslechner</dc:creator>
    <dc:date>2017-07-08T16:56:05Z</dc:date>
    <item>
      <title>Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295270#M5798</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Has anyone explored the new possibilities to implement profiles in GDL? The GDL-book does just announce it, but there is not a single example how to to it!?!&lt;BR /&gt;
&lt;BR /&gt;
the same in:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/new-features-guide/new-gdl-features-in-archicad-21" target="_blank"&gt;gdl.graphisoft.com/new-features-guide/new-gdl-features-in-archicad-21&lt;/A&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jul 2017 06:00:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295270#M5798</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2017-07-06T06:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295271#M5799</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I was experimenting with it. Works nicely - under the hood the request gets the perimeters (+surfaces of the edges) of all parts of the profile one by one and they could be put to almost all poliline driven commands (for full option the ones with the Material option defined for the faces).&lt;BR /&gt;
The Tube command has its new version allowing the holes as the other commands as well.&lt;BR /&gt;
&lt;BR /&gt;
I can send You an example object so you could sniff around  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Thu, 06 Jul 2017 08:04:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295271#M5799</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2017-07-06T08:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295272#M5800</link>
      <description>You can check the default content for many of the Stair and Railing component types because many of them use Profiles. It could give you some ideas of how they should be implemented.</description>
      <pubDate>Thu, 06 Jul 2017 19:37:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295272#M5800</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2017-07-06T19:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295273#M5801</link>
      <description>Thanks, Piotr Dobrowolski! Yes - i am very interrsted in Your code-samples. &lt;BR /&gt;
&lt;BR /&gt;
To laszlonagy: I have spent just some time to look for it in the stair-components, but i didnt find it yet (so fast). - also, because its hidden in the subroutines in some external GDLs..&lt;BR /&gt;
&lt;BR /&gt;
Why is it so hard for Graphisoft to create a "clean documentation" about such an overwhelming progress? Thats really hard to understand..&lt;BR /&gt;
&lt;BR /&gt;
It seems that Graphisoft is trying to make it "as hard as possible" for little developers like me to understand their GDL-inventions...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Besides that - the new stair and railingtool is really an eye-opener! Thats very near to what i wished for Archicad for the last decade!</description>
      <pubDate>Fri, 07 Jul 2017 06:40:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295273#M5801</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2017-07-07T06:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295274#M5802</link>
      <description>Hmooslechner,&lt;BR /&gt;
&lt;BR /&gt;
Use the "Open Object by Subtype" command of the "Edit GDL Library parts" Toolbar. Then open the following subtype:&lt;BR /&gt;
&lt;BR /&gt;
General GDL Object&amp;gt;Model Element&amp;gt;Building Element&amp;gt;Design Stair&amp;gt;Stair 3D Component&amp;gt;Tread Component&amp;gt;Profiled Tread 21&lt;BR /&gt;
&lt;BR /&gt;
The 3D Script of "Profiled Tread 21" object contains an example for the use of Profiles. Search for this section of the Script:&lt;BR /&gt;

&lt;PRE&gt;"getUserDefProfile":&lt;/PRE&gt;

There you will see that there are multiple REQUEST commands that request data about the Profile and its geometry defined in the Profile Manager. Commands like
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;REQUEST{2} ("Profile_components"...
REQUEST ("Profile_default_geometry"...
REQUEST{3} ("Profile_component_info"...&lt;/PRE&gt;

For additional examples you can check any of those Stair or Railing subtypes that have "Profiled" in the name.&lt;BR /&gt;
&lt;BR /&gt;
But I agree with you, some additional info would be very beneficial.</description>
      <pubDate>Sat, 08 Jul 2017 08:51:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295274#M5802</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2017-07-08T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295275#M5803</link>
      <description>Thanks to both of You - thats "the gate" i was looking for! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
      <pubDate>Sat, 08 Jul 2017 16:56:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295275#M5803</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2017-07-08T16:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295276#M5804</link>
      <description>Sad to say I'm still a little lost/disappointed after looking at the examples.  I was hoping that when Graphisoft said the commands were upgraded to support profiles, that you would just drop a reference to ProfileID in the Tube command or whatever you are using to get the base polyline info.  That would be a slick trick and I realize a lot of work for Graphisoft.  &lt;BR /&gt;
&lt;BR /&gt;
But given what they have provided, I'm still unclear as to how to get the geometry and put into a Tube or Tube{2}.  If you have a simple code example that works, I would be most appreciative to have a look.</description>
      <pubDate>Wed, 04 Oct 2017 13:32:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295276#M5804</guid>
      <dc:creator>jp</dc:creator>
      <dc:date>2017-10-04T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295277#M5805</link>
      <description>jp:&lt;BR /&gt;
&lt;BR /&gt;
Here is an example from Graphisoft with some comments in the script windows.&lt;BR /&gt;
&lt;BR /&gt;
You should update your Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 05 Oct 2017 12:55:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295277#M5805</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2017-10-05T12:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295278#M5806</link>
      <description>Awesome!  Thank you David</description>
      <pubDate>Thu, 05 Oct 2017 13:17:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295278#M5806</guid>
      <dc:creator>jp</dc:creator>
      <dc:date>2017-10-05T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295279#M5807</link>
      <description>Has anyone tried to put a second or third Profile into the "profile_with_tube" script?&lt;BR /&gt;
Sorry don't know which parameters need to be doubled. &lt;BR /&gt;
I tried ..for i to ---next i and changing the Profile...it just overwrites the surfaces...&lt;BR /&gt;
Also a Gosub doesn't work that easy.....&lt;BR /&gt;
&lt;BR /&gt;
Would be great if anyone could help....&lt;BR /&gt;
Working on a window with a custom framing Element...</description>
      <pubDate>Mon, 16 Jul 2018 20:18:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295279#M5807</guid>
      <dc:creator>Lukas Oelmueller</dc:creator>
      <dc:date>2018-07-16T20:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295280#M5808</link>
      <description>&lt;BLOCKQUOTE&gt;lukaso wrote:&lt;BR /&gt;
Has anyone tried to put a second or third Profile into the "profile_with_tube" script?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
A TUBE can only contain one profile.&lt;BR /&gt;
It has two parts - the profile and the path.&lt;BR /&gt;
&lt;BR /&gt;
So you either need completely new TUBE commands for each profile.&lt;BR /&gt;
Or use "PUT" to store the profile points.&lt;BR /&gt;
i.e. if profile 1 PUT ....&lt;BR /&gt;
if profile 2 PUT ....&lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;BR /&gt;
Then in the tube command "GET" the profile points, and set the path.&lt;BR /&gt;
&lt;BR /&gt;
This way you only have the one TUBE command using the same path, but you can swap the different profiles.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 17 Jul 2018 01:13:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295280#M5808</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-07-17T01:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295281#M5809</link>
      <description>Thanx Berry,&lt;BR /&gt;
&lt;BR /&gt;
I'll give it a try&lt;BR /&gt;
&lt;BR /&gt;
Lukas</description>
      <pubDate>Tue, 17 Jul 2018 09:08:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295281#M5809</guid>
      <dc:creator>Lukas Oelmueller</dc:creator>
      <dc:date>2018-07-17T09:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295282#M5810</link>
      <description>Looks like You can't save profiles'  parameters to a parameter tab.</description>
      <pubDate>Tue, 24 Jul 2018 19:56:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295282#M5810</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2018-07-24T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295283#M5811</link>
      <description>&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;
Looks like You can't save profiles'  parameters to a parameter tab.
&lt;/BLOCKQUOTE&gt;

I'm not quite sure what you mean.&lt;BR /&gt;
All of the profile properties are save in the attribute for that profile.&lt;BR /&gt;
If you need to change it then you need to edit it (or duplicate and change it) in the Profile Manager.&lt;BR /&gt;
&lt;BR /&gt;
What is it about the profile that you are trying to save?&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 25 Jul 2018 00:38:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295283#M5811</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-07-25T00:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295284#M5812</link>
      <description>Can you interact with the Profiles stretch regions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Wed, 25 Jul 2018 01:42:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295284#M5812</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-07-25T01:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295285#M5813</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
Can you interact with the Profiles stretch regions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.
&lt;/BLOCKQUOTE&gt;

The overall height and width - yes.&lt;BR /&gt;
The profile (and stretch regions) should behave exactly the same as if you were manually using the profile.&lt;BR /&gt;
&lt;BR /&gt;
As for the new profile modifiers in 22, I don't believe these can be accessed via GDL.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 25 Jul 2018 02:15:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295285#M5813</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-07-25T02:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295286#M5814</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
Can you interact with the Profiles stretch regions?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
The overall height and width - yes.&lt;BR /&gt;
The profile (and stretch regions) should behave exactly the same as if you were manually using the profile.
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
I have not been able to find out how to achieve this...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 30 Jul 2018 06:41:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295286#M5814</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-07-30T06:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295287#M5815</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
I have not been able to find out how to achieve this...
&lt;/BLOCKQUOTE&gt;

I haven't created my own profiled objects from scratch yet, and I assumed you could specify an overall height and width of the profile you want to use.&lt;BR /&gt;
I was a bit wrong there.&lt;BR /&gt;
&lt;BR /&gt;
Have a look at the profiled rail object.&lt;BR /&gt;
This allows you to use any profile for the rail and set the overall size and width you want it to be.&lt;BR /&gt;
&lt;BR /&gt;
It seems that you have to come up with a scaling factor based on the actual profile height (which I am sure you can get from the profile requests) and the size you want to use.&lt;BR /&gt;
Here is a sample bit of the profile rail script showing a few pre-defined profiles.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;if abs(iProfile) = PROFILE_WOOD1 then
													! mirroring irrelevant
													! script coordinates relative to top middle
	xFactor = wProfile / 0.074
	yFactor = hProfile / 0.066
	offsetY = offsetY + hProfile / 2
	yBottom = offsetY * yFactor - hProfile
endif
if abs(iProfile) = PROFILE_WOOD2 then
													! mirroring irrelevant
													! script coordinates relative to top middle
	xFactor = wProfile / 0.07146499997866
	yFactor = hProfile / 0.06114945598568
	offsetY = offsetY + hProfile / 2
	yBottom = offsetY * yFactor - hProfile
endif
if abs(iProfile) = PROFILE_WOOD3 then
													! mirroring irrelevant
												 	! script coordinates relative to bottom middle
	xFactor = wProfile / 0.05
	yFactor = hProfile / 0.01461124862507
	offsetY = (offsetY - hProfile / 2) / yFactor
	yBottom = (0 + offsetY) * yFactor
endif
if abs(iProfile) = PROFILE_WOOD4 then
													! mirroring irrelevant
												 	! script coordinates relative to bottom middle
	xFactor = wProfile / 0.085
	yFactor = hProfile / 0.06147903275841
	offsetY = (offsetY - hProfile / 2) / yFactor
	yBottom = (0 + offsetY) * yFactor
endif&lt;/PRE&gt;

&lt;BR /&gt;
So 'wProfile' and 'hProfile' are the sizes you want it to be.&lt;BR /&gt;
&lt;BR /&gt;
Then when you PUT the profile coordinates, you multiply them by the respective 'xFactor' &amp;amp; 'yFactor'.&lt;BR /&gt;
This should change the size of the profile without altering the path.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 30 Jul 2018 07:29:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295287#M5815</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-07-30T07:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295288#M5816</link>
      <description>I just had a quick play with the tube object that was attached in an earlier post.&lt;BR /&gt;
Seems the scale factor works fine on a rectangular profile, but not so well on a curved profile.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
Obviously the curves need to be handled differently.&lt;BR /&gt;
&lt;BR /&gt;
The "Rail 21/22" does this OK for the pre-defined profiles, but it is is a little hard to dissect the Graphisoft parts sometimes.&lt;BR /&gt;
It is all in there somewhere though.&lt;BR /&gt;
&lt;BR /&gt;
But maybe that is the trick - these are pre-defined profiles.&lt;BR /&gt;
&lt;BR /&gt;
The "Profiled Rail 21/22" uses user defined profiles (from the profile manager) but it seems these can not be resized.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 30 Jul 2018 08:41:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295288#M5816</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-07-30T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Profiles in GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295289#M5817</link>
      <description>Yeah, I figured I could scale them based on their bounding box, but I was hoping it could be restricted to the stretch boundaries instead of uniformly. Oh well, we will just have to put up with stretching the profiles manually in the manager.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 30 Jul 2018 08:59:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Profiles-in-GDL/m-p/295289#M5817</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-07-30T08:59:24Z</dc:date>
    </item>
  </channel>
</rss>

