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.

Hotspots stop working

derekjackson
Advocate
Hi,
I'm trying to get my head round hotspot to make my object stretchy, but they seem to stop working at random...

This is my 3D code:
HOTSPOT 0, 0, 0
HOTSPOT A, 0, 0
HOTSPOT A, B, 0
HOTSPOT 0, B, 0
HOTSPOT 0, 0, zzyzx
HOTSPOT A, 0, zzyzx
HOTSPOT A, B, zzyzx
HOTSPOT 0, B, zzyzx
HOTSPOT A/2, B/2, zzyzx

! Walls
material mat_walls
BLOCK A, B, zzyzx

! Roof
!material mat_roof
IF r_type = "Pitch" THEN	! Pitched Roof

	ADDz zzyzx
	ROTx 90

	cPRISM_ mat_walls, mat_walls, mat_roof, 4, -B,
		0,0,15,
		A/2,r_height,15,
		A,0,15,
		0,0,15

	IF r_overhang > 0 THEN
		material mat_roof
		ADDz r_overhang
		PRISM 9, -(B + (2*r_overhang)), 
			0,0,
			-r_overhang,0,
			-r_overhang,r_overhang,
			A/2,r_total_height+r_overhang,
			A+r_overhang,r_overhang,
			A+r_overhang,0,
			A, 0,
			A/2,r_height,
			0,0
		DEL 1
	ENDIF

	DEL 2
ENDIF
It works fine unless r_overhang is anything other than 0 - then all of a sudden it stops being stretchable. Any ideas why this might happen?

Thanks,

Derek
1 REPLY 1
Anonymous
Not applicable
Hi Derek,

I'd use the dynamic hotspots (GDL Ref Manual, page 133). They are much more reliable.

HTH.

p.s.: Also check this AC9 Landscaping house made by Dragan Lazarevic. It seems to be what you are looking for.
Learn and get certified!