spopa2 Posted May 5, 2011 Posted May 5, 2011 Hello, I am looking into how I can create scripts that would generate a text file which can then be read in by AutoCAD to create the 3d model. I need to be able to create multiple iterations of a model (a solenoid winding) with different parameters (such as number of turns, wire thickness, and number of layers). I was planning on writing a script in pearl and then creating a batch file that would run the script and then AutoCAD in non interactive mode. Does anyone know if this could be done, or if there is a better way of doing this not using an outside script? Also, can this be done in any other CAD program, specifically Solidworks? Cheers! Quote
designerstuart Posted May 5, 2011 Posted May 5, 2011 well a basic point, but if you want to input figures like length, number iterations, diameter etc you will need to write lisp files not scripts. your best bet is researching how to write lisps (Afralisp is a good start) but it sounds like that part of what you want to do is possible. Quote
SLW210 Posted May 5, 2011 Posted May 5, 2011 Hello, I am looking into how I can create scripts that would generate a text file which can then be read in by AutoCAD to create the 3d model. I need to be able to create multiple iterations of a model (a solenoid winding) with different parameters (such as number of turns, wire thickness, and number of layers). I was planning on writing a script in pearl and then creating a batch file that would run the script and then AutoCAD in non interactive mode. Does anyone know if this could be done, or if there is a better way of doing this not using an outside script? Also, can this be done in any other CAD program, specifically Solidworks? Cheers! designerstuart, he is not referring to scripts in AutoCAD. Are you wanting to use PEARL or PERL they are two non-related programing languages. I will probably need to move this thread somewhere to receive more appropriate responses. Quote
spopa2 Posted May 5, 2011 Author Posted May 5, 2011 Sorry, I meant perl. Any scripting language would do however. I just need to automate the generation of these models. Cheers Quote
BIGAL Posted May 6, 2011 Posted May 6, 2011 A "script" in Autocad is basicly that you have typed in a text file every single thing that you would do via the keyboard and entering co-ord pts for pick points etc. eg Line 0,0 0,1 1,1 1,0 C I would endorse the use of lisp you can have dialouge boxes etc for your questions Can you paste a dwg or image of what you want with some more explanantion of how the part is made now within Autocad 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.