cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Object jumps after resizing it to/from minimum length

Hey,

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
ENDIF
The 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
Hey,

The bug was fixed by moving minWidth calculations from Master to Parameter script.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!