K-IDE support forum
Find all information about Kawasaki's Integrated Development Environment

Copy Reals array

#1 by albaloops , Wed Apr 29, 2026 3:25 pm

There is a problem when copying a Reals array.

When we copy a Reals array and then paste it, the system automatically merges the two arrays.

I think if a Reals array with the same name already exists, a Replace warning should appear.

Or the user should be given an option to either select Replace or enter a new name to create a new Reals array.

Attached pictures:
Reals_Copy.jpg  

The following user say thank you: cquante
albaloops  
albaloops
Posts: 7
Date registered 07.30.2025


RE: Copy Reals array

#2 by cquante , Thu Apr 30, 2026 7:35 am

You are right - and you are wrong.

When copying variables, the variable data is copied to the clipboard for K-IDE and all other Windows programs to be used. You can check that by pasting the variables into a text editor. You'll see that the data is copied like AS data. When pasting such data into K-IDE, K-IDE has to decide what to do with it. When copying normal (scalar) variables, K-IDE renames the variables, so that the copying can be successfuly done. If the copied variable is an array field, K-IDE expands the array instead of using a new variable name. If the variable array fields are all of the same array, a copy of all fields will be placed in that array.

That might not be ideal, but it's what you'd expect. So it's no bug.

We might think about expanding the copying feature for full arrays.


Christian Quante
Technical Sales
Sales Department

Kawasaki Robotics GmbH
Rheiner Landstrasse 195A • 49078 Osnabrück
Germany


 
cquante
Posts: 389
Date registered 12.20.2019


   

Copy problem in IF Panel
Capital letters problem



Xobor Xobor Community Software
Datenschutz