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

Rotating 3D hotspots wiht the ROT command

Anonymous
Not applicable
I added a ROT command to the 3D Script and a xrot parameter. I can "invert" Simpson bucket (one object) and straps (another object). The 3D selection hotspots do not rotate. Is there a way to have the hotspots also rotate with the object?

Rot 3D hotspots.JPG
8 REPLIES 8
Anonymous
Not applicable
Hello Jay,
I am a bit confused.
You say "I can not "invert" Simpson bucket (one object) and straps (another object)" and then you say
"Is there a way to have the hotspots also rotate with the object" implying that you can rotate the object.
Your image seems to show that you have successfully rotated
the post cap. The hotspots I am seeing may be the default
zzyzx hotspots. I do know that, if coded correctly, 3d hotspots
can be rotated along with the rest of the object but you might
consider using the MULz -1 command if you want to "invert" an object.
Peter Devlin
Aussie John
Newcomer
Jay wrote:
I added a ROT command to the 3D Script and a xrot parameter. I can not "invert" Simpson bucket (one object) and straps (another object). The 3D selection hotspots do not rotate. Is there a way to have the hotspots also rotate with the object?
You probably have the command in the wrong place. Any code to see?
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]
Frank Beister
Moderator
I guess the object uses automatic hotspots or "hotspots of 2D". The objects bottom is now top and the new bottom is in the opposit of the former top. Automatic hotspots are not generated by the model, but AFAIK by A,B and ZZYZX. Your object is now -ZZYZX high. You need to add "manual" hotspot commands or add an ADD-command before or after ROTx. Second is better, because it keeps objects coordinates (elevation/height) in settings correct.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Aussie wrote:
Jay wrote:
I added a ROT command to the 3D Script and a xrot parameter. I can not "invert" Simpson bucket (one object) and straps (another object). The 3D selection hotspots do not rotate. Is there a way to have the hotspots also rotate with the object?
You probably have the command in the wrong place. Any code to see?
Here is the Code from the 3D Script

! Document name:
!
!
! Name : CCQ6b.gsm
! Date : Thursday, May 10, 2007
! Version : 10.00
! Written by ArchiCAD
!

mulx A/0'-11.0000"
muly B/0'-5.7782"
mulz ZZYZX/0'-6.7960"
addx 0'-11.0000"
addy 0'-2.8875"
rotx xRot
rotz 180
body -1
model solid
resol 36
GLOB_SCRIPT_TYPE = 3
GLOB_CONTEXT = 3
GLOB_SCALE = 48
GLOB_NORTH_DIR = 48.6392
GLOB_DRAWING_BGD_PEN = 91
GLOB_FRAME_NR = -1
GLOB_EYEPOS_X = -41'-11.9805"
GLOB_EYEPOS_Y = 47'-8.2682"
GLOB_EYEPOS_Z = 5'-0.0000"
GLOB_TARGPOS_X = -13'-5.8071"
GLOB_TARGPOS_Y = 29'-7.6630"
GLOB_TARGPOS_Z = 5'-0.0000"
GLOB_SUN_AZIMUTH = 353.8218164259
GLOB_SUN_ALTITUDE = 35
body -1
body -1
body -1
body -1
body -1
body -1
body -1
body -1
body -1
body -1
body -1
body -1
GLOB_HSTORY_HEIGHT = 140'-4.0000"
!!Side2
pen 6
GLOB_LAYER = "ArchiCAD"
GLOB_ID = "Side2"
GLOB_INTID = 10869
body -1
addz 0'-2.7500"
cprism_ "Mtl-Stainless Steel", "Mtl-Stainless Steel", "Mtl-Stainless Steel",
329, 0'-0.1406",
0'-0.0000", 0'-0.0000", 15,
0'-0.0000", 0'-6.4210", 15,

(I deleted some of the geometric coding)

0'-9.4995", 0'-4.1867", -1
del 1
body -1
!!Side1
GLOB_ID = "Side1"
GLOB_INTID = 10868
body -1
addz -0'-2.8875"
cprism_ "Mtl-Stainless Steel", "Mtl-Stainless Steel", "Mtl-Stainless Steel",
329, 0'-0.1406",
0'-0.0000", 0'-0.0000", 15,

(I deleted some of the geometric coding)

0'-9.4995", 0'-4.1867", -1
del 1
body -1
!!Bottom
pen 41
GLOB_ID = "Bottom"
GLOB_INTID = 10870
body -1
addz -0'-2.7469"
cprism_ "Mtl-Stainless Steel", "Mtl-Stainless Steel", "Mtl-Stainless Steel",
5, 0'-5.4969",
0'-0.0000", 0'-0.2500", 15,
0'-0.0000", 0'-0.0000", 15,
0'-11.0000", 0'-0.0000", 15,
0'-11.0000", 0'-0.2500", 15,
0'-0.0000", 0'-0.2500", -1
del 1
body -1
Anonymous
Not applicable
Here is the Slab that where saved to create the object.
CCQ6.JPG
Anonymous
Not applicable
WOW no Debug Error
Anonymous
Not applicable
Hello Jay,
Frank is correct. The hotspots you see are the default X,Y,Z hotspots
generated by the program not by the GDL code for the object.
As Frank says, if you want 3D hotspots to rotate with the
object you will have to script them. One thing that is useful
when scripting 3D hotspots is to use the SPHIRE command
to make small sphires at the same positions as the 3D hotspots
because you can't see 3D hotspot in the library part editing
3D window. After you are sure the hotspots are in the correct
position you can delete or comment out the SPHERE commands.

If you just want to get rid of the hotspots that are floating
above the object you could comment out the line
mulz ZZYZX/0'-6.7960" by putting a few exclamation points
in front of the line like this.
!!!!mulz ZZYZX/0'-6.7960"
Then select the object, go to its settings dialog and make
the "Z" value zero.
This will eliminate the 3D hotspots floating above the object
Peter Devlin
Anonymous
Not applicable
Peter wrote:
Hello Jay,
I am a bit confused.
You say "I can not "invert" Simpson bucket (one object) and straps (another object)" and then you say
"Is there a way to have the hotspots also rotate with the object" implying that you can rotate the object............Peter Devlin
Sorry for the confusion. I have edited the post to remove the extra "not".