ALT CLICK: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
CatoH (talk | contribs)
No edit summary
CatoH (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{Command|syntax=ALT_CLICK <control type> <control num> <value>
{{Command|syntax=ALT_CLICK <control type> <control num> <value>
|description=:Enables the ALT+Click feature in the macro dialog.<br>
|description=:Enables the ALT+Click feature in the macro dialog.<br>
:ALT+Click feature allows you to interrogate a coordinate and place it a dialog’s input field.
ALT+Click feature allows you to interrogate a coordinate and place it in a dialog input field.


|param1=<control type>|param1_desc=set type, example INPUT
|param1=<control type>|param1_desc=set type, example INPUT
|param2=<control num>|param2_desc=The number of <control type>
|param2=<control num>|param2_desc=The number of <control type>
|param3=<value>|param3_desc=What value to interrogate when ALT+Click, example HPOS
|param3=<value>|param3_desc=What value to interrogate when ALT+Click, example HPOS
You can use : HPOS VPOS DPOS TOPH TOPV TOPD RAD ANGLE DIAV OPCSH OPCSV OPCSD OPCSTOPD
Available for <value> : HPOS VPOS DPOS TOPH TOPV TOPD RAD ANGLE DIAV OPCSH OPCSV OPCSD OPCSTOPD
}}
}}


===Example===
===Example 1===
:INPUT 65, 10, 70, 24, x1, 0
<pre>
:INPUT 65, 20, 70, 24, y1, 0
INPUT 65, 10, 70, 24, x1, 0 !first input
:INPUT 65, 30, 70, 24, z1, 0
INPUT 65, 20, 70, 24, y1, 0 !second input
INPUT 65, 30, 70, 24, z1, 0 !third input


:ALT_CLICK INPUT, 1,HPOS
ALT_CLICK INPUT, 1,HPOS
:ALT_CLICK INPUT, 2,VPOS
ALT_CLICK INPUT, 2,VPOS
:ALT_CLICK INPUT, 3,DPOS
ALT_CLICK INPUT, 3,DPOS
</pre>
 
With first input field active, alt+clicking a geometry point fills the first input field with HPOS or X value from this point
 
With second input field active, alt+clicking a geometry point fills the second input field with VPOS or Y value from this point
 
With third input field active, alt+clicking a geometry point fills the third input field with DPOS or Z value from this point
 
===Example 2===
<pre>
ALT_CLICK INPUT, 1,RAD
</pre>
 
Will fill the radius of an alt+clicked circle into the first input field
 
===Example 3===
<pre>
ALT_CLICK INPUT, 1,DIAV
</pre>
 
Will fill the diameter of an alt+clicked geometry point in a lathe part into the first input field


:will fill input1 with HPOS or X value when alt clicking a point.
:will fill input2 with VPOS or Y value when alt clicking a point.
:will fill input3 with DPOS or Z value when alt clicking a point.




[[Category:Dialog]]
[[Category:Dialog]]

Latest revision as of 09:47, 5 April 2025

Up

Command

ALT_CLICK <control type> <control num> <value>


Enables the ALT+Click feature in the macro dialog.

ALT+Click feature allows you to interrogate a coordinate and place it in a dialog input field.

Parameters

<control type>
set type, example INPUT
<control num>
The number of <control type>
<value>
What value to interrogate when ALT+Click, example HPOS

Available for <value> : HPOS VPOS DPOS TOPH TOPV TOPD RAD ANGLE DIAV OPCSH OPCSV OPCSD OPCSTOPD

Example 1

INPUT 65, 10, 70, 24, x1, 0  !first input
INPUT 65, 20, 70, 24, y1, 0  !second input
INPUT 65, 30, 70, 24, z1, 0  !third input

ALT_CLICK INPUT, 1,HPOS
ALT_CLICK INPUT, 2,VPOS
ALT_CLICK INPUT, 3,DPOS

With first input field active, alt+clicking a geometry point fills the first input field with HPOS or X value from this point

With second input field active, alt+clicking a geometry point fills the second input field with VPOS or Y value from this point

With third input field active, alt+clicking a geometry point fills the third input field with DPOS or Z value from this point

Example 2

ALT_CLICK INPUT, 1,RAD

Will fill the radius of an alt+clicked circle into the first input field

Example 3

ALT_CLICK INPUT, 1,DIAV

Will fill the diameter of an alt+clicked geometry point in a lathe part into the first input field