- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm running into a bit of a frustrating issue with a few macros I've written that I'm starting to create larger add-ins from. A lot of what I'm doing depends on user interaction. I'll use the latest one as an example:
We have a way of creating cutlists for fabricated doors/jambs that is unique to the business I work for. It's been done this way for 20+ years and it's what the guys out in the shop are used to. Because of that, I am creating a custom table to mimic this way. I'm starting simple, and will build up to automating each side of a truck and the doors it contains. For the sake of simplicity, I am placing the door assembly on a sheet and selecting it to grab the AssemblyDocument from to create the table. All works fine in that regard, and the table is created, but it doesn't update with a change in the door size. I know there is an AddLink method, but it throws an error when I pass in the assembly document's FullFileName (thisCustomTable.AddLink(asmDoc.FullFileName). Regardless, this also happens to me when extruding a profile - save, close, open the file back up, change the profile, and it fails.
I am positive this is something simple I must be missing, but I can't for the life of me figure it out. I have used both CommandManager.Pick and also written my own class for SelectionEvents (similar to that in the documentation, but a little different).
Any insight into what I may be missing is greatly appreciated!
Solved! Go to Solution.