News:

Please note new Forum URL: forum.designcad.com

Main Menu

Rotate Command (effect of Drag Mode)?

Started by ktk, December 22, 2006, 05:25:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ktk

When I use macro record and rotate a part there is a line  >Drag Mode 1 included.  I find no mention of this in the Macro Help. Does this affect the rotation?  In looking at other macros it seems that I have used both >Drag Mode 1 and >Drag Mode 0.

Lar

>Drag Mode is mostly for users who want to see the object turn as they move the mouse, don't want to be bothered with typing in a number, or, more realistly, who isn't sure if the direction they want to turn is positive or negative so instead of guessing at a value they just drag with the mouse (...like me. Before Drag Mode I knew instantly what was pos or neg but after it I lost that ability and now I have to think about it). It has no real purpose in a macro unless and only if >Incomplete is also used, meaning the macro is intended for the user to manually do the rotation.

In BasicCAD you don't have to put in all of the parameters for a command, just the ones you want to change. For the others dcad will just use the current values, just like when you use the command outside of macros. For example, dimensions have a ton of parameters. Most times the only parameters you have to put in is >PointXYZ's and probably the text and arrow sizes.

Conversely, if you want to see all the parameters for a particular command record a macro with the option to record parameters.

Lar

prl

Lar beat me to it but since I've already typed all this here it is anyway.

If you define the <throughhandle, <Axis and <Angle parameters in your code, then the <dragmode parameter is meaningless.  If, however, you want to see it in action, use the <incomplete parameter.  Select something and run the example code below:

'Program: test314.d3m

>rotate
{
<ThroughHandle 1
<Dragmode 1
<incomplete
}
end


ktk

Thanks for the quick responses.  I have screen update off in the macros so the drag mode will not do anything in my macros.  I had not seen the paramater before and didn't want to leave something important out.