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

GDL object editable hotspot not working

VPeter
Participant

Hi,

 

I've a project in which a large number of a gdl object are placed. The object have a parameter which can be set by moving hotspot. The problem is that the editing hotspot of the placed objects is not working (after dragging it gets back to the origin) while the paramtere can be set in the object settings dialog. 

When placing the object with default settings it works fine but the old ones doesn't work.

I've attached a file that contains the objects.

1 ACCEPTED SOLUTION

Solution
kuvbur
Booster

Change parameters B from zero. I don't now - why, but it work

kuvbur_0-1636455876878.png

 

https://github.com/kuvbur

View solution in original post

5 REPLIES 5

Podolsky
Mentor

Very possible - because you are mentioning that some hotspots are old and some new - that old objects store different hotspot IDs then it set in the script and this is the reason why it's not working. I don't know the full story - did you take a file with placed objects and started to modify the script or how that happened - but most likely it's about hotspots IDs.

Thanks for your reply. It was a file with placed objects not working that I got from the user. Then I cleared the file, and stripped down the object so that nothing remained but the parameters that should be set by hotspot.

Solution
kuvbur
Booster

Change parameters B from zero. I don't now - why, but it work

kuvbur_0-1636455876878.png

 

https://github.com/kuvbur

Wow! Thanks! It really works!

When I looked to compatibility options of GDL object, I have found that it set to option 'Store the ratio of current/default A/B sizes'. Because this option existed before Archicad 6.5, very possible it gives some troubles (because editable hotspots appeared in later versions). And this is probably the reason why it's working if you are changing value of variable B. Also I noticed that these elements are placed far from origin.


hotspot printscreen.png

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!