News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

PointRelative (and PointPolar) arguments

Started by Bob P, April 20, 2013, 04:08:36 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bdeck

Quote from: bdeck on April 25, 2013, 07:09:32 AM
Is there any way to run a macro in the middle of a drawing command?

If not, an external executable and hook dll could be written to hook keystrokes and activate the point relative dialog.

Also, BobP and Prl have experience with an Autohotkey program, which appears to magically do that kind of thing without a hook dll.  (I wonder how.)

It would be even easier if that functionality were native to BasicCad. (Hint)

BD

bdeck

On second thought, a hook is not necessary in this instance.

A DC keyboard shortcut can be assigned to run an executable.

And the executable can manipulate DC directly through keyboard and mouse messages.

Still this would be easier if DC had the ability to run a macro during execution of a drawing command.

BD


Bob P

Quote from: bdeck on April 30, 2013, 07:49:05 AM
Still this would be easier if DC had the ability to run a macro during execution of a drawing command.
BD
Nostalgia for the DOS version...  You could set points and issue commands in any sequence.  The current method broke so many of my old macros.

bdeck

#18
Quote from: bdeck on April 30, 2013, 07:49:05 AM
On second thought, a hook is not necessary in this instance.

Oops,

I tried assigning a simple executable to a keyboard shortcut. When it executed, the currently active DC command stopped.

So it appears a hook is necessary to run an external point-setting app during execution of a drawing command.

BD