NEW RELEASE! The 2022x Refresh2 Hot Fix 3 was released on February 28, 2025. For more information, see 2022x Refresh2 Hot Fix 3 Version News.

The following ALH API checks whether a particular object is in a specific state name.
 

public boolean inState(Object_ object, String stateName) {
	... 
} 

public boolean inState(String stateName) {
...
}

 

Unless the object is specified, it will use the current active object, for example:

if (ALH.inState(ccobj, "Operating")) {
	force=ccForce
} else {
	force = acc*2
}

 


Activity

All
Personal filters
All
No activities found