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.

Copying coordinate bar values to position dialogs

Started by Frederick, February 11, 2007, 03:14:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Frederick

Is there a way to copy the XYZ values from the coordinate bar to the Point Relative dialog or other position dialog or does someone have a macro that does this?

If noone has a macro, can someone think of a reason such a macro wouldn't work or would be otherwise useless?

Thanks,
R

prl

Unless your are running your display precision at 15, don't ever do this.  You are corrupting your drawing doing this.

If you explain your goal for doing this, maybe I can suggest a macro and drafting procedure that will do the same thing without distorting the data.

Frederick

Thanks prl. Boy do I have a lot to think about and I'm glad I'm asking these questions.

Let me stew on this for a while.
R

Lar

The way I see it, copying from the Coordinate Bar to the Point Relative dialogue would be redundant because the Coordinate Bar displays where you are located at the moment and PRel starts off from where you are at the moment. In essence the CBar data is already in the PRel box and it now needs you to tell it how far away you want to go...  unless you have a need to move a distance that is equal to your current absolute location from you current absolute location.

Copying this data to the PointXYZ dialogue would locate you exactly where you already are at the moment.

Putting it in the Point Polar could prove interesting...

Having said all that BasicCAD has a GetXY statement that gets the current cursor location and allows you to store them in variables, so copying and pasting them is unnecessary (and would require some juggling to get the three values in, since you can only paste one line at a time). Here's the example from the Macros Help file:

Getxy x1, y1, z1
>Line
{
For j = 0 To 360 Step 45
  x = x1 + Cos(j) * 10
  y = y1 - Sin(j) * 10
  <Pointxyz [x, y, z1]
Next j
}

which draws an 8 sided circle center on the where ever the cursor is when the macro is called.

Lar

Frederick

Thanks Lar. Still processing the accuracy/precision thing and until I grasp that fully I'm not going to do anything but snap to existing points, enter round numbers into PR and check all my measurements diligently.

BTW does Getxy store the values with full 15-place precision or the display precision?

R

Bob P

All calls to get values are stored with full precision.  Display precision is only for the screen.

Lar

Rick, BasicCAD has a Precision statement that sets the number of decimal places for screen display. So if you have...

sys(3)=1            'makes layer 1 the current layer
precision 15
message sys(3)   


...you would get a message box containing the following:  1.000000000000000

To get no decimal places use precision 0 (values will get truncated to the nearest integer). Without the precision statement it defaults to 3 decimal places.

Lar