Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Is there any event I can use to capture ng insertion of components into assembly?

jmacapagal2CD9H
Contributor

Is there any event I can use to capture ng insertion of components into assembly?

jmacapagal2CD9H
Contributor
Contributor

I just want to make sure before I insert or copy components in my assembly, the components to be copied must be save.

0 Likes
Reply
Accepted solutions (1)
326 Views
2 Replies
Replies (2)

WCrihfield
Mentor
Mentor
Accepted solution

Hi @jmacapagal2CD9H.  I don't think there is currently an event for that specific action that we have access to through the API right now.  We have events for OnNewOccurrence, OnOccurrenceChange, and OnAssemblyChange, but none of those are specifically for when you 'insert/place' or 'add' a component to an assembly.  I believe the OnNew event is just for when you 'create a component' using the tool for that, so I don't think it gets fired when you just insert/place a component into the assembly.  Even the two events listed in the Event Triggers dialog related to assembly components are just for 'change' events, not insert/add.  I would think that the OnAssemblyChange one would be fired by this event (but would also likely be fired/triggered by other types of assembly related events).  And the online documentation for using that event handler code doesn't explain what to expect within its 'Context' parameter.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :light_bulb:or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

jmacapagal2CD9H
Contributor
Contributor

This might help! Thanks man.

0 Likes