Author Topic: Getxy statement  (Read 349 times)

edgar

  • Hero Member
  • *****
  • Posts: 505
  • Retired-loving every minute of it
    • My Lame Site
Getxy statement
« on: March 01, 2016, 01:13:53 PM »
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

  • Hero Member
  • *****
  • Posts: 1139
    • Era Replica Automobiles
Re: Getxy statement
« Reply #1 on: March 01, 2016, 02:06:44 PM »
It appears that getxyz works exactly like getxy in a macro, so it's only the documentation that is lacking.

DrollTroll

  • Kindly Curmudgeon
  • Administrator
  • *****
  • Posts: 4092
Re: Getxy statement
« Reply #2 on: March 01, 2016, 03:12:49 PM »
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).
« Last Edit: March 01, 2016, 03:14:41 PM by DrollTroll »
2016 marks my 24th year in DesignCAD-Land!