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.

Turning off drag mode in >Rotate ?

Started by MarkX, March 14, 2012, 09:29:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

My manual might be outdated, but I don't see a way to turn off drag-mode in the Rotate command. Is there a way to turn this off via macro?

Thanks!
Mark

DrollTroll

The best way to check all macro command parameters on a drawing command is to record a macro that uses it :)
25 years with DesignCAD

DrollTroll

#2
... which tells me "yes".

<DragMode 0  'turns off DragMode

If you want turn it off without actually rotating anything, try this:

'DragModeOff.d3m'
>Rotate
{
  <DragMode 0
  <NULL
}
25 years with DesignCAD

Bob P

Here's my command-line macro for x-axis rotation.  Pretty sure it works...
You must set a handle for the object first.
If you don't enter a value for the rotation angle on the command line, it will prompt you for one.

Change the line "<axis 0" to "<axis 1" for y, "<axis 2" for z.  I haven't confirmed my rotation about a line yet.


'rx.d3m
'Rotate about x axis

ang$=sys$(0)
ang=val(ang$)
if ang=0 then input "Enter rotation angle around the X axis: ", ang
>rotate
{
<ThroughHandle 1
<Axis 0
<Pointxyz [sys(190),sys(191),sys(202)]
<Angle [ang]

}
end

MarkX

Quote from: Bob P on March 14, 2012, 03:42:43 PM
Here's my command-line macro for x-axis rotation.  Pretty sure it works...
You must set a handle for the object first.
If you don't enter a value for the rotation angle on the command line, it will prompt you for one.

Change the line "<axis 0" to "<axis 1" for y, "<axis 2" for z.  I haven't confirmed my rotation about a line yet.

Thanks Bob,

My problem is that with drag mode on, and with the macro commands I was using, it was interrupting the macro to ask for user input. Maybe there's a way to get this setting to stay unchecked but so far it seems to want to default to DragMode on.

Thanks!
Mark

MarkX

Quote from: DrollTroll on March 14, 2012, 12:24:27 PM
The best way to check all macro command parameters on a drawing command is to record a macro that uses it :)
Thanks DT,

I should have thought of that, but I was under the impression that the macro recorder didn't record dialog settings. Not sure how I got that impression. Guess I'll have to remember this trick for next time  ;D.

Thanks!
Mark

DrollTroll

It records simple dialog settings, such as for most drawing commands, but for more complex dialogs that have child dialogs, it doesn't always do so (recording option settings, for example, doesn't do any good).
25 years with DesignCAD

Lar

Quote from: MarkX on March 14, 2012, 04:24:18 PM
... I was under the impression that the macro recorder didn't record dialog settings. ...
Mark,

You have to actually specify that you want the parameters recorded (in the little dialog box that opens up normally in the very top left corner of the screen, which makes it easy to miss). Click the arrow icon for 'options'.

Lar

JJG

Thanks for this advice, Lar !

but, normally, as default, all the parameters who can be recorded are checked, so that, normaly, you may have all settings saved in the code of the macro.