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

Editable Hotspots and GLOB_CONTEXT

Anonymous
Not applicable
I'm trying to write an object which will display different information in the Plan and Section/Elevation windows. I have successfully used the GLOB_CONTEXT to differentiate between the two, and display the two variations successfully. However, any editable hotpots which are set to display in only one view become un-editable.

ie, in the following case

IF GLOB_CONTEXT = 4 THEN
HOTSPOT2 0,0,0,leftext,1
HOTSPOT2 -leftext,0,0,leftext,2
...
ENDIF

The hotspots will display in the section window, but I cannot use them to edit the parameter.

Is there some way around this problem, or must editable hotspots display for all cases of the 2D script?
3 REPLIES 3
Laszlo Nagy
Community Admin
Community Admin
Rowan wrote:
I'm trying to write an object which will display different information in the Plan and Section/Elevation windows. I have successfully used the GLOB_CONTEXT to differentiate between the two, and display the two variations successfully. However, any editable hotpots which are set to display in only one view become un-editable.

ie, in the following case

IF GLOB_CONTEXT = 4 THEN
HOTSPOT2 0,0,0,leftext,1
HOTSPOT2 -leftext,0,0,leftext,2
...
ENDIF

The hotspots will display in the section window, but I cannot use them to edit the parameter.

Is there some way around this problem, or must editable hotspots display for all cases of the 2D script?
I don't think so because the HOTSPOT2 is a 2D GDL command, it applies to the Floor Plan. So Hotspots you see in a S/E Window are actually 3D Hotspots. (I might be wrong).
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
I'm not referring to the 3d HOTSPOT command, which would produce different hotspots visible in the section window, but an entirely 2d object which will show different information depending on the view the object is placed into.
Anonymous
Not applicable
Rowan wrote:
I'm trying to write an object which will display different information in the Plan and Section/Elevation windows. I have successfully used the GLOB_CONTEXT to differentiate between the two, and display the two variations successfully. However, any editable hotpots which are set to display in only one view become un-editable.

ie, in the following case

IF GLOB_CONTEXT = 4 THEN
HOTSPOT2 0,0,0,leftext,1
HOTSPOT2 -leftext,0,0,leftext,2
...
ENDIF

The hotspots will display in the section window, but I cannot use them to edit the parameter.

Is there some way around this problem, or must editable hotspots display for all cases of the 2D script?

The HOTSPOT/HOTSPOT2 statement has been chenged since AC 8. Now it requires more statement to define an editable hotspot.
For example, to edit a length type parameter, three hotspots must be defined. To edit an angle type parameter, four hotspots must be defined.

You can find detailed introduction in Help file.

Good luck.

Wolf