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.

Point relative broken?

Started by elmerbug, August 15, 2019, 02:23:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rob S

With aaaaaaaallllll of that having been said and recorded herein, it seems to me that this "very slightly broken" and only applicable when using a very unusual method repeatedly to invoke move or copy command, that this problem should be declared insignificant, nul, and void, and easily work-aroundable by numerous methods.

Based on the assumption that this is the issue the OP is concerned about, which it may or may not be, then:

Programmers, please look elsewhere for bigger more rewarding, and more profitable ventures!!!
User since forever

Dr PR

#16
BD,

With respect to the Point Relative problem I mentioned, are you re-selecting the object each time you Move/Duplicate it? If so, it will always work the same every time.

The problem appears when you select the object once, and the use repeated Duplicate (without From Reference Point enabled) operations, without deselecting the original copy. The first copy will be dragged and placed with the grab handle and all subsequent copies will be dragged and placed with the user-defined (0) handle.


Rob,

I'm not sure I agree. I don't know if my analysis is correct, and I suspect BD will agree. There may be a real problem here.

Phil
DesignCAD user since 1987

bdeck

#17
This thread started with an attempt to help a user solve a problem, and has now degenerated into a suggestion that DC should perform moves relative to handles, even when the user has expressly chosen not to use handles by clicking the "from reference point" option.

No.

I'm inclined to agree with RobS. Even though the move and duplicate functions are badly broken, at least they can be easily fixed with a macro. Lord knows what would happen if IMSI were to "fix" them while such a suggestion is afloat.

Sadly, every new user must stumble upon this bug for himself.

Point Relative:
Despite its poor design, Point Relative is not buggy. And there is no bug in the interaction between Point Relative and Move/Duplicate. (AFAIK)

Handles:
The current bug occurs because DC fails to ignore handles when the user chooses the "From Reference Point" option in a Move or Duplicate.

The placement error happens only when there is a single persistent handle associated with an entity (the 0-handle).
The size of the error is distance from the 0-handle to the grab handle.
If the grab handle coincides with the zero handle, there is no error.
If there are two selection handles associated with the entity (0 and 1), there is no error, regardless of the location of the grab handle.
If the selection involves multiple entities, there is no error, because the grab handle will always coincide with the 0 handle or there will be 2 handles, and the handles will not persist.

Macros:
Using the N or M macros to duplicate or move an entity avoids the bug.

Using  "Change ENT_NHANDLES, 0" in a macro will remove all visible handles from an entity, including the grab handle.
This command will also cause all future grab handles on that entity to be hidden (but still functional) until made visible in a macro. (This function returns DC to the look and feel of the DOS versions, if I remember correctly)

Dr PR

#18
BD,

Now I am finally beginning to understand your point.

Here are the Duplicate function "From Reference Point" instructions from the Reference Manual:

"From Reference Point. When enabled, this option lets you place the duplicate using a reference point. Just set a reference point relative to the original. Then set another reference point relative to the desired location for the duplicate. The duplicate is inserted into the drawing at the same scale as the original."

OK, first we set a reference point relative to the original. To me this means the reference point sets a relative distance and bearing from the reference point to the original. If you think about it it shouldn't matter how many handles are set on the object or where they are set.

Then when we set the second "reference point"  relative to the desired location of the duplicate, the object is moved the appropriate distance and bearing from the second reference point. Again, it shouldn't matter what part of the object (or the whole object) the relative bearing and distance are to if the object as a whole is moved the same relative bearing and distance as from the first reference point.

However, on page 198 of the Reference Manual (Version 18), under Set Handles it states "selection handles are used to help you move, copy or manipulate the selection."

"For example, when you copy an object with the Duplicate command, the first selection handle is located at the destination point you set."

That's pretty unambiguous to me. It says if you set user-defined handles they will be used for Move and Duplicate. After all, what would be the purpose of user defined handles if they weren't used? They are very useful for setting scale or orientation of objects.

If you have created user-defined handles they should be used for Move/Duplicate if "From Reference Point" is not enabled. If user- defined handles are not set then the drag handle should be used.

If you use the "From Reference Point" option with Move/Duplicate the first reference point will determine the bearing and distance to the user set handle (0) if it has been defined. Obviously, if user defined handles have not been set they cannot be used, so the object will be moved/copied relative to the distance from the reference point to the object as a whole.

However, if you stop to think about it, any grab handle or user-defined handle is irrelevant. No matter where you place it on the object, the relative distance and bearing from the object as a whole to the reference points will be the same.

If a user-defined handle (0) marks a specific location on the object it really is no different than a grab handle. The relative distance and bearing from the reference point to the object is the same no matter what point on the object is used to select it.

So the "From Reference Point" option has nothing to do with handles. It merely allows you to set a point some distance and bearing from the object, and then allow this "reference point" to serve as a drag handle to move the object.

I agree with you that the user-defined handle (0) should have no affect on the operation of Move/Duplicate using the "From Reference Point" option.

****

Your macros seem to get around the problem by eliminating user-defined handles. Unfortunately, that will eliminate object specific handles that the user has set, but it does make the "Use Reference Point" option work correctly.

I would prefer that the program be modified so user-defined handles are ignored with the "Use Reference Point" option is selected.

Phil

PS: This has nothing to do with the Point Relative command.
DesignCAD user since 1987

bdeck

#19
Quote from: Dr PR on August 23, 2019, 11:01:37 AM
Now I am finally beginning to understand your point. ......

So the "From Reference Point" option has nothing to do with handles. It merely allows you to set a point some distance and bearing from the object, and then allow this "reference point" to serve as a drag handle to move the object.

I agree with you that the user-defined handle (0) should have no affect on the operation of Move/Duplicate using the "From Reference Point" option.

Your macros seem to get around the problem by eliminating user-defined handles. Unfortunately, that will eliminate object specific handles that the user has set, but it does make the "Use Reference Point" option work correctly.

I would prefer that the program be modified so user-defined handles are ignored when the "Use Reference Point" option is selected.

Good Man!

bd

PS Actually the macros simulate "from reference point" by doing the grunt work with user defined handles so that the user doesn't have to. As you noticed, after using the macros on single entities, one or two visible preset handles appear when the entity is reselected, but only if "sticky handles" are enabled. 

My vote is to get Dimensions fixed before doing ANYTHING else.


bdeck

One more thought regarding sticky handles.

It appears that the bug discussed here can be avoided by simply unchecking "Enable Sticky Handles" at Menu/Options/Options/General. The reason is that the bug occurs only if a single sticky handle is visible on a selected entity.

It appears DC has shipped for some time with sticky handles enabled, and I've considered the visible handle marks merely a minor annoyance, without thinking about the cause, because I have never used handles expressly. It took a complaint from elmerbug and a comment by Lar in another thread to make me think more about the issue.

The Move and Duplicate commands might be improved if they were to default to "from reference point" when no handles have been set for the present selection.

However, even when it works correctly, the "from reference point" option is a poor match for the N and M macros, as the option allows only one reference point and is slower than using a handle when doing moves and single duplications.  One benefit is that it does not leave unwanted handles on the screen when sticky handles are enabled.




Dr PR

BD,

It would be an EXTREMELY bad idea to default to the "From Reference Point" option for Move and Duplicate!!!!!

That would change the way the program has operated for decades, and would really screw things up for those of us who never use that option!

For those who do not use user-defined "sticky" handles the solution is to use the program as it was designed - disable "Use Stricky Handles in the "Options/options/General" tab.

Phil
DesignCAD user since 1987