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

Macro and hotspot 2

Anonymous
Not applicable
Hi guys
I have created a 3D wall element that has 152 difference types. So I decided to use the macro to reduce the job to make them.

But I have a problem with movable hotspot 2. They come up in the right place and I can move them but they go only back the starting point without moving it I will adjust.

Does anyone have an idea what I can do about it.

Thank you in advance
3 REPLIES 3
The key is hotspot ID.
If You have more files called inside another one - You have to make sure to have different IDs of the hotspots.

it may be done arbitrary by assigning say start UNID=10XX for one file and when calling another UNID starts from say 20XX and so on
and You have to add such parameter to the called file eg UNID...and put the correct value for every call.
You can of course pass the right no of the UNID from the called file to the caller after the hotspots numbers are assigned using the "end" command.

Best Regards,
Piotr
Anonymous
Not applicable
Hello Piotr
Thank you for a good answer.
I'm new on using GDL so I tried my way to got these items so far.
I've used Unid in hotspots from 1000 so the next 2000 ie in 1000 up on each of them macro file.

See codes below:

! Center block over the total length.

unID = 1000
HOTSPOT2 ST +AA +TU +0.075 , ST, unID, B, 1+128: unID=unID+1 !!!POINT BASE
HOTSPOT2 ST +AA +TU +0.075, B, unID, B, 2: unID=unID+1 !!!POINT OF MOVEMENT
HOTSPOT2 ST +AA +TU +0.075, -1, unID, B, 3: unID=unID+1 !!! REFERENCE POINT

! Center block central top part.

unID = 2000
ADD2 ST, MK
HOTSPOT2 AA +TU +0.075 , ST, unID, MKEND, 1+128: unID=unID+1 !!!POINT BASE
HOTSPOT2 AA +TU +0.075 , MKEND, unID, MKEND, 2: unID=unID+1 !!!POINT OF MOVEMENT
HOTSPOT2 AA +TU +0.075 , -1, unID, MKEND, 3: unID=unID+1 !!! REFERENCE POINT

I had seen much appreciated if you could make an example of how you call them
as they come in the right place to serve in the item.

Thank you in advance

Laurits
Anonymous
Not applicable
Hmm... many views, zero replies...