PDA

View Full Version : AutoCad Customization



pgsoman
6th Jan 2012, 11:57 am
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

BlackBox
6th Jan 2012, 01:15 pm
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 "<filePath>\template\<tempateName>.dwt" /b "<filePath>\<scriptFileName>.scr"



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

pgsoman
6th Jan 2012, 05:27 pm
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