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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

GDL: Edges & Centre Points

Lingwisyer
Guru
Hi all,

Is there a way to get edge and centre line snaps when using a Project2? Or do all the lines need to be scripted in 2D?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator
As far as I know the hotspots and hotlines need to be scripted in 2D.
Which can be tricky if you are trying to exactly match what you are projecting from 3D (depending on how complex it is).

It would be great if we had a 'show 3D hotspots in 2D' parameter like we do for 2D hotspots in 3D.

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

5 REPLIES 5
Solution
Barry Kelly
Moderator
As far as I know the hotspots and hotlines need to be scripted in 2D.
Which can be tricky if you are trying to exactly match what you are projecting from 3D (depending on how complex it is).

It would be great if we had a 'show 3D hotspots in 2D' parameter like we do for 2D hotspots in 3D.

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
Durval
Enthusiast
Barry wrote:
It would be great if we had a 'show 3D hotspots in 2D' parameter like we do for 2D hotspots in 3D.

Actually, there is a way to do this: PROJECT2{3}. From the GDL Reference Guide:

PROJECT2{3}
PROJECT2{3} projection_code, angle, method, parts [, backgroundColor,
fillOrigoX, fillOrigoY, filldirection][[,]
PARAMETERS name1=value1, ..., namen=valuen]
...
parts: defines the parts to generate. The 1+2+4+8+16+32 value means all parts.
parts = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6, where each j can be 0 or 1.
...
j5: project 3D hotspots as static 2D hotspots,
--- www.dtabach.com.br ---
AC 24 BR – MacBook Pro 2,9 GHz Intel Core i7 16GB RAM Mac OS 10.14
Barry Kelly
Moderator
Thanks Durval.
I hope this works for Ling.
I must investigate these new project2 varieties.
I don’t use them often and if I do have just used the old original one.

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
Durval
Enthusiast
Barry wrote:
Thanks Durval.
I hope this works for Ling.
I must investigate these new project2 varieties.
I don’t use them often and if I do have just used the old original one.

Barry.
These commands are new to me also. They look powerful, but complex.
--- www.dtabach.com.br ---
AC 24 BR – MacBook Pro 2,9 GHz Intel Core i7 16GB RAM Mac OS 10.14
Lingwisyer
Guru
I was coming back to this object and I realised that I had already scripted all of my hotspots, so I just added hotlines between those same nodes. Did not need to work out new coordinates so that was easy enough.

I did consider using Project2{3} but I have hotspots that do not always line up nicely in the z-axis which would have made the 2D messy if they were simply projected up.



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660