<?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: Moving multiplied element with hotspots in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358787#M1347</link>
    <description>&lt;P&gt;Thank you for the replay.&lt;/P&gt;&lt;P&gt;Yes overall length of the box would change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your answer I must admit it is a bit abstract for me in the sense that I don't really know how to implement it technically at this point, being that I started on my GDL journey two weeks ago and that I don't have prior coding experience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you give some concrete code structure that I could try, so that I could learn from the example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Sat, 15 Oct 2022 15:41:10 GMT</pubDate>
    <dc:creator>ArchiMind</dc:creator>
    <dc:date>2022-10-15T15:41:10Z</dc:date>
    <item>
      <title>Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358276#M1340</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being that I am still new at ways of GDL, I could use assistance.&lt;/P&gt;&lt;P&gt;I am trying to create simple cells that can be moved with hotspots. I understand the basic concept of how to make them move, but the question is how to make them move when they are multiplied. To be precise how to move them individually with different values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I made&amp;nbsp; Value 1 and 2 move, but the Value 3 is for me brain teaser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArchiMind_0-1665332630097.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30495i7DF28E6D8482C749/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArchiMind_0-1665332630097.png" alt="ArchiMind_0-1665332630097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the following the&amp;nbsp; code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hsid=1
RECT2 A,0, 0,B
RECT2 A-margin,margin, margin,B-margin

!Title cell

Fill hatch1
POLY2_b 5,7,hatch_pen1,hatch_pen_background1,

margin,B-margin,1,
A-margin,B-margin,1,
A-margin,B-margin-title,1,
margin,B-margin-title,1,
margin,B-margin,1


Y1=B-margin-title

!Subtitle INSTALATION block
POLY2_b 5,7,hatch_pen2,hatch_pen_background2,

margin,Y1,1,
A-margin,Y1,1,
A-margin,Y1-subtitle,1,
margin,Y1-subtitle,1,
margin,Y1,1

!=============== INSTALATION NETO VALUE ===============!
!======================================================!

Y2=Y1-subtitle
Y3=Y2-YC

FOR n=1 TO 3 STEP 1

!Total VALUE cell

Fill hatch3
POLY2_b 5,7,hatch_pen3,hatch_pen_background3,

margin,Y3,1,
A-margin,Y3,1,
A-margin,Y3-value,1,
margin,Y3-value,1,
margin,Y3,1

ADD2 0, -value-YC1
NEXT n
DEL 3


!HOTSPOT VALUE CELL

!========== VALUE 1 =========!
HOTSPOT2 margin,		Y2, 	hsid+1, YC, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 margin,		1, 		hsid+1, YC, 3:		hsid=hsid+1		!referece
HOTSPOT2 margin,		Y3, 	hsid+1, YC, 2:		hsid=hsid+1		!moving



!========== VALUE 2 =========!
HOTSPOT2 margin,		Y3-value,		hsid+1, YC1, 1+128:	hsid=hsid+1			!base (hidden)
HOTSPOT2 margin,		1, 				hsid+1, YC1, 3:		hsid=hsid+1			!referece
HOTSPOT2 margin,		Y3-value-YC1,	hsid+1, YC1, 2:		hsid=hsid+1			!moving



!========== VALUE 3 =========!
HOTSPOT2 margin,		Y3-value-YC1-value, 			hsid+1, YC2, 1+128:hsid=hsid+1		!base (hidden)
HOTSPOT2 margin,		1, 								hsid+1, YC2, 3:	hsid=hsid+1			!referece
HOTSPOT2 margin,		Y3-value-YC1-value-YC2, 		hsid+1, YC2, 2:	hsid=hsid+1			!moving&lt;/LI-CODE&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArchiMind_1-1665333274936.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30496i35CFC9461AEB5424/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArchiMind_1-1665333274936.png" alt="ArchiMind_1-1665333274936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I would like to know is it possible to embeed schedule information in GDL object, in that sence that we can create&amp;nbsp; graphical more appealing area schedule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Stefan Veselinović&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2022 16:35:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358276#M1340</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-10-09T16:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358660#M1342</link>
      <description>&lt;P&gt;The hotspots are fairly simple, but as far as I know the only way to get any schedule data into a gdl object will be with python.&amp;nbsp; You can't even use properties in gdl yet.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 21:28:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358660#M1342</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2022-10-13T21:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358698#M1343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use ADD2 between different hotspots to make their base and value clearer. The reference hotspot should be in the other direction from base than moving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GDL objects don't know about other GDL objects, scheduling is not possible.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 08:12:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358698#M1343</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-10-14T08:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358724#M1344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you Peter for the explanation.&lt;/P&gt;&lt;P&gt;In the meantime, I restructured the code so I could learn to use subroutines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to accomplish most of the things that imagined, but I have difficulty to figure how to move a certain hotspot, so it deducts from the B value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Picture of explanation what I am struggling with&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArchiMind_0-1665746261218.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30630i7FA0C96B53F8CA7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArchiMind_0-1665746261218.png" alt="ArchiMind_0-1665746261218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Object code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hsid=1
RECT2 A,0, 0,B
RECT2 A-margin,margin, margin,B-margin

HOTLINE2 0,0, 0,B
HOTLINE2 0,B, A,B
HOTLINE2 A,B, A,0
HOTLINE2 A,0, 0,0

HOTLINE2 margin,margin, margin,B-margin
HOTLINE2 margin,B-margin, A-margin,B-margin
HOTLINE2 A-margin,B-margin, A-margin,margin
HOTLINE2 A-margin,margin, margin,margin

HOTSPOT2 0,0

!========== GS A direction RIGHT CORNER =========!
HOTSPOT2 0,		0, 		hsid+1, A, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 0,		-1, 	hsid+1, A, 3:		hsid=hsid+1		!referece
HOTSPOT2 A,		0, 		hsid+1, A, 2:		hsid=hsid+1		!moving

!========== GS B direction RIGHT CORNER =========!
HOTSPOT2 A,		0, 		hsid+1, B, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 0,		0, 		hsid+1, B, 3:		hsid=hsid+1		!referece
HOTSPOT2 A,		B, 		hsid+1, B, 2:		hsid=hsid+1		!moving


!========== GS B direction LEFT CORNER =========!
HOTSPOT2 0,		0, 		hsid+1, B, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 0,		0, 		hsid+1, B, 3:		hsid=hsid+1		!referece
HOTSPOT2 0,		B, 		hsid+1, B, 2:		hsid=hsid+1		!moving


!=============== TITLE CELL ==============================!
!======================================================!

Fill hatch1
POLY2_b 5,7,hatch_pen1,hatch_pen_background1,

margin,B-margin,1,
A-margin,B-margin,1,
A-margin,B-margin-title,1,
margin,B-margin-title,1,
margin,B-margin,1


!=============== BLOCK 1 ==============================!
!======================================================!
!HOTSPOT2 margin,margin+value+tvalue

ADD2 0,B-margin-title-subtitle
GOSUB "SUBTITLE"
DEL 1

ADD2 0,B-margin-title-subtitle-CELLheight
GOSUB "PARAMETARS"
DEL 1

ADD2 0, B-margin-title-subtitle-CELLheight-block1-value
GOSUB "VALUE"
DEL 1

ADD2 0,B-margin-title-subtitle-CELLheight-block1-value-subtitle
GOSUB "SUBTITLE"
DEL 1

ADD2 0,B-margin-title-subtitle-CELLheight-block1-value-subtitle-CELLheight
GOSUB "PARAMETARS"
DEL 1


!========== BLOCK 1 GS UPPER PART =========!
ADD2 0,B-margin-title-subtitle-CELLheight
HOTSPOT2 margin,		0, 					hsid+1, block1, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 margin,		1, 					hsid+1, block1, 3:		hsid=hsid+1		!referece
HOTSPOT2 margin,		-block1, 			hsid+1, block1, 2:		hsid=hsid+1		!moving
DEL 1

Y1=value+subtitle+CELLheight

!========== BLOCK 1 GS LOVWER PART =========!
ADD2 0,B-margin-title-subtitle-CELLheight
HOTSPOT2 margin,		-Y1, 				hsid+1, block1, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 margin,		1, 					hsid+1, block1, 3:		hsid=hsid+1		!referece
HOTSPOT2 margin,		-Y1-block1, 		hsid+1, block1, 2:		hsid=hsid+1		!moving
DEL 1


!=============== BLOCK 2 ==============================!
!======================================================!

ADD2 0, B-margin-title-subtitle-CELLheight-block2-value
GOSUB "VALUE"
DEL 1

ADD2 0,	B-margin-title-subtitle-CELLheight-block2-value-subtitle
GOSUB "SUBTITLE"
DEL 1

ADD2 0,	B-margin-title-subtitle-CELLheight-block2-value-subtitle-CELLheight
GOSUB "PARAMETARS"
DEL 1

!========== BLOCK 2 GS UPPER PART =========!

ADD2 0, B-margin-title-subtitle-CELLheight
HOTSPOT2 margin,		0, 			hsid+1,		block2, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 margin,		1, 			hsid+1, 	block2, 3:		hsid=hsid+1		!referece
HOTSPOT2 margin,		-block2, 	hsid+1, 	block2, 2:		hsid=hsid+1		!moving
DEL 1

!========== BLOCK 2 GS LOWER PART =========!

ADD2 0,B-margin-title-subtitle-CELLheight
HOTSPOT2 margin,		-Y1, 		hsid+1,		block2, 1+128:	hsid=hsid+1		!base (hidden)
HOTSPOT2 margin,		1, 			hsid+1, 	block2, 3:		hsid=hsid+1		!referece
HOTSPOT2 margin,		-Y1-block2, hsid+1, 	block2, 2:		hsid=hsid+1		!moving
DEL 1

!=============== BLOCK 3 ==============================!
!======================================================!

ADD2 0, margin+tvalue
GOSUB "VALUE"
DEL 1

ADD2 0,margin
GOSUB "TVALUE"
DEL 1


END

!========= SUBROUTINES ============
!=====================================================
"SUBTITLE":
!=====================================================
Fill hatch2
POLY2_b 5,7,hatch_pen2,hatch_pen_background2,

margin,subtitle,1,
A-margin,subtitle,1,
A-margin,0,1,
margin,0,1,
margin,subtitle,1

RETURN

!=====================================================
"VALUE":
!=====================================================
Fill hatch3
POLY2_b 5,7,hatch_pen3,hatch_pen_background3,

margin,value,1,
A-margin,value,1,
A-margin,0,1,
margin,0,1,
margin,value,1

HOTLINE2 margin,value, A-margin,value
HOTLINE2 margin,0, A-margin,0
RETURN

!=====================================================
"TVALUE":
!=====================================================
Fill hatch4
POLY2_b 5,7,hatch_pen4,hatch_pen_background4,

margin,0,1,
margin,tvalue,1,
A-margin,tvalue,1,
A-margin,0,1,
margin,0,1

RETURN


!!=====================================================
"PARAMETARS":
!!=====================================================


ADD2 margin,0
RECT2 0,0, CELLroom,CELLheight
HOTLINE2 0,0, CELLroom,0

ADD2 CELLroom, 0
RECT2 0,0, 	CELLwall,CELLheight
HOTLINE2 0,0, CELLwall,0
DEL 1

ADD2 CELLroom+CELLwall, 0
RECT2 0,0, 	CELLfloor,CELLheight
HOTLINE2 0,0, CELLfloor,0
DEL 1

ADD2 CELLroom+CELLwall+CELLfloor, 0
RECT2 0,0, 	CELLceling,CELLheight
HOTLINE2 0,0, CELLceling,0
DEL 1

ADD2 CELLroom+CELLwall+CELLfloor+CELLceling, 0
RECT2 0,0, 	CELLperimeter,CELLheight
HOTLINE2 0,0, CELLperimeter,0
DEL 1


ADD2 CELLroom+CELLwall+CELLfloor+CELLceling+CELLperimeter, 0
RECT2 0,0, 	CELLarea,CELLheight
HOTLINE2 0,0, CELLarea,0
DEL 1

DEL 1
RETURN&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 11:21:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358724#M1344</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-10-14T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358786#M1346</link>
      <description>&lt;P&gt;It looks like it should change the overall length of the box too?&lt;/P&gt;
&lt;P&gt;Then you have to synchronize B with the edited length in the parameter script using &lt;A href="https://gdl.Graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_self"&gt;GLOB_MODPAR_NAME&lt;/A&gt;. When the user edits one of them, the other has to be re-calculated.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 15:11:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358786#M1346</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-10-15T15:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358787#M1347</link>
      <description>&lt;P&gt;Thank you for the replay.&lt;/P&gt;&lt;P&gt;Yes overall length of the box would change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your answer I must admit it is a bit abstract for me in the sense that I don't really know how to implement it technically at this point, being that I started on my GDL journey two weeks ago and that I don't have prior coding experience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you give some concrete code structure that I could try, so that I could learn from the example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 15:41:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358787#M1347</guid>
      <dc:creator>ArchiMind</dc:creator>
      <dc:date>2022-10-15T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Moving multiplied element with hotspots</title>
      <link>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358922#M1348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;With GDL users can change only one parameter at a time (except transferring settings and setting array parameters, but that is a more advanced topic), after each change the scripts will be executed. When any parameter's change (either from UI or hotspot) should affect other parameters' values, these changes have to be calculated in the parameter script. Your script can decide what calculations need to be done based on GLOB_MODPAR_NAME global variable, which is filled with the last changed parameter's name &lt;FONT size="2"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(case-sensitive)&lt;/FONT&gt;&lt;FONT size="4"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The linked article has an example under &lt;A href="https://gdl.Graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_blank" rel="noopener"&gt;"Displaying custom parameters in tracker"&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 11:48:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Moving-multiplied-element-with-hotspots/m-p/358922#M1348</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-10-17T11:48:55Z</dc:date>
    </item>
  </channel>
</rss>

