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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

SmartAssembly Code: Flashing Highlight

ptc-2605080
1-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


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags