cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

3D stretchable hotspots

dhaval7shah
Newcomer
1) How to script editable 3d stretchy hotspots ?
2) I want a 3D pole element with Ellipse at base and circle at top, how should we script it?
Dhaval Shah
Upto AC 22
iMacs and MacBookPros: Mac OS X (10.6 to 10.12, Intel core 2 Quad to i5, i7, 8 GB to 16GB)
Win 10, AMD Opteron 6-Core x 2, 16GB, FirePro W4100 2GB
& ThinkPad E550
& i7, 8GB
3 REPLIES 3
Erich
Booster
First you should look at the GDL Reference Guide available as a pdf from your Help menu.

3D hotspots are written with three lines of code as follows:
	HOTSPOT 0, 0, 0,   unid, var, 1+128 : unid=unid+1 !base
	HOTSPOT 0, 0, var, unid, var,     2 : unid=unid+1 !move
	HOTSPOT 0, 0, -1,  unid, var,     3 : unid=unid+1 !reference
This bit of code will create a hotspot to control the parameter var stretchable in the Z direction. This parameter must also be present in your parameter table. Also note that each hotspot has a unique id number. I find it good practice to define unid=1 at the begining of my scripts and then the the notation
: unid = unid+1
after each hotspot definition to avoid getting duplicate hotspot ids.

As for the sphere/pole/ellipse there are many ways. Look at the SPHERE, ELLIPS and CYLIND commands for a start.

HTH
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
David Maudlin
Rockstar
dhaval7shah wrote:
2) I want a 3D pole element with Ellipse at base and circle at top, how should we script it?
Dhaval:

You should look at the RULED command, page 92 of the GDL Reference Guide, this creates a form with different polygons on each end.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
dhaval7shah
Newcomer
Thanks a lot Erich and David.
Dhaval Shah
Upto AC 22
iMacs and MacBookPros: Mac OS X (10.6 to 10.12, Intel core 2 Quad to i5, i7, 8 GB to 16GB)
Win 10, AMD Opteron 6-Core x 2, 16GB, FirePro W4100 2GB
& ThinkPad E550
& i7, 8GB