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.

The Old N and M vs the New...

Started by Lar, May 15, 2007, 08:41:46 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

Hi folks.

This is a spin-off from another topic where bdeck mentioned that today's Move and Copy (M and N hotkeys) commands are not as 'friendly' as the old DOS' ones.

To recap,  my post partly said (with a quote from bdeck):
[Partial Post by Lar on: May 14, 2007, 08:06:25 AM]
Sidebar here...

Quote from: bdeck on May 12, 2007, 07:06:22 PM
...  To put that in perspective,  I've been annoyed ever since DC7 abandoned my favorite editing tools (N and M).  ...


bdeck, N is Duplicate and M is Move, both have been around since the early 90s (I'm not sure which version was DC7). Are you saying that you don't have access to these commands anymore???


To which bdeck responded (one post later):[May 14, 2007, 10:10:08 PM]
Continuing the sidebar...

Quote from: Lar on May 14, 2007, 08:06:25 AM
bdeck, N is Duplicate and M is Move, both have been around since the early 90s (I'm not sure which version was DC7). Are you saying that you don't have access to these commands anymore???


Hi Lar,

Today's N and M commands are nothing like the N and M commands of DC6 ( the final DOS version). Without handles those commands could do things that are not possible with any  command in DC today. As basiccad became more capable about V13, it became possible to  create N, M, and S macros to duplicate most of the DC6 functionality. http://forum.designcad.com/index.php?topic=322.0

Frankly, for the kind of mechanical desigh work that I do, I can't imagine using DC without those macros.


to which prl added [May 15 at 05:35:34 AM]: 
Quote from: Lar on May 14, 2007, 08:06:25 AM
Sidebar here...

bdeck, N is Duplicate and M is Move, both have been around since the early 90s (I'm not sure which version was DC7). Are you saying that you don't have access to these commands anymore???


continuing the sidebar,

The old M,N,  select something and set two points defining "from" and "to".  Very clean and fast.  You can do it now but you need to set handles first. Some of the commands we now have are too consolidated and excessively polluted with options, gratefully I have basiccad to set things straight.



And now, finally, I am now contributing...
bdeck, prl... I not sure I'm remembering correctly:
   
N and M had the '4-point move' thing that was lost for a while but was eventually brought back.  With the original 'Blocks' (which is now 'Groups', not the 'Block'-insertable we have today) you selected the entities and set the handles in one command. Today we select in one command, where one handle is automatically set where we click, or, the center of the selection box. If we need particular handles we have to set them in another command... with the dreaded default Ctrl+H shortcut.

I use 0 (zero) for handles and have written 2 macros (below) to emulate the 'select with handles' of yesteryear.

I like today's automatic-handle/sticky handle combo, except that Mirror and Rotate uses the auto-handle instead of the Sticky Handles. I place my Sticky Handles in the natural insertion point of the group. This is also the natural Mirroring and Rotation point. The auto_Handle usually forces me to perform another command because I then have to reset the Sticky Handles. Actually, most times I just do the Mirror/Rotate from the auto-Handle, then pick the entities up at the Sticky Handle and drop it where I need it.

Here are the 2 macros:
'*****Macro to Point-Select then set Handles*****
'PSel.bsc by Lar, Nassau, Bahamas
>PointSelect
{
}
>SetHandle
{
}
'*****Macro End*****

'*****Macro to Drag-Select then set Handles*****
'DSel.bsc by Lar, Nassau, Bahamas
'[sorry but rubberband only works and makes sense in 2d mode...]
sys(41)=23   'if 2d mode then 2D-Box rubberband

'if sys(344)=1 then sys(41)=2   'if 2d mode then 2D-Box rubberband [these are left here to possibly modify later]
'if sys(344)=0 then sys(41)=3   'if 3d mode then 3D-Box rubberband

'Check Ortho Mode status for later...
n=sys(347)
'Turn off Ortho Mode (if on or off)...
sys(347)=0

'Check Point Sel Mode status for later...
nn=sys(345)
'Turn off Point Sel Mode, if on...
if sys(345)=1 then   ' if anything is already selected w PSMode, nothing new will be selected...
>PointSelectMode  '... doing this (instead of deselecting) also allows you to use Select Previous
{
}
end if

setpoint "Set 2 pts for selection..." 2
pointval x y z 1
pointval x1 y1 z1 2

>DragSelect
{
<pointxyz [x, y, z]
<pointxyz [x1, y1, z1]
}

>SetHandle
{
}

'Reset original Ortho Mode status...
sys(347)=n

'Turn back on Point Sel Mode if it was turned off by the macro...
if nn= 1 then
>PointSelectMode
{
}
end if
'**********Macro End***********

Lar
ps: I dimly remember the rubberband issue at the top of macro 2 coming up on this forum previously. Maybe someone solved the issue...


bdeck

#1
Hello Lar,

At least we all agree on one thing:

Cntrl H is a terrible way to set handles!

Our views on this will be influenced by the ways we use DC.  I never draw the same thing twice, I draw exclusively in 2d, and my parts are rarely orthogonal. So my needs differ from  those of many others who use DC.

I personally could live without handles altogether. I concede that they may sometimes be convenient for blocks and symbols in simple drawings, and sticky handles are particularly good for multiple copies of the same item. But on balance they are more trouble than they are worth.

How often do you recall a symbol and position it on the drawing in a single move? I have never done that. The handle has never been in the right spot.

With the present method, recalling a symbol would typically take 3 commands. (load symbol, set handles, move)

With the old method, it took two. (Load symbol, move)

I have never encountered a situation that was helped by the presence of handles, and I have had many where handles were downright disruptive, particularly in point select mode.

Hot spots for symbols and blocks would be better than handles. For instance, hot spots on a pump might be the base, and the inlet and outlet centers. Gravity snap would work only on the hotspots unless they were deactivated, perhaps with a hot key. (or vice versa)

I would rebel at setting handles at the time of selection. The multiple selection process can be demanding enough in itself. The current method of setting a handle at selection time can require extensive use of the ENTER key to prevent selecting the wrong entity.

Your macro improves on that, but it still puts the cart before the horse. If you need to edit your selection before moving, do you have to reset the handles? Setting invisible handles at move time still works better for me.

Mirror and rotate should not use handles at all. They represent a crude attempt to squeeze working commands into a faulty paradigm.

Maybe others will chime in.

Best regards,

BD




prl

#2
Handles a nuisance, quick everyone, avert your eyes, Bdeck didn't mean it.  :o :o

Not sure I followed you here. Didn't the old way use handles too but they were built into the move command, set on the fly so to speak.  Now for the sake of the drag preview we set them after the selection is made and before moving/copying.

If in the old way you wanted to move/copy something and rotate and scale it at the same time, didn't we do the following??

Old DOS 6 way (this was always in preset point mode wasn't it???)

1.  make your selection
2.  set four points,  from handle point 1, from handle point 2, destination handle point 3, destination handle point 4
3.  hit m/n key - selection was moved/copied and possibly rotated and scaled all in an instant, no preview, it just did it

New Windows way

1. make your selection
2. Ctrl H for setting from handle point 1, from handle point 2
3. hit m/n key - enter drag move/duplicate preview mode
4. set destination handle point 3, set destination handle point 4 (gives move/copy visual feedback including rotation and scaling).

I agree this is slightly longer than before but the visual feedback is good.


Edit:  Because I've tweaked DesignCAD for so long using basiccad and hotkeys, sometimes I forget how the program actually works for others under normal conditions.  I can't really remember if I modified the m/n command in DOS 6 too.

janders1

Never used the dos version but handles are one of the best things about DC. Makes moving and alignment a snap. Did use Generic Cad in dos and moving and coping were no where as easy as DC.

SciGraphics

I guess I'm getting in on this a little late. What is the problem with control-H?

Jim A.

prl

Quote from: SciGraphics on May 15, 2007, 04:48:12 PM
I guess I'm getting in on this a little late. What is the problem with control-H?

Presumably nothing besides being an awkward/dumb combination for something so important.  I too have changed it, in my case simply H (activated with the left hand).

bdeck

#6
Quote from: prlHandles a nuisance, quick everyone, avert your eyes, Bdeck didn't mean it.


You  astutely noted that handles are necessary for drag preview. Thats a benefit I could live without, but I must admit it does make the program look slicker. My drag preview key is Cntrl-Z.

Quote from: SciGraphics
I guess I'm getting in on this a little late. What is the problem with control-H?
Quote from: prl
Presumably nothing besides being an awkward/dumb combination for something so important. ...

Yup. I changed mine to H, which meant I had to change ortho toggle to .........

Control-H and Control-I are the two biggest offenders in the keyboard shortcut list. Very long reach for heavily used commands.

Seems a shame to force every new user to figure this out for himself. Maybe IMSI should include a "before you start" flyer with DC software suggesting that new users change all the keyboard shortcuts.




bdeck

Quote from: prl
Because I've tweaked DesignCAD for so long using basiccad and hotkeys, sometimes I forget how the program actually works for others under normal conditions. 


Prl,

I have the same problem.  The old N command was also an array command.  I never put that functionality into the N macro, because it was so easy to do multiple Ns to make an array. I also never needed the new array commands (in the draw menu, they are very nice).  I hadn't bothered to explore them til after I had suggested my N macro to a new user to do a circular array. Perhaps the new command would have been more appropriate.......


BD






   

Lar

bdeck, I am constantly moving, duplicating, copy'n pasting, loading, mirroring, rotating things and dcad's handle system is almost as natural as picking up something with my hand and placing it somewhere.

I don't count the Move as a command because I can simply move the mouse to the handle, snap or click to pick it up, move it to its new location then snap or click to put it down. It may sound like a lot but it's all one motion to me.

99% of the time the selected entities have to be precisely placed somewhere in relation to an existing point and dcad's handles make this very easy. The fact that I have the freedom to place them absolutely anywhere makes them extremely functional.

Here's a simple example with 2d or 3d windows:
My windows have 2 sticky handles set at the bottom and top center (landscape orientation), since windows usually are centered somehow. I would load the 1st window, center snap to a wall and if the window needs to be rotated I would (with Ortho Mode) twitch the mouse in the desired direction and click, confident that the window is straight. Leaving the 1st window selected I would go throughout the drawing placing and orienting each similar window in one fluid move. I would repeat this with each window type. If I then decide to add a window type-1 somewhere, I click near any of the win-1's to select it, press N and locate/orientate by the sticky handle. Now, let's say I needed to mirror that window for whatever reason. Suddenly, my gleeful trollop amid the vectored entities is threatened because I can't mirror directly by the sticky handles. The mirror operates on the auto-handle that appeared where I clicked to select my window. It seems like I have no choice but to call up the Handle command and set 2 new handles in the exact spots where the sticky handles already are (this eliminates the auto-handle). But, instead, I simply mirror the window anywhere and, since the sticky handles get mirrored too (which doesn't matter in this case since the window handles are centered) I then pick the entity up by clicking on handle-0 and drop it where it's needed. My impending frown never had time to materialize.

Lar
         

bdeck

Quote from: Lar on May 15, 2007, 10:45:41 PM
It seems like I have no choice but to call up the Handle command and set 2 new handles in the exact spots where the sticky handles already are


Hi Lar,

Just kidding about the Satan thing.

I would have saved the window with a centerline, rather than with handles (it appears construction lines cannot be saved in a block or symbol file). That way I could use my N macro or the custom mirror command by snapping to the endpoints of the centerline, without ever setting any persistent handles. 

Please understand I recognize the value of saved handles in that type of symbol. I just never have the opportunity to take advantage of it in my drawings. For my work, gravity snaps to the endpoints of the centerline would be more useful.

If I understand you correctly, using the "Custom Mirror" option, without handles, would require fewer steps in your mirroring operation as well.

BD


prl

BD, like you I replaced the original M/N commands with my own versions years ago and I use them without thinking about them. I decided to remind myself how I have them operate.

Keep in my I work in preset point mode mostly and that I've tried to build in a bit of intelligence (overloading) into them, so depending on what I've selected and the number of points that are set, here is how they work when I hit the m/n hotkey.

Behavior 1 - if no entities are selected and one or more points are set, my m/n command automatically selects the entities with points on them and starts the dragcopy/move command using the first point as the handle.

Behavior 2 - if entities are already selected and one, two, (or three in 3d mode) points are set, my m/n command automatically sets the handles for the selection set at those points and starts the dragcopy/move command.  This gives me move/copy with rotation and scaling. If zero points are set, the default selection set handle is used giving the simple default move/copy.

bdeck

Quote from: prl
I agree this is slightly longer than before but the visual feedback is good.

No kimosabe,

Visual feedback bad.
Speed good.
Unobstructed Screen good. 

If I cant remember for 2 seconds where I set the first two points in a move operation, I'll quit drawing.


Quote from: janders1
Never used the dos version but handles are one of the best things about DC.

I agree on the basic concept, I just don't like having them in the way when I'm not using them, especially on multiple selections. To get a feel for how DC6 worked, check out the s,m and n macros, and do some 4-point operations.




Lar

Quote from: bdeck on May 16, 2007, 12:01:09 AM

If I understand you correctly, using the "Custom Mirror" option, without handles, would require fewer steps in your mirroring operation as well.

BD


No, BD. I'm saying that it would make more sense to me if Mirror and Rotate used Sticky Handle-0, if it exists, instead of the auto-handle (the auto handle - my name for it - is placed, by the program, at the spot the user clicks to select an entity or group... or the center of the selection box when drag-selecting). I place my Sticky Handle-0 at the most common insertion point for a particular entity/group and Handle-1 so that I can rotate the entity easily.

For example, for doors H-0 would be 3" away from the hinged end. H-1 could be anywhere horizontal or vertical of there to control rotating, most likely in open space so that it don't get in the way of snapping to other things. When placing doors I simply snap at the corner of the room [[ I guess I should explain that when designing I draw rectangles for the all rooms first, then I put in windows and doors on their layer, THEN I draw in the walls (on its layer) by simply snapping from room corner points to door and window points. I then turn off the "room-rectangle" layer (I'll use it again if I have to make changes to the layout)]].

When mirroring these doors here's what happens (the following takes a few seconds to happen): I can't snap at the corner of the room to select the door. If I do so I will select the room, so I have to click somewhere near the door to make sure it gets selected. I start the Mirror  command to place a door in the opposite corner of another room. The ghost image shows that the mirror is stemming from the auto-handle, which happens to be by the arc somewhere. Frustration begins to set in because any of the following options will slow me down: a] I can call up the Handle command and reset my Sticky Handles in exactly the same place they are now and I ask myself if I'm gonna have to do this every time I want to mirror a door; b] I begin to wish the Mirror command had a 'from reference point' option like the Move and Duplicate commands but then remind myself that this is undesirable because it would require me moving the mouse to the option box and back again (if forced to I would prefer to hit Tab until the option is activated then hit space to set the check mark) and if the next time I Move/Duplicate and don't want that option it will cost me a few clicks and Undos before I realize that the option is still set from before. I then remember that Sticky Handles of mirrored items are also mirrored  so I click anywhere to create the mirrored door. Then move the mouse to the mirrored Sticky Handle, click to pick it up and snap in the room corner to locate. That took about 3 seconds, 1 of which was hesitation.

Lar

bdeck

#13
Hello Lar,

I see how sticky handles could be useful with systematically designed symbols, such as yours, and how the need to place a precise point on the symbol after it is placed in order to mirror it could be annoying.

As you noted, Mirror doesnt use sticky handles, and the tools to work with handles in Basiccad seem to be half done. So an quick and dirty solution to your speed fits might be to do a Dup and Mirror in a single operation.   

A stripped down non ortho version below will flip, rotate, and copy in a single operation, with just two mouse clicks. (if  both handles lie along the wall line)  Ortho versions at:OrthoFlipCopy Macro

Since I dont ever get to use symbols, these dont really do anything for me. I still prefer the DC6 mode.

Gravity hot spots on symbols, or a  "snap to nearest handle" mode might be better alternatives.


BD

' FlipStick.d3m     Bdeck 5/15/07
'
' Select object; run macro.
'
' Set 2 points:
'     1  target point for duplicate
'     2  alignment point for placement and mirror
'
' Also works in preset point mode
'
' Note that sys(36) prevents dialog box cleanup errors.
' Sys(1)=0 does not clean up set points in preset point mode.

if sys(80) <1 then end (if no items selected)
sflag=sys(36)    ' archive silent
sys41=sys(41)    'archive rubberband style
sys38=sys(38)    ' archive text mirrro

dim x(6),y(6), z(6)
n=sys(1)   

if (n=2) then goto gottem                  'use correctly set points
sys(1)=0

Sys(41) = 1  'set rubber band style

setpoint "Set 2 points Target,  Axis" 2
   
n=sys(1)                   
if n<>2 then goto cleanup

gottem:

sys(36)=1

for i=1 to n
   pointval x(i) y(i) z(i) i
next i

if n=2 then   

  sys(38)= 0 'do not mirror text

   >Mirror
   {
         <Axis 4   'custom mirror, the only one worth using.
         <Type 0   ' dont make copy
         <Pointxyz [x(1), y(1), z(1)]
         <Pointxyz [x(2), y(2), z(2)]
   }
   >Duplicate ' MAKE A COPY OF THE FLIPPED

   {
      <Reference 0   ' 0 = use handle 1=from reference point
      <Type 1   ' 0 = fixed scale]
      <Pointxyz [x(1), y(1), z(1)]
      <Pointxyz [x(2), y(2), z(2)]              ' remove the ortho constraint and activate this line to improve functionality
   }

   >Mirror  ' PUT THE ORIGINAL BACK WHERE IT WAS
   {
         <Axis 4   'custom mirror, the only one worth using.
         <Type 0   ' dont make copy
         <Pointxyz [x(1), y(1), z(1)]
         <Pointxyz [x(2), y(2), z(2)]
   }

endif

cleanup:       
Sys(41) = sys41
sys(36)=sflag
sys(1)=0     'clean up unused points

REGEN  ' Necessary to cleanup mouse tracks ( if in preset point mode)


Lar

Nice macro. It gives you the control that the built-in Custom Mirror lacks (and the reason I don't use it too much).

Only suggestion I'll make is to check the status of the 'make a copy' option, before turning it off, and at the end of the macro return that status if it was changed (or just return the value whether it was changed or not - I think there is a way to run a command without completing it, which gives you the chance to set options).

Personally, I don't ever turn off 'make a copy' in the Mirror command. I find that option very deadly, since you don't get a chance to turn it back on before the command ends. I would probably mirror a few other items (later in the working session) before I realize the originals were deleted. Then I'd be up the creek. If I don't need the original I simply hit the Del key after I mirror.

Lar