graphic hotspot length + rotation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-12-05 12:15 PM
‎2018-12-05
12:15 PM
Is there any way that I can achieve this with one hotspot?
Thanks
ArchiCAD 23
Windows 10
Windows 10
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-12-06 03:46 AM
‎2018-12-06
03:46 AM
I don't think this is possible - but if I am wrong please let me know.
You can stretch two lengths with what appears to be one hotspot by adding the x-length in the y stretchy hotspot and the y-length in the x stretchy hotspot.
The problem with an angle and length is you can add the length into the angle stretchy hotspot, but you can add the angle into the length stretchy hotspot.
At least that is the way I see it.
Barry.
You can stretch two lengths with what appears to be one hotspot by adding the x-length in the y stretchy hotspot and the y-length in the x stretchy hotspot.
The problem with an angle and length is you can add the length into the angle stretchy hotspot, but you can add the angle into the length stretchy hotspot.
At least that is the way I see it.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-12-06 05:11 AM
‎2018-12-06
05:11 AM
Barry wrote:
The problem with an angle and length is you can add the length into the angle stretchy hotspot, but you can add the angle into the length stretchy hotspot.
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-12-06 06:18 AM
‎2018-12-06
06:18 AM
Lingwisyer wrote:That is the problem.
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?
The length hotspot can not reference the rotation.
Try this - works fine as two hotspots.
Create a 'length' and 'angle' parameter
HOTSPOT2 0,0, HSID
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 0,0,HSID,angle,6 !centre !!512 flag for clockwise rotation
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 (length-off_angle_hs),0,HSID,angle,4+128 !base
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 (length*0.9)*COS(angle),(length*0.9)*SIN(angle),HSID,angle,5 !stretchy hotspot
HSID=HSID+1 !increase ID for next hotspot
ROT2 angle
HOTSPOT2 0,0, HSID, length,1+128 !base
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 length,0, HSID, length,2 !stretchy hotspot
HSID=HSID+1 !increase ID for next hotspot
HOTSPOT2 -1,0, HSID, length,3 !reference
HSID=HSID+1 !increase ID for next hotspot
LINE2 0,0,length,0
Now change 'length*0.9' in the script to just 'length' or 'length *1.0'
You can still stretch the length but not the angle.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11