Notifications
Clear all

[Closed] Copy Array of Objects?

How do you copy an array of objects (geoArray) to a new array of objects. Essentially I have a bunch of geo that I want cloned and them put into a selection array.

This will copy them, but it returns OK, so I have no way of getting to the copies now

copyArray = copy geoArray 

I believe I could loop them them, select them, duplicate them, then save each one to a new index in a new array… I think that might work. However, that seems like a really ugly way to do it…

This is a newbie question but I simply can not figure out how to get this to work. Thanks

2 Replies
1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

see maxOps.CloneNodes in the mxs help file

My error, denisT save the day!

Delete my post to not mislead anybody.