pasteclip command not working with script in accoreconsole

pasteclip command not working with script in accoreconsole

ottosson_mathias
Advocate Advocate
367 Views
2 Replies
Message 1 of 3

pasteclip command not working with script in accoreconsole

ottosson_mathias
Advocate
Advocate

I'm trying to write a script with the pasteclip command and then run it in accoreconsole on some files.

It seems to work when I have copied elements from AutoCAD, although not guaranteed. But when I have just text in the clipboard it never works. It does work to run the command manually in accoreconsole but not from a script.

 

The script can look something like this:

 

pasteclip
0,0 (for text, or 0,0,0 for AutoCAD elements)
qsave

 

 

That's it. Nothing magic.

 

Is there a security aspect that's stopping me from pasting things with pasteclip in a script or why won't it work for me?

0 Likes
368 Views
2 Replies
Replies (2)
Message 2 of 3

VincentSheehan
Advisor
Advisor

Are you copying the entities from the dwg to where you are pasting them?

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 3 of 3

ottosson_mathias
Advocate
Advocate

I have had more success when copying from a dwg file, but if I remember correct I have seen this fail too. I'll check this again.

 

I am however never able to paste text. Like copy some text from notepad and paste it with pasteclip. But it does work when running accoreconsole and typing pasteclip manually (no script).

0 Likes