TurboCAD Forums

SDK Corner => Sample SDK Projects => VBScript => Topic started by: kchapman on September 25, 2009, 02:29:38 PM

Title: VBScript to Boolean Add multiple selected solids
Post by: kchapman on September 25, 2009, 02:29:38 PM
The attached VBScript performs a Boolean Add on multiple selected solids. Non-solids are removed from the selection automatically. An Undo record is created so that the Boolean Add operation can be undone.

Limitation: -- doesn't currently handle Part Tree objects (i.e. Editing History).

*Updated 09/26/2009* -- Removed some erroneous Graphic.Delete operations.

[attachment deleted by admin]
Title: Macro Recorder Palette Version
Post by: kchapman on September 26, 2009, 04:58:36 PM
The attached version of the MultiAdd script has been optimized for the Macro Recorder palette. Very little has changed, except that this version takes advantage of the global Application object.

Unzip the attached script to a folder of your choice.
In TurboCAD, choose View/MacroRecorder Palette...
Click on the "Open" icon, and change the file type to VBScript (*.vbs)
Browse to the MultiAdd_MR.vbs script and load it.
Click on the Run button in the MacroRecorder palette.

[attachment deleted by admin]
Title: Re: Macro Recorder Palette Version
Post by: Orion20036 on November 23, 2009, 03:47:52 PM
The attached version of the MultiAdd script has been optimized for the Macro Recorder palette. Very little has changed, except that this version takes advantage of the global Application object.

Unzip the attached script to a folder of your choice.
In TurboCAD, choose View/MacroRecorder Palette...
Click on the "Open" icon, and change the file type to VBScript (*.vbs)
Browse to the MultiAdd_MR.vbs script and load it.
Click on the Run button in the MacroRecorder palette.


Very Useful routine Kevin, it saves an awful lot of time. Well worth developing.


Mike Geraghty.   (Sorry have not had a chance to get back on the programming side yet, hopefully before or just after Christmas).