Jump to content

Recommended Posts

Posted

Using Autocad_2k10 and ScriptPro

 

Trying to write a srcipt to copy/paste a certain amount of text in these coordinates (ie.: 1.8520, 13.1085, 0.0000) in 100+ drawings to a file (ie.: 123.txt or 123.xls)

 

I'm stuck on the "paste to file", is this possible?

 

Please advise, I'm using ScriptPro cause of the batch process.

;)

 

Thanks,

BW Deen

Posted

Thanks for the quick reply.....

_PASTECLIP only works when a file is open, not by a script or to a "new file".......

Posted

i can get pasteclip to work in a script - not tried scriptpro tho. this does mean you have to copy the text before you run the script tho, which is a minor issue. show us your script and let's discuss it.

Posted

paste to "file" works for you in Autocad using the script command?

 

burst
all

_copyclip
16.8000,0.8000,0.0000

_pasteclip C:\123.txt

quit
n

Posted

Can you use Data Extraction instead? It's a pretty nifty tool for pulling out info from drawings.

Posted

^ agreed but its rather cumbersome and i only need a little info from many drawings.....if i could narrow the results down and use it in bulk i would. isnt there a .lisp script that i could select amount of text to extract or using the coordinates? im not familiar with .lisp at all....

Posted

oh wow, so you want to copy text OUT of autocad into a file called 123.txt? (excuse my misunderstanding)

 

let me clarify a few things:

you have loads of drawings, all have a single piece of text at the same coords

the text contents varies for each drawing

you want to copy those values, and paste them to a single text file

 

correct?

 

i'm afraid that is beyond me. i will look into it, in the meantime someone who knows will be along soon.........

Posted

YES, np, i wasn't sure of how to put everything into words. the text is at the same coords in 100+ drawings, just need to extract or C/P text to "new file" (ie.: 123.txt or 123.xls) outside of autocad, I'd prefer a script for batch processing....

:)

Posted

You can save the template for Data Extraction (what to take out) and use it again, and you can add more files to one Data Extraction-round - even if perhaps not all files at once.

Posted

ugh, where is the select text extract tool.....lol

:D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...