Is it possible to have two independent Selection objects that you can for example:
Sel1.Clear
Sel1.Add SomeLine
Sel2.Clear
Sel2.Add Sel1.Item(1).Value
Sel2.Copy
Sel1.Clear
Sel1.Add Some3DShape
Sel1.PasteSpecial "CATPrtResult"
And now we should have copy of the line inside the 3dshape, but no...
After Sel2.Clear Sel1 is cleared as well.
How could this kind of procedure be implemented?
Thanks in advance.
UPDATE:
Real use case is as follows:
using sel1.Search to find a bunch of lines spread across multiple 3dshapes
I want to copy all these lines into a different 3dshape->geometrical set.
Trying Copy on all objects and sel1.Paste results in error.
So alternatively I need to do with loop and copy/paste one object at a time.
However for that I need another selection object and be able to clear it between each object.
That fails because the original selection object is also cleared.
Best Regards,
Ivelin PEYCHEV
Ivelin Peychev[AITAC d.o.o.] @ Dec 14, 2022 - 02:28 PM (Europe/Paris)