TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
Remember to do a search before you ask a question!!!

VBScript to Boolean Add multiple selected solids
Read 5965 times
* 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]
« Last Edit: September 26, 2009, 02:11:26 PM by kchapman »

Logged


* September 26, 2009, 04:58:36 PM
#1
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]

Logged


* November 23, 2009, 03:47:52 PM
#2
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).

Logged