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.

Copy / Paste from fields in Coordinate Bar

Started by MarkX, January 16, 2012, 07:50:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

This should be easy ;-)

Currently you can't copy or paste out of the coordinate bars. So you can't pop up to the coordinate bar and grab the value of say the "X" position and then apply it to some other object using the "X" field for that object. You would actually have to write down the values if you wanted to capture or apply them!.

Alternatively, make the XYZ points of the selected object's handle available in the info box (currently they are NOT available for 3D objects).

Mark

Rob S

That would be tricky, because it actually provides the co-ordinates of the cursor, so it would be hard to tell it which box to copy without moving the cursor up there, and while so doing the numbers would change.

What you can already do is pin the info box open, and grab the x or y or z co-ordinates of any points of the selected object with no risk of them changing on you, and then you can paste same into the info box for some other selected object, or for other points of the same object.

If you had frequent need to grab two or all three co-ordinates into the clipboard, I suspect a macro could easily do that.
User since forever

MarkX

Quote from: Rob S on January 16, 2012, 09:11:02 PM
That would be tricky, because it actually provides the co-ordinates of the cursor, so it would be hard to tell it which box to copy without moving the cursor up there, and while so doing the numbers would change.

What you can already do is pin the info box open, and grab the x or y or z co-ordinates of any points of the selected object with no risk of them changing on you, and then you can paste same into the info box for some other selected object, or for other points of the same object.

If you had frequent need to grab two or all three co-ordinates into the clipboard, I suspect a macro could easily do that.
Hi Rob,

You can get up there without moving the cursor using F6.

I don't want to go to the info box on an object with possibly hundreds of points and try to determine which one corresponds to the one that is the handle. Especially when all the information is already up on the coordinate bar!

It would be great if the info box just provided the handle XYZ like it does for 2D objects.

Technically, it shouldn't be that hard to enable copy/paste in the fields. In fact, they probably had to over-ride the default behavior of the fields to get it NOT to copy/paste.

Thanks,
Mark

paulerens

Mark,
In 2D are 2Handles possible and 3D 3Handles
Do you need only the coordinates of the first handle?

Paul.

Lar

Quote from: MarkX on January 16, 2012, 09:23:57 PM
It would be great if the info box just provided the handle XYZ like it does for 2D objects.

Did you guys upgrade without telling me again?? Where in the info box does it give the XYZ values for a (selected entities?) handles, 2D or 3D, and how does this relate to an entities points (since selection handles - if that's what we're talking about here - can be anywhere in the drawing)?

Anyway, here's a tip that I hope is relevant to the subject: if you want to make use of anything that can be snapped to (points, handles, midpoints, intersections, center of gravities, etc) simply draw a temporary 2 point line, snapping its first points to the needed coordinate. Then you can totally ignore what the x, y and z values are and just use point-1 to snap whatever to. If you need to know the values then select the line and use the info box for point-1. When done delete the temporary line.

Lar

MarkX

Hi guys,

What's all the resistance here about? All I want is for the coordinate bar to become USEFUL ? Why is that a bad thing?  The user guide talks about using these coordinate fields just this way, but it turns out that in practice they are nearly USELESS because of a simple bug.

If you gravity move or gravity select on the corner of an object, those coordinates are momentarily available in the coordinate boxes. If you jump up there with F6, you can then move the object around using those coordinates. This is how it works in at least one other system, and its really useful. Unfortunately, the coordinate fields in DC won't let you copy/paste because they have been taken over by the toolbar selection pop-up menu, which is really unnecessary. When you're in a field its not time to be thinking about changing toolbar setups.

Thanks,
Mark

Rob S

#6


Not so much resistance, but given the time it takes to get even just those new features we really need, and the risk of breaking what we have, some of us may be offering ways to do what you need with what we got.

One caveat when copying and pasting from co-ordinate fields info box (or co-ordinate bar if it were possible), you will only get the display precision and not the full precision of the point.

If you use this method to get points to align in a plane, you really need to paste back the copied co-ordinate to the original point as well

Say your point was originally at 1.03245643233  and you have copied the displayed 1.032 onto the clipboard, the point you paste this to will be at 1.032 and not 1.03245643233
User since forever

Lar

#7
I like your idea Mark, now that I understand what you are talking about. Before your last post I was very much confused by your use of the word 'handle', which has a very specific meaning in dcad and doesn't apply here.

Also, keep in mind that a feature request could take a billion years or more to be implemented so we are giving you tips you could use right away.

Lar

ps: Actually, I'm still confused by the bracketed part of this line, since it suggests that the info box shows the handles of 2D objects, which it doesn't:
Quote from: MarkX on January 16, 2012, 07:50:38 PM
Alternatively, make the XYZ points of the selected object's handle available in the info box (currently they are NOT available for 3D objects).



MarkX

Quote from: Rob S on January 17, 2012, 08:48:36 AM
Not so much resistance, but given the time it takes to get even just those new features we really need, and the risk of breaking what we have, some of us may be offering ways to do what you need with what we got.
From a programmer's standpoint, the odd thing about these fields is they don't already cut/paste. Cut/Paste is the standard default behavior in most programs. So setting this right should be almost trivial.

QuoteOne caveat when copying and pasting from co-ordinate fields info box (or co-ordinate bar if it were possible), you will only get the display precision and not the full precision of the point.

Are you sure? The reason I ask, is that when I increase the precision in the Options/General settings box, the displayed precision also increases. So the display and the setting seem to go hand-in-hand.

Or are you saying that if I use the values this way that I should crank up the precision to 11?

Thanks!
Mark

MarkX

Quote from: Lar on January 17, 2012, 08:52:28 AM
I like your idea Mark, now that I understand what you are talking about. Before your last post I was very much confused by your use of the word 'handle', which has a very specific meaning in dcad and doesn't apply here.

Also, keep in mind that a feature request could take a billion years or more to be implemented so we are giving you tips you could use right away.
...
ps: Actually, I'm still confused by the bracketed part of this line, since it suggests that the info box shows the handles of 2D objects, which it doesn't:
Quote from: MarkX on January 16, 2012, 07:50:38 PM
Alternatively, make the XYZ points of the selected object's handle available in the info box (currently they are NOT available for 3D objects).
You're right. The situation is worse than I remembered. The info box doesn't expose the handle position to you even for 2D objects, though it could be functionally the same for a pointmark. So there's no way to get the handle values, except via the coordinate bar, which doesn't let you copy or paste.

Thanks!
Mark

JJG

Mark,

If you need to know the the handle values, use a macro for that : it's relatively trivial by this way.

For example, I had opened a topic where we discussed all this in detail, with a certain PRL, a member that I personally regret that he no longer participates in this forum, because his experience really has been very beneficial for all here !

The topic in question :   http://forum.designcad.com/index.php?topic=1875.0

Lar

Here's a macro that puts the xyz values of the handles in the text block, which stays open so you can copy whatever you want. If you want you can just copy 1 value then press esc to terminate the text block command. After pasting you can open the text block and the info will still be there to get another value (as long as you did not change anything previously). You can also copy everything and past into Notepad. Or just insert the text into the drawing then you can select them individually later and copy the text from the info box.

Lar


'Handles XYZ Values.d3m
'by Lar
'17 Jan 2012

'Macro will print values in the TextBlock for user to use copy to clipboard or whatever...

precision 11

'handle0 xyz...
H0_X$=sys(190)
H0_Y$=sys(191)
H0_Z$=sys(202)

'handle1 xyz...
H1_X$=sys(192)
H1_Y$=sys(193)
H1_Z$=sys(203)

'handle2 xyz...
H2_X$=sys(194)
H2_Y$=sys(195)
H2_Z$=sys(204)


>TextBlock
{
<incomplete
<TextBegin
<Text "You can change amount of decimal places by changing the "
<Text "'precision' in the BasicCAD macro and running it again."

<Text ""

<Text "Handle_0 XYZ:"
<Text [H0_X$]
<Text [H0_Y$]
<Text [H0_Z$]

<Text ""

<Text "Handle_1 XYZ (**IGNORE IF NO HANDLE_1**):"
<Text [H1_X$]
<Text [H1_Y$]
<Text [H1_Z$]

<Text ""

<Text "Handle_2 XYZ (**IGNORE IF NO HANDLE_2**):"
<Text [H2_X$]
<Text [H2_Y$]
<Text [H2_Z$]

}



Dr PR

Mark,

You have brought up a useful addition to the program, and a few possible extensions.

1. If I was creating your function I would have a keystroke function that would capture the coordinate bar values at maximum program precision (and not display precision) and save them in three "registers" like storage locations in HP calculators. Great, now we have the current coordinates, so what do we do with them?

2. For one they could be automatically pasted into the Point Absolute function, XY values for 2D and XYZ for 3D. This should be a user selectable option since we have had a lot of requests for these initial values to ve zero. They all you would need to do is modify the  variable X, Y or Z) that you want to change without having to enter the other values.

So if you want to move an object you would press "M" to start the move function, the Shift/colon to open the Point XYZ function, change the appropriate variable, and press Enter, Enter.

3. We could have a new Move function (Shift M?) that just does all three things - capture the coordinate bar values and show them in a Move dialog. Then you type in the desired values and press Enter. Note: this would work from the current cursor position, making every point on an object a handle for moving the object if you first gravity snap to it. So gravity snapping to select an object would also set the handle for moving the object, as it does not if you double snap.

Is this somthing like what you are asking for? Like others have said, there is a very long wish list for new features, so it may be a while before it happens.

Phil
DesignCAD user since 1987

Dr PR

Lar,

I think the Info Box reference just means that you can find the coordinates of all points in an object. Click the Detail button and  selection lists are available to select individual points in the objects - not handles, although the handle may be on one of the points.

Of course this is almost useless because you have no visual clu to which point you are looking at - not very helpfil if you have selected a sphere with hundreds of points.

Phil
DesignCAD user since 1987

MarkX

Quote from: Dr PR on January 17, 2012, 11:46:32 AM
1. If I was creating your function I would have a keystroke function that would capture the coordinate bar values ...
2. For one they could be automatically pasted into the Point Absolute function, XY values for 2D and XYZ for 3D. ...
3. We could have a new Move function (Shift M?) that just does all three things - capture the coordinate bar ...
Is this somthing like what you are asking for? Like others have said, there is a very long wish list for new features, so it may be a while before it happens.

Hi Phil,

These are all good ideas. But knowing a bit about programming interfaces, I figure its slam-dunk simple to re-open the fields to copy paste. They were probably copy/paste before someone had the idea of making the toolbar selection available in them. Opening up the fields would get you half-way towards your insightful suggestions with very little programming time.

Let me ask you the question I posed for Rob. Does the coordinate fields display value differ from the actual values even if you have the precision set to 11 (or 10). There must be some point at which the display precision matches or exceeds the actual precision.

Thanks!
Mark