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).
Title: Re: VBScript to Boolean Add multiple selected solids
Post by: jmwright1058 on October 24, 2018, 12:13:18 PM
Is it possible to get this script?
It is exactly what I was wanting.
Is there some reason this script was deleted by admin?
Was it too preliminary...did it not work or cause TC to crash?

Regards,
John
Title: Re: VBScript to Boolean Add multiple selected solids
Post by: Andy H on October 24, 2018, 03:36:41 PM
Is it possible to get this script?
It is exactly what I was wanting.
Is there some reason this script was deleted by admin?
Was it too preliminary...did it not work or cause TC to crash?

John.   Its not specific to the SDK, every now and again IMSI had a clean up of the forum removing old files and attachments from the whole forum, to clear up space on the server.

The attached should be the VBS file + one for the macro (I haven't checked the difference),  there is also a VB.net file available in this post (http://forums.turbocad.com/index.php/topic,9564.0.html)