News:

Please note new Forum URL: forum.designcad.com

Main Menu

Getxy statement

Started by edgar, March 01, 2016, 01:13:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

edgar

We have:
GETXY Statement
PURPOSE:   To get the X, Y, Z coordinates of the current cursor position
SYNTAX:   GETXY variable, variable, variable
EXPLANATION:   This statement can be used to assign the X, Y, and Z coordinates of the current cursor position to three variables. It is frequently used to provide a reference location for the rest of the macro.

I propose that it should be the GETXYZ statement (with the old name maintained for backwards compatibility).
-Ed

Bob P

It appears that getxyz works exactly like getxy in a macro, so it's only the documentation that is lacking.

DrollTroll

#2
Actually, for statements, the interpreter only checks enough characters to uniquely identify the statement. So possibly even GetX would work.

It's currently listed as GETXY so it can also work with the 2D version (I think you can omit Z and it defaults to zero, but I'm not certain).
25 years with DesignCAD