License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.
SOLVED!

graphic hotspot with 2 editable directions possible?

Mats_Knutsson
Advisor
Hi,
We have a simple prism object that is editable in the Z-direction via a graphic hotspot. Is it possible to have that same hotspot also editable in the x-direction?
/Mats

MATERIAL materialAttribute_1

resol 36

unID = 1

hotspot c, -b/2, 0, unID, d, 1+128 : unID=unID+1
hotspot c, -b/2, -1, unID, d, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, d, 2 : unID=unID+1


hotspot 0, -b/2, zzyzx, unID, e, 1+128 : unID=unID+1
hotspot -1, -b/2, zzyzx, unID, e, 3+128 : unID=unID+1
hotspot e, -b/2, zzyzx, unID, e, 2 : unID=unID+1

hotspot 0, 0, zzyzx
hotspot 0, -b, zzyzx


rotx 90
cprism_{4} materialAttribute_1, materialAttribute_1, materialAttribute_1, 7,
6, B,
0, 0, 0, 15, materialAttribute_1,
A, 0, 0, 15, materialAttribute_1,
C, D, 0, 15, materialAttribute_1,
E, zzyzx, 0, 15, materialAttribute_1,
0, zzyzx, 0, 15, materialAttribute_1,
0, 0, 0, -1, materialAttribute_1
del 1
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator
Sure.
You need 2 hotspots for each point - one for the x and one for the z.
But the x hotspot need to have the z parameter in it and the z hotspot need the x.

To move the hotspot you have shown ...

hotspot c, -b/2, 0, unID, d, 1+128 : unID=unID+1
hotspot c, -b/2, -1, unID, d, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, d, 2 : unID=unID+1


hotspot 0, -b/2, d, unID, c, 1+128 : unID=unID+1
hotspot -1, -b/2, d, unID, c, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, c, 2 : unID=unID+1

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

View solution in original post

6 REPLIES 6
sinceV6
Advocate
Hi.
Just write the code for the other hotspot so that their positions overlap.

Best regards.
Solution
Barry Kelly
Moderator
Sure.
You need 2 hotspots for each point - one for the x and one for the z.
But the x hotspot need to have the z parameter in it and the z hotspot need the x.

To move the hotspot you have shown ...

hotspot c, -b/2, 0, unID, d, 1+128 : unID=unID+1
hotspot c, -b/2, -1, unID, d, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, d, 2 : unID=unID+1


hotspot 0, -b/2, d, unID, c, 1+128 : unID=unID+1
hotspot -1, -b/2, d, unID, c, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, c, 2 : unID=unID+1

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
Mats_Knutsson
Advisor
Barry wrote:
Sure.
You need 2 hotspots for each point - one for the x and one for the z.
But the x hotspot need to have the z parameter in it and the z hotspot need the x.

To move the hotspot you have shown ...

hotspot c, -b/2, 0, unID, d, 1+128 : unID=unID+1
hotspot c, -b/2, -1, unID, d, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, d, 2 : unID=unID+1


hotspot 0, -b/2, d, unID, c, 1+128 : unID=unID+1
hotspot -1, -b/2, d, unID, c, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, c, 2 : unID=unID+1

Barry.
gr8. will try when I get some time. now preparing for internal IFC-training.
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
Mats_Knutsson
Advisor
Barry wrote:
Sure.
You need 2 hotspots for each point - one for the x and one for the z.
But the x hotspot need to have the z parameter in it and the z hotspot need the x.

To move the hotspot you have shown ...

hotspot c, -b/2, 0, unID, d, 1+128 : unID=unID+1
hotspot c, -b/2, -1, unID, d, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, d, 2 : unID=unID+1


hotspot 0, -b/2, d, unID, c, 1+128 : unID=unID+1
hotspot -1, -b/2, d, unID, c, 3+128 : unID=unID+1
hotspot c, -b/2, d, unID, c, 2 : unID=unID+1

Barry.
You're a gem Barry! I have to admit I didn't understand that you gave me the actual code... right there in front of me... Now I've got it . https://youtu.be/wMjlw6O5bfw
Thanks again.
M
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
Barry Kelly
Moderator
Mats_Knutsson wrote:
Thanks again.
M
You are welcome.

I can't say I have ever seen a dancing Archicad model before.

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
Mats_Knutsson
Advisor
Barry wrote:
Mats_Knutsson wrote:
Thanks again.
M
You are welcome.

I can't say I have ever seen a dancing Archicad model before.

Barry.
It's a Swedish national sport... I was actually in sync but the vidcap program fps is really crap. Made me start to understand why my son is moaning about bad fps when gaming....
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.