<?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: Rotate Lamp Object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159208#M20450</link>
    <description>&lt;BLOCKQUOTE&gt;Dwight wrote:&lt;BR /&gt;How is it that five minutes after I post the answer, thirty people have looked at these rudimentary code tidbits?&lt;BR /&gt;
&lt;BR /&gt;
Is this really that arcane a skill?&lt;/BLOCKQUOTE&gt;

Dwight -&lt;BR /&gt;
&lt;BR /&gt;
Success!  Thanks for the help and step by step directions - it worked like a charm.&lt;BR /&gt;
&lt;BR /&gt;
What would be the steps to include all the original 2D script rather than to delete it?  So we would have the options for fills, overhead lines, etc.?  Or is this too much trouble than its worth?  Seems like maybe I should really look into Objective...&lt;BR /&gt;
&lt;BR /&gt;
Also, I'm assuming we could use the same steps to modify diffusers, speakers, etc.?&lt;BR /&gt;
&lt;BR /&gt;
And yes, I think we could consider the topic of modifying GDL script slightly arcane, especially for those of us who know how to use a powerful software tool like archiCAD, but have little idea as to HOW it actually functions and operates.  I am trained as an architect... not a software engineer...  I will admit,  I do find the script of an object rather intimidating and fear I'll do catastrophic damage to an object rather achieve any desired goal.  I suppose more experiments will help ease this concern.  But, this very reason is what makes this forum such a useful knowledge base.&lt;BR /&gt;
&lt;BR /&gt;
It makes you wonder though, why wouldn't a simple parameter to rotate and object on all axis be included in the default object?  We're certainly not the only ones working w/ slope ceilings are we?   This would be an entirely different conversation though.&lt;BR /&gt;
&lt;BR /&gt;
In any case.  Thanks for the tips - I'm glad someone was able to help me out!</description>
    <pubDate>Wed, 16 Jun 2010 22:47:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-16T22:47:42Z</dc:date>
    <item>
      <title>Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159198#M20440</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Does anyone know how to rotate a standard archiCAD library lamp object (ie.  Fluorescent Recessed 02 13) along the x-axis to accommodate a sloped ceiling?&lt;BR /&gt;
&lt;BR /&gt;
Based on reading other threads about similar topics, I'm not too optimistic.  I've read its possible if you modify the GDL script of the object, but this is a bit beyond me.  If modifying the GDL script is rather straightforward and someone could walk me through it,  I'd really appreciate the help.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:35:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159198#M20440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-15T21:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159199#M20441</link>
      <description>Adding a Rotation Parameter:&lt;BR /&gt;
&lt;BR /&gt;
1: Make the new Object so as not to ruin the original:&lt;BR /&gt;
&lt;BR /&gt;
Place the original object in the plan view, select it and "File&amp;gt;Libraries and Objects&amp;gt;Open Object" &lt;BR /&gt;
&lt;BR /&gt;
"Save As" a new name. Place the new file in a new library folder. Keep the object parameter/script dialog box open.&lt;BR /&gt;
&lt;BR /&gt;
2: Add Parameter:&lt;BR /&gt;
&lt;BR /&gt;
Open the Parameter List, add two parameter values and make them look like this attachment. Play with the bits - you are making an angle parameter for the x and y planes.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/37377i6589138F0DE4C3A7/image-size/large?v=v2&amp;amp;px=999" border="0" alt="step 1 - parameters.jpg" title="step 1 - parameters.jpg" /&gt;</description>
      <pubDate>Wed, 16 Jun 2010 03:11:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159199#M20441</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T03:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159200#M20442</link>
      <description>3: Fixing the 3D script:&lt;BR /&gt;
&lt;BR /&gt;
This is a raw hack, but make the lead-in  for the 3D script look like this attachment&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/8712i7E28543F2C0CD3C2/image-size/large?v=v2&amp;amp;px=999" border="0" alt="step 2 3D script.jpg" title="step 2 3D script.jpg" /&gt;</description>
      <pubDate>Wed, 16 Jun 2010 03:13:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159200#M20442</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T03:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159201#M20443</link>
      <description>Change the 2D script:&lt;BR /&gt;
&lt;BR /&gt;
Throw away the existing script.&lt;BR /&gt;
&lt;BR /&gt;
Add the attached line of code.&lt;BR /&gt;
&lt;BR /&gt;
This merely gives you a modelled representation of the object, not a proper dotted overhead line like you should have. &lt;BR /&gt;
That needs more specific scripting.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Others can help you better than me, but these quick changes will get you a tilted light fixture.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/14733i55FE57A6970E30B5/image-size/large?v=v2&amp;amp;px=999" border="0" alt="step 3 2D script.jpg" title="step 3 2D script.jpg" /&gt;</description>
      <pubDate>Wed, 16 Jun 2010 03:19:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159201#M20443</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T03:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159202#M20444</link>
      <description>NOTE: adding parameters at the end of the parameter list makes the tilt parameters appear beneath the Parameters for Listing Area.&lt;BR /&gt;
&lt;BR /&gt;
If i knew more about this newfangled stuff I could direct you better.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/16960iD4E4AC0D88714F19/image-size/large?v=v2&amp;amp;px=999" border="0" alt="step 4 seeing the result.jpg" title="step 4 seeing the result.jpg" /&gt;</description>
      <pubDate>Wed, 16 Jun 2010 03:20:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159202#M20444</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T03:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159203#M20445</link>
      <description>How is it that five minutes after I post the answer, thirty people have looked at these rudimentary code tidbits?&lt;BR /&gt;
&lt;BR /&gt;
Is this really that arcane a skill?</description>
      <pubDate>Wed, 16 Jun 2010 03:40:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159203#M20445</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T03:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159204#M20446</link>
      <description>Maybe not, but we always appreciate your posts. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; &lt;BR /&gt;
hope I can buy your book soon.</description>
      <pubDate>Wed, 16 Jun 2010 05:48:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159204#M20446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-16T05:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159205#M20447</link>
      <description>&lt;BLOCKQUOTE&gt;Dwight wrote:&lt;BR /&gt;NOTE: adding parameters at the end of the parameter list makes the tilt parameters appear beneath the Parameters for Listing Area.&lt;/BLOCKQUOTE&gt;
In the parameters page when you're editing the object there are double-headed arrows to drag a parameter up or down in the list to the desired location.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Dwight wrote:&lt;BR /&gt;If i knew more about this newfangled stuff I could direct you better.&lt;/BLOCKQUOTE&gt;
&lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 16 Jun 2010 07:04:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159205#M20447</guid>
      <dc:creator>vistasp</dc:creator>
      <dc:date>2010-06-16T07:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159206#M20448</link>
      <description>&lt;BLOCKQUOTE&gt;BenY_Boston wrote:&lt;BR /&gt;Does anyone know how to rotate a standard archiCAD library lamp object (ie.  Fluorescent Recessed 02 13) along the x-axis to accommodate a sloped ceiling?&lt;/BLOCKQUOTE&gt;
Try &lt;A href="http://www.encina.co.uk/objective.html" target="_blank"&gt;OBJECTiVE&lt;/A&gt; if you want a simple, intuitive way to rotate objects like lamps. To rotate, do the following (referring to the attached image):&lt;UL&gt;&lt;LI&gt;1. Select the lamp and use the menu &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;OBJECTiVE &amp;gt; Tools &amp;gt; Rotate&lt;E&gt;&lt;/E&gt;. Click twice to define the axis to rotate the lamp around.&lt;BR /&gt;
&lt;BR /&gt;
2. Then click a third time to define the rotation angle (you can use the standard coordinate input to type an angle too).&lt;BR /&gt;
&lt;BR /&gt;
3. The result in 3D (before and after).&lt;/LI&gt;&lt;/UL&gt;
Note that you can also rotate several lamps at once, and rotate the lamps in section/elevation views (which is often easier because you can align to the ceiling angle).&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/8695i9AC0EAB905CB5B7E/image-size/large?v=v2&amp;amp;px=999" border="0" alt="rotate.jpg" title="rotate.jpg" /&gt;</description>
      <pubDate>Wed, 16 Jun 2010 10:59:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159206#M20448</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-06-16T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159207#M20449</link>
      <description>And considering that over 400 members have viewed my laborious code tweak in just 12 hours, the simplicity of OBJECTIVE should make it in great demand!!!</description>
      <pubDate>Wed, 16 Jun 2010 17:10:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159207#M20449</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159208#M20450</link>
      <description>&lt;BLOCKQUOTE&gt;Dwight wrote:&lt;BR /&gt;How is it that five minutes after I post the answer, thirty people have looked at these rudimentary code tidbits?&lt;BR /&gt;
&lt;BR /&gt;
Is this really that arcane a skill?&lt;/BLOCKQUOTE&gt;

Dwight -&lt;BR /&gt;
&lt;BR /&gt;
Success!  Thanks for the help and step by step directions - it worked like a charm.&lt;BR /&gt;
&lt;BR /&gt;
What would be the steps to include all the original 2D script rather than to delete it?  So we would have the options for fills, overhead lines, etc.?  Or is this too much trouble than its worth?  Seems like maybe I should really look into Objective...&lt;BR /&gt;
&lt;BR /&gt;
Also, I'm assuming we could use the same steps to modify diffusers, speakers, etc.?&lt;BR /&gt;
&lt;BR /&gt;
And yes, I think we could consider the topic of modifying GDL script slightly arcane, especially for those of us who know how to use a powerful software tool like archiCAD, but have little idea as to HOW it actually functions and operates.  I am trained as an architect... not a software engineer...  I will admit,  I do find the script of an object rather intimidating and fear I'll do catastrophic damage to an object rather achieve any desired goal.  I suppose more experiments will help ease this concern.  But, this very reason is what makes this forum such a useful knowledge base.&lt;BR /&gt;
&lt;BR /&gt;
It makes you wonder though, why wouldn't a simple parameter to rotate and object on all axis be included in the default object?  We're certainly not the only ones working w/ slope ceilings are we?   This would be an entirely different conversation though.&lt;BR /&gt;
&lt;BR /&gt;
In any case.  Thanks for the tips - I'm glad someone was able to help me out!</description>
      <pubDate>Wed, 16 Jun 2010 22:47:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159208#M20450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-16T22:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159209#M20451</link>
      <description>I gave you a 'hack' that applies to simple rectangular boxes like lights. The PROJECT2 command in 2D is a bad one since it requires CPU power to rebuild a 2D projection for each instance on the plan, slowing redraw. These are 'heavy' work relative to executing parametric 2D scripts.&lt;BR /&gt;
&lt;BR /&gt;
This approach works with almost everything that doesn't already use the command code and the variables I chose in its 3D script.&lt;BR /&gt;
&lt;BR /&gt;
Someone with more patience than me would need to analyze code changes to fix the 2D code to a sophisticated level...&lt;BR /&gt;
&lt;BR /&gt;
Many users are intimidated by GDL, but it is a very simple and obedient language lacking irregular grammar, eh? And as for being trained as an architect and not a programmer, I sympathize, since to progress as an architect you need to be good at waving your arms and delegating the real work while you vacuum [euphemism] up to clients.&lt;BR /&gt;
&lt;BR /&gt;
You could learn a lot of GDL in an afternoon with David Nicholson-Cole's &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;"Object Making with Archicad."&lt;E&gt;&lt;/E&gt;</description>
      <pubDate>Wed, 16 Jun 2010 23:06:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159209#M20451</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-16T23:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159210#M20452</link>
      <description>&lt;BLOCKQUOTE&gt;BenY_Boston wrote:&lt;BR /&gt;What would be the steps to include all the original 2D script rather than to delete it?  So we would have the options for fills, overhead lines, etc.?  Or is this too much trouble than its worth?&lt;/BLOCKQUOTE&gt;

Ben:&lt;BR /&gt;
&lt;BR /&gt;
You would need to use some trigonometry to calculate the points of the rotated object onto a horizontal surface, not too hard for a rectangle rotated on one axis. With these points, you can then use the 2D commands for lines and fills to get the 2D symbol that meets your needs. As Dwight mentioned, the &lt;FONT color="blue"&gt;PROJECT2&lt;/FONT&gt; command is ok for a few objects, but tremendous overhead if applied to many parts.&lt;BR /&gt;
&lt;BR /&gt;
This would not be a bad exercise for dipping into GDL, but it does take some time and study.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 17 Jun 2010 11:24:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159210#M20452</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2010-06-17T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159211#M20453</link>
      <description>One more little addtion.&lt;BR /&gt;
&lt;BR /&gt;
Instead of replacing the 2D script you can add the following lines at the start of it:&lt;BR /&gt;

&lt;PRE&gt;if abs(rtx)&amp;gt;5 or abs(rty)&amp;gt;5 then
    project2 3, 270, 2
    end
endif&lt;/PRE&gt;

This will leave the normal (and fast!) 2D for the normal placement but use the slower projection for rotated cases.&lt;BR /&gt;
&lt;BR /&gt;
OK, one other thing. If you find objects in the ArchiCAD Library which are usually used in a tilted way report them to GS. For example, we changed the cars for AC13 cause of this.&lt;BR /&gt;
&lt;BR /&gt;
Regs,</description>
      <pubDate>Wed, 23 Jun 2010 14:04:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159211#M20453</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2010-06-23T14:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159212#M20454</link>
      <description>All of them.&lt;BR /&gt;
&lt;BR /&gt;
Except sinks. Sinks need to be level. Unless you are building one of these:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.youtube.com/watch_popup?v=qybUFnY7Y8w" target="_blank"&gt;Rube Goldberg Paint Ball&lt;/A&gt;</description>
      <pubDate>Wed, 23 Jun 2010 16:19:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159212#M20454</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2010-06-23T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159213#M20455</link>
      <description>Halo guys am relatively new in gdl scripting would like to for someone to lead in scripting as which menu will i click to view the window to change a code so as to rotate an object e.g in a flythrough</description>
      <pubDate>Thu, 29 Sep 2011 07:56:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159213#M20455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-29T07:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate Lamp Object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159214#M20456</link>
      <description>Thanks Dwight!&lt;BR /&gt;
&lt;BR /&gt;
Great tip!</description>
      <pubDate>Sun, 15 Dec 2013 14:07:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Rotate-Lamp-Object/m-p/159214#M20456</guid>
      <dc:creator>Achille Pavlidis</dc:creator>
      <dc:date>2013-12-15T14:07:02Z</dc:date>
    </item>
  </channel>
</rss>

