cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

graphic hotspot length + rotation

JGoode
Advocate
I would like a graphic hotspot that can extend in one direction and also rotate around the base.

Is there any way that I can achieve this with one hotspot?

Thanks
ArchiCAD 23

Windows 10
3 REPLIES 3
Barry Kelly
Moderator
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.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
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-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Barry Kelly
Moderator
Lingwisyer wrote:
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?
That is the problem.
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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Learn and get certified!