googoole Posted May 4, 2010 Posted May 4, 2010 I have same ACAD .DWG Files and need to plot all Objects in Polygon Area Layer Named "COVER1" . what can i do? manually I select window plot form left top of polygon to right down of it. I need create script to automaticly do this . Thanks Quote
ReMark Posted May 4, 2010 Posted May 4, 2010 "...need to pilot all objects..."? Do you perhaps mean plot? Why do you think you need a script to do this? Quote
googoole Posted May 5, 2010 Author Posted May 5, 2010 yes plot is correct sorry for my speed in typing . I need this for sequence automatically do this without left time because I have a many ACAD Files in same Format! Quote
ReMark Posted May 5, 2010 Posted May 5, 2010 Could you post an image? So you want to plot a particular area (polygon) on a layer named COVER1. Is that correct? Is the area always the same size? Is the area always in the same location on each drawing? How many drawings would we be talking about? Have you used script files before? Quote
googoole Posted May 5, 2010 Author Posted May 5, 2010 I have 320 Acad Drawing from any location of my hard disk . in this section create script to find files and open with acad and prompt for selecting right edge and left edge of polygon after this work printer do print automatically i need full automate all level . the area not a same size or same location But Only have same Layer Name! Quote
ReMark Posted May 5, 2010 Posted May 5, 2010 Script files work best when commands are predictably repeatable. You have some variables. 1) The drawing files are scattered on your hard drive. 2) The area you want to print is not the same size from drawing to drawing. 3) The area you want to print is not in the same location from drawing to drawing. I'm not sure how this could be done or even if it could be done. Quote
googoole Posted May 7, 2010 Author Posted May 7, 2010 files have drawing area limited on polygon in layer named "COVER1" . Quote
ReMark Posted May 7, 2010 Posted May 7, 2010 How did you expect AutoCAD to find all these drawings scattered about your hard drive? Quote
MikeScott Posted May 7, 2010 Posted May 7, 2010 Yeah.. take that out of the equation, and let's just say: "When I open one of the files, I want it to print an area based on what's on a single layer" Maybe a script to switch-off and lock all layers except for that one, and then plot extents, scaled to fit? At least that'll save a little time.. Quote
ReMark Posted May 7, 2010 Posted May 7, 2010 What if the polygon the OP wants to plot isn't the only thing on that layer? Does he want to plot the polygon all by itself? He said they could be located anywhere on the sheet. Quote
MikeScott Posted May 7, 2010 Posted May 7, 2010 I don't see a way to do that, but I wasn't looking for ways it wouldn't work. Unless you can code for a quick select, and somehow get the bounding area from it, and use that as your window designation. But it was my interpretation of the OP: files have drawing area limited on polygon in layer named "COVER1" . So.. plot by limits? unless they're speaking in English, rather than Cadspeak. Quote
JohnM Posted May 7, 2010 Posted May 7, 2010 do you have express tools installed? if so you can use the layer isolate tool this will turn off all layers except the one(s) selected. it would be very helpfull if you post a sample drawing there are too many questions to ask so if you could post your request in great detail then help would be much easer Quote
googoole Posted May 8, 2010 Author Posted May 8, 2010 Atach one sample file all files same with this . How did you expect AutoCAD to find all these drawings scattered about your hard drive? use FilesystemObject to find all drawing files in selected drive. 84-H-1345-S.B-08-R1.zip Quote
MikeScott Posted May 8, 2010 Posted May 8, 2010 Ok, so the idea here is that "cover1" is a layer which contains a "crop area" for printing the drawing. they don't want the other layers turned off. Perhaps a script to: 1. Make a new layout and go to it. 2. Turn-off all layers except that one, 3. Then set-up printer plus paper size, plot extents, save to layout and exit the plot command before printing 4. Then turn back on the layers and print. That's beyond my capabilities since I'm in 2006, but maybe someone else? Or does the cover1 outline appear in the same place/size in all the drawings? Quote
Lee Mac Posted May 8, 2010 Posted May 8, 2010 You could perhaps do this using ODBX, I haven't read the whole thread, but do you use a PC3 file for plotting? 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.