News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Automation question

Started by SEK_Router, October 24, 2013, 12:32:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SEK_Router

Using v23.  We have an SQL database with customer info that I would love to be able to access from inside a drawing to populate a sort of titleblock (it's actually a header on each page).  I'm not a programmer, but we do have a pretty good programmer here that may be able to help me out.  As near as I can tell, I am needing a way to run a program inside of DesignCAd that will let me enter a job number, which in turn would execute an SQL Query on our data, returning the results as text in the drawing.  Is this possible and practical?

dcadRob

Yes you can do it and it's fairly easy.
Probably the simplest way is write a BasicCAD macro which gets the job number and passes it to a standalone program (you have to write it in your language of choice) which receives the job number, gets the SQL result and puts into a file or on the clipboard. Then you paste the text into your drawing.

You will need to download the BasicCAD help files.
hlp format : http://forum.designcad.com/index.php?topic=5.0

chm format: http://forum.designcad.com/index.php?topic=2835.msg14862#msg14862