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.

custom mirror and keyboard issues

Started by bdeck, July 05, 2008, 11:23:45 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bdeck

1) Any attempt to set the first point of a custom mirror using line snap (K command) fails.

The reason is that custom mirror requires clicking a box in the mirror dialogue, and DC assigns keyboard focus to the dialogue, even though it does not use keyboard input.

Here is a simple solution for this and similar issues on other commands:

After selecting the custom mirror (or other checkbox) in the mirror dialog, hit the escape key to hide the command dialogue. (or click the close box)

Keyboard focus is now returned to the drawing window, and the k key will work for setting line snap.


The command dialog may be restored, if needed, with the icon on the toolbar.

2)  A more troubling issue is that in custom mirror mode, the shift key will not work to set the second point of an orthogonal mirror. This forces the user to return to the dialog box to select x or y axis options, or to pre-draw a mirror line.

DC should fix the shift key bug and return to the practice of defaulting to custom mirror mode.

This fix would eliminate the need to ever use the mirror dialog, as all mirrors could be drawn more quickly using custom mirror.

In the meantime, heres a macro that solves both problems for 2d work. Assign it to the "/" key to avoid ever having to use the mirror dialog.

' cm6.d3m,   Custom Mirror 6   BDeck  7/08
' Mirror replacement macro (this version is for 2d only) 
' Similar to mirror command in version 6.
' Allows shift key for orthogonal custom mirror.
' Eliminates need for dialog box.

' All instructions appear in status bar.


sys(470)=1     'block other commands
sys41=sys(41)  'rubber band mode
ns=sys(80)

if ns=0 then end

gosub clickline

sys(41)=sys41   'cleanup

end



clickline:
   Sys(41) = 1 'rubberband line for user points
   Setpoint "Set two points to define custom mirror", 2
   If Sys(1) < 2 Then return

   sys(36)=1 ' silent mode for duration of macro

  >Mirror
  {
  <Axis 4  ' 4 = custom mirror  (Thanks to prl for documenting this parameter)
  <Type 1  ' 0 = don't make copy , 1 = copy   
  Pointval x1 y1 z1 1 ' get the first point the user set
  <Pointxyz [x1,y1,z1]
  Pointval x2 y2 z2 2 ' get the second point the user set
  <Pointxyz [x2,y2,z2]
  }

return



BD

Dr PR

bdeck,

I have never understood how the "Custom Mirror" function is supposed to work. The Users Manual states "uses a mirror defined by two points." To me that is totally meaningless. Is the mirror perpendicular to a line between the points? Do the two points somehow define the plane of the mirror with respect to the object to be mirrored? Something else? Every time I have tried to use the command the results are apparently totally random. Consequently, the command is worthless.

Can you explain how Custom Mirror is supposed to work?
DesignCAD user since 1987

bdeck

#2
Hi Dr PR,

I neglected to mention that the macro above is for 2d only.

In 2D, think of custom mirror as a centerline. The 2 points define a center line about which the selection is flipped, without regard to handles.

In 3d, 3 points are required to create a mirror plane. A flipped copy of the selection is created on the opposite side of the plane.

When I get time I'll try to expand the macro into a 2-point or 3-point 3d custom mirror command.

BD

PS:  Custom Axis is the one that always confused me.  Can't imagine who would use it, or why.

PS: 3D version is now posted at http://forum.designcad.com/index.php?topic=1459.0

janders1

I use custom mirror almost all the time. It is very handy to join 2 halves of a wing or draw one half of a fusalage and then mirror the other one.