Loadfeat: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Noahj (talk | contribs)
No edit summary
Noahj (talk | contribs)
No edit summary
Line 1: Line 1:
==LoadFeat X# [Y#] Z# ==
==LoadFeat X# Y# Z# ==
{{DeprecatedCommand}}
{{DeprecatedCommand}}


{{Description|description=This command creates and loads a single feature, then sets the specified X,[Y],Z coordinates as the end point of that feature.
{{Description|description=This command creates and loads a single feature, then sets the specified X,Y,Z coordinates as the end point of that feature.
 
The command takes a different number of arguments depending on the post type:
 
* For PST files. The command loads 2 coordinate values for turning operation and 3 coordinates for milling operations.
 
* For POST files, the command always reads 3 numbers as an HVD postion.


Also see [[LoadFeat3D]].
Also see [[LoadFeat3D]].

Revision as of 17:26, 17 September 2015

LoadFeat X# Y# Z#

Deprecated Command

This command has deprecated and should not be used in new posts and removed from existing posts when found (if time is available). The command will continue to function in order to support older posts. Removal may eventually happen at a later date if a deprecated command is unused enough.


Description

This command creates and loads a single feature, then sets the specified X,Y,Z coordinates as the end point of that feature.

Also see LoadFeat3D.


Replacement Commands

This command should be replaced with alteranate code. Posts have access to the current position using the CurrentX/Y/Z# family of commands which can be used to create a conditional which tests for the appropriate move. For instance:

LoadFeat Num#('0') Num#('0') MUL# ClearancePlane3# NumSc#('1') { Created and loaded feature: X=0 Y=0 Z=ClearancePlane3#.}
IF ZMove? {Tests to see if we are at the location entered in Loadfeat above, or if we need to move this axis}
 doZL doZCP3 Etc
END

Can be replaced by:

IF NotEqual? CurrentZ# ClearancePlane3#
 doZL doZCP3 Etc
END

(Note the scaling in the "before" example above: this double scaling is unacceptable and would result in the post being blacklisted. The coordinate value is scaled internally.)


Stats

ID 401
Type Command
Class All Machines
Min Version N/A