Jump to content

spopa2

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Sorry, I meant perl. Any scripting language would do however. I just need to automate the generation of these models.

 

Cheers

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...