Hello,
When I use the following code, the OK message comes before the pasteclip operation.
So I cannot then get the object that was pasted using Entlast.
doc.SendStringToExecute("._pasteclip " & strOrigin & " ", True, False, True) MsgBox("OK") Dim objObjectIdOLE As ObjectId = AutoCAD.Internal.Utils.EntLast
Any ideas on why this is, how I can run the code in the correct sequence and get the objectId of the pasted object?
Kind Regards
David
Solved! Go to Solution.
Solved by _gile. Go to Solution.
All calls to SendStringToExecute() are queued and executed after your command ends. You should use another way to transfer your data, like Database.Wblock() method for example if you want to copy some entities from one database to another one.
Can't find what you're looking for? Ask the community or share your knowledge.