<?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: Archicad 24 - GDL Lamp - Symbol Modification in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375320#M1080</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/8056"&gt;@MetalFingerz&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found I found Lamp_Symbol in the Library manager, but I not sure how to open it for editing from here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaswrigh_0-1680545475710.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35750i5EFE85FDDEC7224E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaswrigh_0-1680545475710.png" alt="jaswrigh_0-1680545475710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 18:25:00 GMT</pubDate>
    <dc:creator>jaswrigh</dc:creator>
    <dc:date>2023-04-03T18:25:00Z</dc:date>
    <item>
      <title>Archicad 24 - GDL Lamp - Symbol Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375304#M1078</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a pretty simple GDL question. I want to modify the Out of the Box lamp objects in GDL code, however I am having trouble pinpointing which parameter(s) control for the symbol line extensions for the RCP Symbol. See example below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35744iC8D01DEE6CFD9881/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;to this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaswrigh_1-1680538719060.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35743i3D372297925EBBDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaswrigh_1-1680538719060.png" alt="jaswrigh_1-1680538719060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is where I have left the same:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaswrigh_2-1680538946408.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35745i81F576886B1368BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaswrigh_2-1680538946408.png" alt="jaswrigh_2-1680538946408.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is where I have played with the parameter numbers, but still have not changed the extension lines.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaswrigh_3-1680539009746.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35746iD1DB6D6E053CED0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaswrigh_3-1680539009746.png" alt="jaswrigh_3-1680539009746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:28:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375304#M1078</guid>
      <dc:creator>jaswrigh</dc:creator>
      <dc:date>2024-09-24T08:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - GDL Lamp - Symbol Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375313#M1079</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/55046"&gt;@jaswrigh&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the 2D script, there is a Call to the "Lamp_symbol" macro in case the symbol is for RCP and that's where the linework you want to change is. Open Lamp_symbol then on line 140, there is a block of code that should be the following :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;if gs_symbtype_2D_m = SYMBOL_RCP then				! RCP Symbol
	if bDirect and rx &amp;gt; -89.99 then
		gosub "arrow"
	else
		if bCeilingLamp then
			line2     0, r*sqr(2), 0, -(r)*sqr(2)
			line2    -(r)*sqr(2), 0, r*sqr(2), 0
		else
			if NOT(bRectSymbol) then
				gosub "sun"
			else
				if iSymbolType = 8 then	line2 -a / 2, 0, a / 2, 0
			endif
		endif
    endif
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to change the two lines where the 'line2' commands are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't forget to duplicate both the macro and the ceiling lamp .gsms so you do not modify the default library.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:17:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375313#M1079</guid>
      <dc:creator>MetalFingerz</dc:creator>
      <dc:date>2023-04-03T17:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - GDL Lamp - Symbol Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375320#M1080</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/8056"&gt;@MetalFingerz&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found I found Lamp_Symbol in the Library manager, but I not sure how to open it for editing from here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaswrigh_0-1680545475710.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35750i5EFE85FDDEC7224E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaswrigh_0-1680545475710.png" alt="jaswrigh_0-1680545475710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 18:25:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375320#M1080</guid>
      <dc:creator>jaswrigh</dc:creator>
      <dc:date>2023-04-03T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - GDL Lamp - Symbol Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375435#M1081</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/55046"&gt;@jaswrigh&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When in a script, you can open another script by selecting its name (between the quotes usually but you can write it somewher as well) and then clicking on "Open Object" under Files / Library and Object menu. Or alternatively, you can use the shortcut that is assigned to that command, usually something like CMD + OPT + O (I think).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For our case, just write Lamp_symbol somewhere or select it in the CALL command to do so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then once upon, after you did the changes needed, do a Save As for that macro and rename it. After that, you will also need to rename the macro in the CALL command (in the Ceiling Lamp .gsm) so it directs to the newly modified macro. Don't forget to Save As the Ceiling Lamp as well so there is no duplicated names in your project and also to reload your library once everything is done.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 09:11:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375435#M1081</guid>
      <dc:creator>MetalFingerz</dc:creator>
      <dc:date>2023-04-04T09:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad 24 - GDL Lamp - Symbol Modification</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375501#M1082</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/8056"&gt;@MetalFingerz&lt;/a&gt;&amp;nbsp;Thanks so much for helping get this to work! And starting to understand how to navigate round GDL files.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 15:04:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-24-GDL-Lamp-Symbol-Modification/m-p/375501#M1082</guid>
      <dc:creator>jaswrigh</dc:creator>
      <dc:date>2023-04-04T15:04:04Z</dc:date>
    </item>
  </channel>
</rss>

