Jump to content

Recommended Posts

Posted

Hello!,

 

I have written a VB 6.0 program to open AutoCad application & a new drawing.

I have a AutoLisp / visualLisp routine already written for drawing generation.

 

I want to know the VB 6.0 code to run the AutoLisp / visualLisp routine in AutoCad to generate the drawing. Can anyone help?

 

Regards,

Prakash

Posted

Why not instead use a customized Application Icon, that specified the desired template in the Target Property, and simple use the script switch to insert a block?

 

Sample Application Icon Target Property:

 

"d:\AutoCAD 2007\acad.exe" /t "[color=red]<filePath>[/color]\template\[color=red]<tempateName>[/color].dwt" /b "[color=red]<filePath>[/color]\[color=red]<scriptFileName>[/color].scr" 

 

 

Edit to add - You could even include the desired block within the template and avoid the need for a script altogether too.

Posted

Hello!,

 

We are manufacturing products which are parametric in nature. The design rules remain same & they are scalable. I am developing the VB 6.0 program for use of design engineers in our office.

I want to save the AutoLisp & Excel program on server & distribute the VB 6.0 to the users.

Users will enter input design parameters which will be passed in excel, where the design rules will be applied & the dimensions required for drawing will be calculated & stored in .csv format.

The AutoLisp program will refer the .csv file & will generate the required drawing, which can be directly in pdf format on user's screen.

The excel, autocad & AutoLisp will run in background & thus will be secured.

The excel program, .csv files & AutoLisp programs are ready & can be operated through VB 6.0. Now I am stuck up at the last stage where I need to start the AutoLisp program through VB 6.0

Having completed nearly complete jon looking forward to get the solution to run AutoLisp through VB 6.0

Regards,

Prakash

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