Object jumps after resizing it to/from minimum length
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-12-05 01:43 PM
‎2016-12-05
01:43 PM
My GDL object "jumps" to another location when I resize it from a hotspot on one of the corners of the object. It jumps only if it is resized TO minimun width or FROM minimum width.
At first I had set the minium width in master script like this:
IF (A<minWidth) THEN parameters A = minWidth ENDIFThe picture is about this^^ but now I noticed it happens also without resizing to smaller than allowed. Resizing exactly to the min.width will also cause this.
Then I changed it to this (parameter script) and the bug still exists:
values "A" range [minWidth, 10]"minWidth" is a parameter with type of "Length". The value is set in master script based on some calculations. The calculations doesn't have anything to do with A though.
In the picture I have explained the problem and I found a logic on how much the object jumps. It jumps exactly to the point where I move the hotspot from corner to resize.
The bug happens with 3D and 2D hotspots. But it doesn't happen when I resize it by directly changing the A value from toolbar.
I don't know if this is a bug in ArchiCAD or my code. Any tips on how to debug this further?

1 REPLY 1
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-12-12 02:03 PM
‎2016-12-12
02:03 PM
Hey,
The bug was fixed by moving minWidth calculations from Master to Parameter script.
The bug was fixed by moving minWidth calculations from Master to Parameter script.