cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

SmartAssembly Code: Flashing Highlight

Highlighted
Newbie

SmartAssembly Code: Flashing Highlight

Here's some code I thought up the other day when working on a clearance checks app. It provides visual feedback by highlight flashing some features, parts, or components. In my implementation, this will highlight a pair of components that are too close together to show the users where they need to change their design.


DECLARE_VARIABLE INTEGER flashCounter 0
HIGHLIGHT_REF myFeatToHighlight
SLEEP .2 ! duration of highlight
SLEEP .05 ! duration of no highlight
END_WHILE
Design well!


--Geoff