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

Smart Hotspots

Red
Advocate
I'm looking for a tutorial/info on how to script 2d smart hotspots. Does anyone know where I could find one?
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
27 REPLIES 27
Red
Advocate
Is it even possible

Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
How do I get to use the second parameter display text box in the moving hotspot? I can get it to show either the editable parameter or a display parameter but can't figure how to make it show both.
Anonymous
Not applicable
Ignacio wrote:
How do I get to use the second parameter display text box in the moving hotspot? I can get it to show either the editable parameter or a display parameter but can't figure how to make it show both.
If you mean to adjust two length type parameters with one hotspot, then you need to script two separate hotspots that always coincide. It's a bit of a trick since they share X and Y parameters (the moveable value of one becomes the fixed value of the other). There is a (somewhat cryptic) example in the manual. If you can't get it to work, e-mail me and I'll find a scrap of code for an example.
LiHigh
Newcomer
Red wrote:
Ok!?!?!

What I'm trying to do is multiple (array) as many copies as I need of an 2D object by an interger parameter. Could someone take the following script below and show me how I can do this. Also each copy should have a movable (SMART) hotspot in the middle.

rect2 0,0,2',2'
Also can it multiple them 3' apart?
Can you please make your question clearer?

---Is the 2nd rectangle position relative to the 1st rect or the global origin?
---will the 2nd rectangle position affect the 3rd rect position?
---Is the spacings between rectangles uniform?
---and more.............
Howard Phua

Win 10, Archicad 19 INT
Matthew wrote:
Ignacio wrote:
How do I get to use the second parameter display text box in the moving hotspot?
If you mean to adjust two length type parameters with one hotspot, then you need to script two separate hotspots that always coincide.

I have an object with a stretchy A, that modifies a 'count' parameter as it stretches (let's say that PARAMETERS count=INT(A/2") gives me the integer "count" in the Parameter/object settings window OK). When dragging the 2D hotspot you get this feedback little pop-up window with two text boxes--I can get the top field to show either the value of A as I stretch, or the value of 'count' as I stretch, but I would like it to show A in the top box and count in the bottom box.

[I tried two editable hotspots moving together, one with A as the display parameter and the other with count, but no luck.]
• The only case where both fields in the popup box are used is the case of X & Y editing spots that coincide. Here's the general scheme for that:

! hsid is hotspot unique ID, increment at each line
! if you want to see the base spot delete "+128"

HOTSPOT2 0, leny, hsid, lenx, 1+128 : hsid=hsid+1 !b
HOTSPOT2 lenx, leny, hsid, lenx, 2 : hsid=hsid+1 !m
HOTSPOT2 -1, leny, hsid, lenx, 3 : hsid=hsid+1 !r

HOTSPOT2 lenx, 0, hsid, leny, 1+128 : hsid=hsid+1 !b
HOTSPOT2 lenx, leny, hsid, leny, 2 : hsid=hsid+1 !m
HOTSPOT2 lenx, -1, hsid, leny, 3 : hsid=hsid+1 !r
• Graphical spots can only edit angle and length parameters, not integers or anything else. You can maybe trick them into editing integers through some clever conversion using GLOB_MODPAR_NAME depending on the situation.
James Murray

Archicad 25 • Rill Architects • macOS • OnLand.info
James wrote:
The only case where both fields in the popup box are used is the case of X & Y editing spots that coincide. [...] Graphical spots can only edit angle and length parameters, not integers or anything else.
This HOTSPOT2 edits length but displays in the pop-up feedback field the correlative change in 'displayParam' as in
HOTSPOT2 x, y [, unID [, paramReference, flags][, displayParam]]. In this case it is an integer (I swear it is displaying an integer rescount defined as an integer in the Parameter window and calculated by PARAMETERS rescount=blablah in the Parameter Sript) (I haven't tried with text parameters, but my very possibly mistaken assumption was that it would work also).
So I thought ahahahah! so many great uses the object can make of this second dynamic feedback field! (it could display the changing cost as you stretch the thing, warnings, whatever). And it can do that, actually, but only that: I can't get it to display that in one field and some other thing in the second field, which remains blank even if stack two editable hotspots that move together along X.
Red
Advocate
LiHigh wrote:
Red wrote:
Ok!?!?!

What I'm trying to do is multiple (array) as many copies as I need of an 2D object by an interger parameter. Could someone take the following script below and show me how I can do this. Also each copy should have a movable (SMART) hotspot in the middle.

rect2 0,0,2',2'
Also can it multiple them 3' apart?
Can you please make your question clearer?

---Is the 2nd rectangle position relative to the 1st rect or the global origin?
---will the 2nd rectangle position affect the 3rd rect position?
---Is the spacings between rectangles uniform?
---and more.............

This problem was taken care of.................archicad-talk.graphisoft.com/viewtopic.php?t=7165
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz