News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

? batch files ? for repeating a series of commands

Started by jimb, May 11, 2020, 11:17:28 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jimb

Hi all,

I was wondering if TCAD supports batch files like MS EXCEL
Something like this must be behind many if not all or the actions in creating a drawing.

Thanks
JimB
Using TurboCAD 2019 Deluxe 64 bit since Dec 2019

Best is the enemy of good enough

Barrs Law Of Recursive Futility

If you are smart enough to use one of these...
   ,,, you can probably manage without one!

nikkipollard

We do have the SDK and a Ruby scripting console.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

jimb

Thanks Nikki,

I did NOT install SDK, not sure why! If it can be added now, I will, but I am a bit hesitant to do a complete re-install now, It always requires a lot of tweaking..

With any luck I should manage without... I once created 4000 macros in an EXCEL spread sheet, needless to say it required, lots of parent macros that created more macros!  even then, it was a tedious task!

Thanks again

JimB
Using TurboCAD 2019 Deluxe 64 bit since Dec 2019

Best is the enemy of good enough

Barrs Law Of Recursive Futility

If you are smart enough to use one of these...
   ,,, you can probably manage without one!

Alvin Gregorio

Quote from: jimb on May 12, 2020, 04:08:55 AM
Thanks Nikki,

I did NOT install SDK, not sure why! If it can be added now, I will, but I am a bit hesitant to do a complete re-install now, It always requires a lot of tweaking..
...

JimB

Windows Control Panel.  Programs and Features.  Scroll down to find the TurboCAD installation.  Right-click for the option "Change" and select it.  Pretty self-explanatory from there.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

#4
Quote from: jimb on May 11, 2020, 11:17:28 AM
I was wondering if TCAD supports batch files like MS EXCEL
Can I ask, what you specifically wish to do. Using deluxe your choices are a bit limited.

Macro recorder may only in the platinum version.  The SDK, whilst it allows running scenarios, and accessing most of TC functions. There is no provision within TC for writing them. Controlling TC is done by writing the code in ones favourite program, C, C++, visual basic etc. Which is used to access the SDK  It used to be possible to open / alter TC from VBA within MS Excel. I haven't tried that for a long while though.  Ruby, I don't think is in deluxe.  Although there are transform tools in deluxe. The Transform recorder is probably only in Pro.






jimb

Hi Andy,
I sometimes need to repeat a series of steps, each step using up to 10-20 individual key strokes along with the same set of parameters. As an example, the Mobius Loop project I did a while back.

A macro although tedious to create, (going back to rectify errors!). could make life easier especially as it would add the facility of increasing the step number and changing the values.
   
It was just a thought but I am not pursuing it having looked at the detail and knowing my own limitations!!!

Thanks
JimB
Using TurboCAD 2019 Deluxe 64 bit since Dec 2019

Best is the enemy of good enough

Barrs Law Of Recursive Futility

If you are smart enough to use one of these...
   ,,, you can probably manage without one!

nikkipollard

Jim in the platinum version there is a tool that has a scripting palette ideal for this kind of project.
The scripts are easy to write, aimed at TC users with little to no programming skills.
Very useful for components in drawings where the parameters vary slightly.

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h