![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Autodesk Software (Autocad, Inventor etc) Discuss Autodesk Software (Autocad, Inventor etc) software here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I'm trying to load a series of DXF files contained in one folder into AutoCad 2006 LT. I'm thinking that a script file would be the best way to get this done. Because all of the DXF files are created with a corner at x0,y0 I'd like to also step each location so the files don't overlap. Can someone help point me in the right location with commands? I've tried using the _insert command, but I'm not sure of the format. |
|
#2
| ||||
| ||||
| You want to merge all the files together? Not sure if you can do that. You might have to copy and paste the contents into a new drawing.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
| Creating a new file would be fine. I just would like to import the DXF files so that they are all in one location instead of a bunch of small DXF files. I was going to use the "_insert" command, but I've only written very basic scripts. I'm not familiar with the command format for this and also need to perform a step over for each file that will be imported. Any ideas? |
|
#4
| ||||
| ||||
| insert drawing1 2,3 1 1 0 drawing1 = filename 2,3 is insertion point 1 = X scale 1 = Y scale 0 = Rotation angle There must be a space at the end to complete the command. The space is like hitting "enter". One thing, though. Insert gives you blocks, which you may need to explode?? I don't use scripts, so can't give you much more help. I just spent a few minutes in the help file to figure out the example I posted.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#5
| |||
| |||
| Thanks for the reply. I was able to find that in the help menu as well. I couldn't figure out how to pull each file from the directory to import it automatically within a script file. In the end, I created a program in BASIC to print each file name and automatically step the position using variables and output the result to a file with an SCR extension. I then ran the new script file in AutoCad. The BASIC generated output script file read something like this: insert file1.dxf 0,0 1 1 0 insert file2.dxf 0.5,0 1 1 0 insert file3.dxf 1,0 1 1 0 etc. Thanks for the help. |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Writing Nc Script For Haas Vf | SCQ | BobCad-Cam | 7 | 05-04-2012 04:35 PM |
| Newbie- VB6,VB.net,VB script,What one??? | hydrospin01 | Visual Basic | 11 | 05-24-2008 08:09 PM |
| Lookahead script | Rikard L | Visual Basic | 2 | 09-11-2007 01:28 PM |
| Lookahead Script | Rikard L | General CNC (Mill and Lathe) Control Software (NC) | 0 | 09-10-2007 02:06 PM |
| Backup Script.. | Rekd | Mastercam | 3 | 09-11-2003 09:34 AM |