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

3D hotspots - something odd?

Aussie John
Newcomer
two parameters bm_wdth and Bm_dpth


unid=1


ADDx a/2
ADDy bm_wdth
hotspot 0,0,0,unid,bm_dpth,1+128:unid=unid+1
hotspot 0,0,-bm_dpth,unid,bm_dpth,2:unid=unid+1
hotspot 0,0,.1,unid,bm_dpth,3:unid=unid+1
DEL 1
ADDz -bm_dpth
hotspot 0,0,0,unid,bm_wdth,1+128:unid=unid+1
hotspot 0,bm_wdth,0,unid,bm_wdth,2:unid=unid+1
hotspot 0,-.1,0,unid,bm_wdth,3:unid=unid+1
DEL 1
DEL 1

ROTy 90

PRISM_ 5,a,
0,0,15,
0,BM_wdth,15,
BM_dpth,BM_wdth,15,
BM_dpth,0,15,
0,0,15

DEL 1


The hotspots drag in section but the value always return to the original. Of course they work fine if i adjust in the parameters.

Thanks - I am going nuts
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]
3 REPLIES 3
Barry Kelly
Moderator
Aussie wrote:
two parameters bm_wdth and Bm_dpth


unid=1


ADDx a/2
ADDy bm_wdth
hotspot 0,0,0,unid,bm_dpth,1+128:unid=unid+1
hotspot 0,0,-bm_dpth,unid,bm_dpth,2:unid=unid+1
hotspot 0,0,.1,unid,bm_dpth,3:unid=unid+1
DEL 1
ADDz -bm_dpth
hotspot 0,0,0,unid,bm_wdth,1+128:unid=unid+1
hotspot 0,bm_wdth,0,unid,bm_wdth,2:unid=unid+1
hotspot 0,-.1,0,unid,bm_wdth,3:unid=unid+1
DEL 1
DEL 1

ROTy 90

PRISM_ 5,a,
0,0,15,
0,BM_wdth,15,
BM_dpth,BM_wdth,15,
BM_dpth,0,15,
0,0,15

DEL 1


The hotspots drag in section but the value always return to the original. Of course they work fine if i adjust in the parameters.

Thanks - I am going nuts
Works fine in 3D in Archicad 8.1.
In section it depends on the view you have.
Anything from the front or rear won't work because one of the stretchy hotspots is working in the Y-axis so can't be stretched.

Look at it from the side an all is fine.

Is this what you are finding?

If so you will need to make two separate hotspots.

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
Anonymous
Not applicable
Aussie wrote:
The hotspots drag in section but the value always return to the original. Of course they work fine if i adjust in the parameters.
John,
In 3D, if you have two hotspots overlaping, the result will move anyway in space, and you can't "constraint" the moving.
Separate them, and each one will stretch as expected.

If for any reason you can't separate them, use this tip from Oleg Schmidt.

x = REQUEST("Clean_intersections", "", state)

if state then
! ----- depth
hotspot A/2, bm_wdth, 0 , unid, bm_dpth, 1+128 : unid=unid+1 ! base
hotspot A/2, bm_wdth, 1 , unid, bm_dpth, 3 : unid=unid+1 ! ref
hotspot A/2, bm_wdth, -bm_dpth, unid, bm_dpth, 2 : unid=unid+1 ! moving
else
! ----- width
hotspot A/2, 0 , -bm_dpth, unid, bm_wdth, 1+128 : unid=unid+1 ! base
hotspot A/2, -1 , -bm_dpth, unid, bm_wdth, 3 : unid=unid+1 ! ref
hotspot A/2, bm_wdth, -bm_dpth, unid, bm_wdth, 2 : unid=unid+1 ! moving
endif


According to "Walls & Beams clean junction" (Cmd+D) in Options menu,
you will switch from one to the other hotspot.
This works in 2D/3D. Just neeed a rebuild to update the change.
Aussie John
Newcomer
Thanks guys. In the end my coding was correct but for some reason it wasnt working in the library part. I copy and pasted to a fresh library part, recreated all of the parameters and now it works!! - no changes to the code. Go figure
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]