www.cadalyst.com/solutions/trenches/0703vb CADALYST - July 2003 From the Trenches. Article on using VBA for CAD/VCAM. Code downloadable. (Good for AutoCad and MDT -aj).
vbacam.html Local version.
vbcam.zip Download code (VBA file and a text file together 26kb zipped).
vbcam.txt View the text file that comes with the download.
(** html version required to be done -aj **)
vbcamcode.txt The code that appeared in the VBA Editor saved as a text file.
The .dvb projevt was opened in MDT using Assist->Load Application then browsed for and loaded from this folder.
The macro was then run with Assist->Macro->Macros... then select the vbcam.dvb!Module1.Visual_Basic_CAM. -> Run.
When run, the Figure 3. VB/CAM dialog box where you enter your tooling parameters came up. I selected Exit to get out of it and went into the VBA Editor using Assist->Macro->Visual Basic Editor which displayed the file contents above.
From the Editor Browser the form for the dialogue box or the one line Module1 that calls it can be displayed but once you go into them you cannot get the code back without unloading the project and reloading it.
www.blackwidowguitars.com Cris Lamrock's personal site. Cool.