bwdeen Posted February 7, 2012 Posted February 7, 2012 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 Quote
bwdeen Posted February 7, 2012 Author Posted February 7, 2012 Thanks for the quick reply..... _PASTECLIP only works when a file is open, not by a script or to a "new file"....... Quote
designerstuart Posted February 7, 2012 Posted February 7, 2012 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. Quote
bwdeen Posted February 7, 2012 Author Posted February 7, 2012 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 Quote
Tiger Posted February 7, 2012 Posted February 7, 2012 Can you use Data Extraction instead? It's a pretty nifty tool for pulling out info from drawings. Quote
bwdeen Posted February 7, 2012 Author Posted February 7, 2012 ^ 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.... Quote
designerstuart Posted February 7, 2012 Posted February 7, 2012 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......... Quote
bwdeen Posted February 7, 2012 Author Posted February 7, 2012 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.... Quote
Tiger Posted February 7, 2012 Posted February 7, 2012 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. Quote
bwdeen Posted February 8, 2012 Author Posted February 8, 2012 ugh, where is the select text extract tool.....lol Quote
Recommended Posts
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.