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.

combination "gravity move" and "Relative Point" could work more logical ...

Started by JJG, January 07, 2010, 01:22:56 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

JJG

Who among us does not use fluent combination "gravity move" and "Point Relative" [Shortcut Key: , (comma) then immediately Shortcut Key: ' (single quote)] to define the beginning of an action relative to a point of the drawing that can be snap ? It's one of the basis of the use of Designcad ...

I copied verbatim from the guide utillisation (use of Gravity Move) : Menu: Point / Gravity Move
                                                                                           Shortcut Key: , (comma)
" Snaps the cursor to the nearest point in the drawing, but it does not set a point there. This command lets you move the cursor to another point precisely without having to "zero in" on it. As soon as you choose the command, the cursor moves to the nearest point in the drawing, without setting a point.
Gravity Move is often convenient for moving the cursor to a point in the drawing to get to a known location before using the cursor keys or the Point
Relative command.
"

But unfortunately, the combination of "gravity move" and "Relative Point" do not know automatically choose "Last Cursor Position", yet that is the obvious and only logic choice...

And it's often very frustrating having to delet then repeat the actions that should have happened much at once if DesignCAD knew automatically choose "Last Cursor Position" in this case!

Lar

If no point is set when you start the Point Relative command the 'Last Point' option is grayed out.

I remember 'Last Cursor Position' being automatically chosen (but not always) during a command when points are already set and you move the cursor away from the last point before calling up the Point Rel command. However, when testing, during this post, it always opened on 'Last Point' when points were already set and I moved the cursor away from the last point.

Lar


JJG

indeed, as you say, "If no point is set when you start the Point Relative command the 'Last Point' option is grayed out" ,and i would add to that, that "Last Cursor Position" is the default choice : also no problem.

but if one or some points have alrready been set, and you do both "gravity move" and "Point Relative" to another point (of course to snap it as a reference for the next action), the window "Point Relative" open on "Last Point", as you say, and not on "Last Cursor Position" , while it should be the case because it is the only logical solution : if one takes great care to snap a particular point using "gravity mode", it is of course for use it as new reference for the next action, instead of taking the "Last Point" or "Refence point", or I do not know what other point : this seems obvious ... no?

Dr PR

JJG,

I don't understand what you are saying.

If I move the cursor near the end of a line and press the comma (,) key the cursor snaps to the line end.

Then If I press the apostrophe key (') and start the Point Relative function it defaults to "Last cursor position" and a point is set relative to the last position (the end of the line).

This works the same if I have nothing selected, if the line is selected, or if some object other than the line is selected.

It works the same if I am not in the middle of an operation (drawing a line, for example) or if I am in the middle of an operation (drawing a line, for example).

So, on my system gravity snap followed by Point Relative always works the same - the point is always set relative to the last cursor position.

Note: The Point Relative command may default to "Last Point" when the program is first installed, but it remembers the last option you selected. After you have set "Last Cursor Position" once it remembers it forever. I do not remember the last time I had to set this option - it may have been many years. This is the only Point Relative option I ever use.
DesignCAD user since 1987

JJG

Dr PR,

I am astonished that you don't understand what I'm saying.

Totaly OK when you say "If I move the cursor near the end of a line and press the comma (,) key the cursor snaps to the line end.
Then If I press the apostrophe key (') and start the Point Relative function it defaults to "Last cursor position" and a point is set relative to the last position (the end of the line).
This works the same if I have nothing selected, if the line is selected, or if some object other than the line is selected
."

It's the same case that I explaine in the first part of my answer to Lar.

But yet try this, please =

Open a drawing (any, which already contains something ...), and do the following action :
draw a line, starting on a point where you want ; then press the apostrophe key (') to put the 2nd point to X=10 & Y=10 first (also Point Relative, choice "Last Point") ; then snap one point of one existing entity (with pressing the comma (,) key and followed by Point Relative) to put the last point at X=15 & Y=25 from the point of this entity you choice : OK ? you'll see that "Point Relative" do not offer "Last Cursor Position" (this would surely be the most logical, because you snap a existing point as new reference for the next point to be setting), but unfortunately it (Point Relative) propose to you just the last choice you choice before ...  :-[   so you must particulary pay attention not to forget clicking "Last Cursor Position", because if not, the result will not be what you want to do.
Yet, after taking care to snap a particular point using both the comma (,) key and followed by Point Relative (apostrophe key (')), the choice of "Last Cursor Position" is the only logical solution : so it'll be a good improvement if a routine in the code of Designcad could detect this combination of key (, & '), and then choice "Last Cursor Position" a default in this case.

OK ?

Dr PR

JJG,

I see what you are saying:

Point Relative should automatically change to "Last cursor position" after you have moved the cursor. It defaults to the "Last point" option.

There is a problem with this idea. Occasionally the mouse/trackball moves when you are not touching it. This happens when the optical digitizer is positioned right on the line between "1" and "0". A slight bump of the desk can cause the bit to toggle. When this happens the cursor is no longer where you think you left it. Just move the cursor around, stop, and watch the coordinate bar. It won't take long until you see the cursor position change a second or so after you take your hand off it.

This happens more often that you might think. If you always use "Last cursor position" all mouse/trackball position errors are additive - the error continues to accumulate. It can ruin a drawing.  I have had the random mouse movement glitch cause slight position errors to accumulate in drawings. One was so messed up when I eventually noticed the errors that I had to discard several days work and start over.

For this reason Point Relative defaults to "Last Point." This mode is immune to random bit flips in the mouse/trackball. Many users will not want it to change automatically to "Last cursor position" and would be very irritated if it did.

However, I prefer the "Last cursor position" option and always set it when I first use Point Relative. After that the program always defaults to this option when the Point Relative command is used. For me this is the most convenient way to use Point Relative. I wish I could change the startup configuration so this is the default. However, I watch the coordinate bar closely for cursor creep, and frequently double check dimensions, especially before drawing more relative points from an existing object. I have been bitten several times, so I never trust the mouse position.
DesignCAD user since 1987

JJG

Dr Pr,

I think you have not exactly understand : I do not ask that Point Relative should automatically change to "Last cursor position" after you have moved the cursor as you say, but only in the case you press (together) the comma (,) key and apostrophe key (')  ; you see the difference ?
When you press both comma (,) key and apostrophe key ('), the window "Point Relative" is opened, and you can move the mouse, the coordonate are locked during all the time the window is opened. And another remark : when you press both comma (,) key and apostrophe key ('), you may not press comma (,) then let go and then press apostrophe key (') it's effectiv not good : you have to press comma (,) key , hold it down, and press apostrophe key (') : so there's no risk of bad result, and so a routine in the code of Designcad could detect this combination of both key (, & ') .

Because just when moving the cursor is not a good condition : the mouse can move from itself, unless you did want, and so, therefore, it is not desirable that the condition to automaticaly choice "Last Cursor Position" in Point Relative would be just moving the cursor : it must be only press (together) the comma (,) key and apostrophe key ('), which clearly signifie that an existing point is snaping to becomes a new benchmark for the next action.

Also, I repeat, it'll be a good improvement if a routine in the code of Designcad could detect this combination of both key (, & '), and then choice "Last Cursor Position" a default in this case.

Dr PR

JJG,

I get it now. I did not understand that you meant to press two keys together. A "Gravity-Snap-Point-Relative" command.

When you attempt to press two keys simultaneously one or the other will make contact first. Even if they both switched at the same instant the keyboard encoder scans the keys one at a time so one would be sent to the computer first and the other next. The order will be unpredictable.

Normally the program would process the first key and execute the command before the second key code arrived. To use the two key sequences (,') or (',) the program would have to delay after the first key arrived and wait for the second. What happens if someone only wants to execute Point Relative in the normal way? They press the (') key and nothing happens - until another key is pressed so the program can decide whether it is the (',) keys or just the (') key.

This could be solved by building in a delay loop for processing (') and (,), to wait for some period before executing the single keystroke. The delay would have to be long enough to allow someone to get both keys pressed, but it wouldn't slow the program noticeably (the CPU spends most of its time doing nothing while waiting for the user to do something). However normal keyboard processing routines do not have this delay.

****

You could do the same thing with a macro. Assign (CTRL ') to execute the macro. This will work because the keyboard decodes the CTRL key and supplies a modified code for the apostrophe - no two-key sequence to be decoded. The macro would first perform the gravity snap without setting the point and then open the Point Relative dialog. Maybe one of the clever macro programmers can even figure out how to set the "Last cursor position" option.
DesignCAD user since 1987

Lar

That may not be possible in a macro because starting a macro in the middle of a command would end the command.

Also, I don't think you can call up the Point Relative dialog box within a macro (you can do it manually while the macro runs, though). The points would have to already be written in the macro, in the >Line command. To make this practical variables would have to be used, which means the user would have to type them in basiccad's Input Box before the line command was issued by the macro... actually, writing this caused me to figure how to do it but it could only be used at the beginning of the line command. Also, it would take almost the same amount of user activity as without the macro, but here goes...

'***MacroStart***
'Macro example to move cursor then start PointRel with 'Last Cursor Pos'
'Lar, Nassau, Bahamas
'9 Jan 2010

'Notes:
'Set a shortcut key or you might as well do this the normal way.. ..
'Be careful the mouse does not move between the comma and calling up the macro.

'Instructions:
'Use comma to move to the desired location then call up the command.. ..
'If Y and Z =0 just enter X... if Z=0 just enter X and Y.

GetXY x, y, z   'get cursor position...

input "Enter the following:  X value, (space), Y value, (space), Z value then continue drawing the line normally..." xx,yy,zz

>Line
{
<pointxyz [x+xx, y+yy, z+zz]
<incomplete
}
'***Macro End***

Lar

JJG

To Dr PR :

you should not have to complicated much more ! it is much much easier !!!
in previous answers, I explained the order of the maneuver : you have first to press comma (,) key , hold it down, and then press apostrophe key (') (while holding the other down !). But never press both at the same time !
So, I think it is not a problem for Designcad to "scan" the key(s) who are down (or not), and then detect when both (, & ') are down, and then choice "Last Cursor Position" for Point Relative as default in this case.

Now OK ?


To Lar :

yes, I also thought about a macro for this, but I have not found a correct solution, because this way of use of comma (,) key + apostrophe key (') is not only for line-command, but for many many possible uses : that's why I'm asking for such Feature Requests.
Besides, there are many other functions in DesignCAD where I think there could be more and better logic-automation in the choices of parameters, for a much better, much easier and much more intuitive use : in the near future, I will suggest someones in the Tips and Tricks Topic or in the User Contributions of Designcad SDK Topic.



Rob S


The existing "point relative with reference point option" can be used for what you want, and this way you have no risk of the cursor moving in between pressing "comma" key, and then the "point-relative"

When you need a point relative to an existing point but not the last point you hit single quote, click on "reference point" type your offsets, enter or OK, and gravity-snap the existing point.

I suspect a macro could be created to use this combination more efficiently
User since forever

JJG

Thank you Rob S !

so far, I've never understood the usefulness of option "reference point" in Point Relative ... (not lol !).
So the result is exactly the same as the combination of comma (,) key (holded down) and then press apostrophe key (') and choice "Last Cursor Position" in the Point Relative window ... !  it's just a little slower ... or a matter of habit !

But in your description of this action, when you say  "and gravity-snap the existing point" , I think this is wrong : you do use the right click instead !

So the success of this action is : "when you need a point relative to an existing point but not the last point you hit single quote, click on "reference point" type your offsets, enter or OK, and right-click the existing point (which becomes a new benchmark).



But how open the window "Point Relative" and choice "reference point" or "Last Cursor Position" in a macro ???


That's why I still maintain my demand of such a routine in the code of Designcad that could detect this combination of both key (, & '), and then choice "Last Cursor Position" a default in this case.




Rob S

User since forever

JJG

So excuse me, I understood "gravity snap" as "Gravity move", ie comma key.

Pearco

Right click = gravity snap to set point is one of the best features of Dcad.  Don't  anyone mess with it and I know you were not suggesting they do so.
Jim
User since ProDesign 1.5