How to handle mouse-hover events using featurescript?

Nathaniel
Nathaniel Member Posts: 4 ✭

Is it possible to write custom-featurescript to handle mouse hovering events? Just like draft analysis display as shown below:

I'm working on custom feature that does some analysis and the idea is to display results in the viewer while user moves mouse on the face. 

Any idea would be greatly appreciated.

Thanks,
Nathaniel

Answers

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    Hi @nathaniel_jayavanth - it is not possible - FeatureScript is for creating geometry. 
    Senior Director, Technical Services, EMEA
  • Nathaniel
    Nathaniel Member Posts: 4 ✭

    Thank you for the quick response. Please find some more details below and let me know your feedback.

    I forgot to add image in my previous query.
    I'm working on custom feature where require to display texts while hovering mouse over face.
    Just similar to draft analysis


    Any idea? Is it possible or any work-around? Please let me know.

    Appreciate your time.

    Thanks,
    Nathaniel


  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    edited August 2020
    NeilCooke said:
    Hi @nathaniel_jayavanth - it is not possible - FeatureScript is for creating geometry. 
    Draft analysis and mouse hover event is all server side code - FeatureScript is not able to do this.
    Senior Director, Technical Services, EMEA
  • Nathaniel
    Nathaniel Member Posts: 4 ✭
     NeilCooke said:
    NeilCooke said:
    Hi @nathaniel_jayavanth - it is not possible - FeatureScript is for creating geometry. 
    Draft analysis and mouse hover event is all server side code - FeatureScript is not able to do this.

    OK. I hope we can expect this functionality in future.  
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image

    OK. I hope we can expect this functionality in future.  
    This is not technically possible using FeatureScript.
    Senior Director, Technical Services, EMEA
  • Nathaniel
    Nathaniel Member Posts: 4 ✭
    OK. Noted. Thanks a lot.