07-25-2024
05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-25-2024
05:44 AM
Since what I've made is part of an add-in it's not just one piece of code that you can copy and paste. I'm also not keen on sharing the whole add-in.
I think the best way for you to create something similar is to take it step by step and then try to combine everything into something that works for you. Here are some things you'll need:
- User Interface (I wouldn't worry about UI too much when starting out and do this when you've figured out most of the other steps)
- Selecting the components
- Getting the necessary work features from the selected components
- Creating proxies of the work features (basically a representation of the selected work feature in the context of the assembly)
- Creating the constraints
- Error handling
And here are some samples that may help you get started:
- https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=CommandManager_Pick_Sample
- https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=AssemblyConstraints_AddMateConstraint2_Sample
Feel free to ask for further help should you get stuck.
