Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

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

HOTSPOT QUESTION

Anonymous
Not applicable
Hello attached is an image which best describes my situation sorry my GDL knowledge is very limited but I can still make basic parametric objects

basically i require a 3d object with a 2d drawing in a separate location, any distance from the base point of the 3d object..I need to be able to move and arrange the 2d and pull it around via a hotspot but i just don't understand the line of code i require.

so far i have tried to understand the use of hotspots2 but to no avail i have experimented with a few things but just need a nudge here is one example

ADD2 6,6
unID = 1
HOTSPOT2 0,0,unID : unID=unID+1
RECT2 0,0,B,A

Kindest regards

Dale

SCREEN SHOT.jpg
4 REPLIES 4
Jochen Suehlo
Moderator
There are 2 ways to do this:
a) use the stretchable a/b Rectangle

try this script:
PROJECT2 3,270,2   !(Projection of the 3D-Part in the right lower corner)

HOTSPOT2 0,0
HOTSPOT2 -a,0
HOTSPOT2 -a,b
HOTSPOT2 0,b

RECT2 -a,b,-a+1,b-1   ! (2D-Rect in the upper left corner)
A and B are set to 10 meters

b) use intelligent hotspots.
example:

HOTSPOT2 sideX, -0.1, 	1, sideY, 3	!Referenz
HOTSPOT2 sideX, 0, 		2, sideY, 1+128	!Basis
HOTSPOT2 sideX, sideY, 	3, sideY, 2	!Beweger

HOTSPOT2 -0.1, 		sideY, 4, sideX, 3
HOTSPOT2 0, 		sideY, 5, sideX, 1+128
HOTSPOT2 sideX, 	sideY, 6, sideX, 2
sideX and sideY are 2 length type parameters.
They can be used to move the left upper corner.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Erich
Booster
The electrigon object found in the depository Here uses the second method to do just what you are wanting since there was a need to move the 2D symbol separately from the placement of the object in 3D.

Take a look at the object to see how it was accomplished.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
wow thanks heaps Joachim Suehlo and Erich. The intelligent hotspot sample Joachim was what i was after.. i have no idea how it works by looking at it. i wish i did, but it has solved a problem thank you very much
Barry Kelly
Moderator
dbroughton wrote:
i have no idea how it works by looking at it. i wish i did
Have a look at the "Rabbit Hole" link in Erich's signature.
It is explained very well there in his blog how the hotspots work.
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