AnsweredAssumed Answered

Events on Components

Question asked by Jerome De San Nicolás on Oct 3, 2019
Latest reply on Oct 4, 2019 by Jerome De San Nicolás

Hi guys,

I'm playing with events right now, and it's FUN. (with a vb.net addin)

 

I'm trying to fire an event when the user edit a dimension on a part inside an assembly. But, as far as I know, there is no event on IComponent2.

 

that my workflow for now :

 

   - user work on an assembly, and double clic on a component

   - a mouse event is fired, and a specific sketch show (if it exist) 

 

now I want to control witch value the user is allowed to enter in this sketch (of course this allowed values are depending of the component)

 

Right now, I'm trying to use IPartDoc event SketchSolveNotifyEventHandler. But I'm struggling doing the link IComponent2 to IPartDoc. And I'm starting to think this is not the right way to do. 

 

What are your thoughts on this? 

Outcomes