Need help having code listen for part reference updates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Little backstory: our company has been implementing Fusion Cam into our workflow, we have been using Inventor for part and assembly design, but the Cam suite in fusion is far superior. The problem we have is in revision tracking, currently, we have macros that save part revisions to a part's BOM on the drawing. I am using Autodesk Connector to export Inventor files direct to the Fusion cloud as a copy from the file saved on my local (we use vault basic, and will not be switching to vault pro due to the cost). As I understand, the uploaded part file name needs to rename the same, in fusion you can create a fusion document that is linked to the uploaded inventor file, the nice thing about this is that it flags the user when that reference is changed. I've written a macro (full disclosure I am not a programmer by trade, and I wrote most of this in a day after using chatgpt and browsing the forums) that is intended to detect a part save, check if the fusion document has a Rev number in the name (that lines up with our existing Rev#s has to be inputted manually), and allow the user to add it if it does not. The thing I cannot figure out is how to have this macro also trigger when the user clicks get latest once the system detects the reference document is out of date.
Like I said, I am not a programmer by any stretch, so it may be pretty rough, but so far its working as intended, I am just trying to get that extra functionality.