We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

HOTSPOT-BASED Polar coordinates input

Anonymous
Not applicable
NEED HELP

There is ability to combine to linear Hotspot coordinate inputs - X and Y.
Is there way to use another combination - HotAngle plus HotDistance simultaneuusly?
7 REPLIES 7
Anonymous
Not applicable
It should be possible depending on the circumstances.

The main issue would be keeping the dissimilar Hotspots coincident. This might mean rotating the axis by "Hotangle" before defining the "Hotlength". If I weren't so busy I would be tempted to try it myself. Let us know if you figure it out.
Anonymous
Not applicable
----------------

ARC2 0, 0, 0.75*Radi, 0, Ang

Circle2 0,0,0.01
Line2 0,0,Radi*COS(Ang), Radi*SIN(Ang)
Circle2 Radi*COS(Ang), Radi*SIN(Ang),0.01

HOTSPOT2 0, 0, 4, Radi, 1+128
HOTSPOT2 -1*COS(Ang), -1*SIN(Ang), 5, Radi, 3
HOTSPOT2 Radi*COS(Ang), Radi*SIN(Ang),6, Radi, 2

HOTSPOT2 0, 0, 1, Ang, 6
HOTSPOT2 Radi, 0, 2, Ang, 4
HOTSPOT2 Radi*COS(Ang), Radi*SIN(Ang), 3, Ang, 5

----------

It doesn't work! ! ! !
Anonymous
Not applicable
Well, I couldn't resist once you posted the code.

You seem to be right. It didn't work with a rot2 statement either.

I guess the linear and angle hostpots can't coincide. It seems that the linear takes precedence and the angle is unavailable.

If you really need this you could accomplish a similar result by using coincident X and Y points, calculate the angle and use the PARAMETERS statement to put the value into your ang parameter.
Frank Beister
Moderator
I guess the linear and angle hostpots can't coincide.
As written in the manual. (AFAIR)
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
SPINCODE wrote:
Is there way to use another combination - HotAngle plus HotDistance simultaneuusly?
This is not possible.
If you want both hotspots, you have to separate them by a tiny distance.

Or you can use this old tip:
xx = REQUEST ("Clean_intersections", "", state)
if state then
<Code for Radi Hotspot>
else
<Code for Ang Hotspot>
endif

You switch from one to another, according to your shortcut.
Unfortunately, the shortcut works only in floor plan view. In the past, it worked in 3D view too.

For double coordonates, xy for eg, notice that parameters show
in the order in which they are listed in the Parameters window.
Anonymous
Not applicable
Another solution is to create a switch parameter. See attached part.
It allows a switch between angle, xy coordonates, or radius.
Don't dream, only xy coordonates can show together. Current GDL can't do more.

IMHO, it could be easy to allow angle and radius to work together.
Unfortunately, GDL is not GS priority for the future. This is an other thread.
Frank Beister
Moderator
Unfortunately, GDL is not GS priority for the future. This is another thread.
As you know, we have asked for more focus on GDL and as far as I have heard it will be. Just GS and AC internal but after that I hope this will lead in more sophisticating changes. GS can't say they wouldn't know, what's needed. HOTSPOTs is one of this half completed great ideas.
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