Does anyone know a way, either with iLogic, VB, or just an option somewhere, that I can perform the "Update Copied Properties" function (found under the "manage" tab in a drawing) automatically on save? I copy properties to my DWG from my assembly but it only copies the first time and won't automatically update if I change something in the assembly iProperties. Thanks!
Solved! Go to Solution.
Solved by BLHDrafting. Go to Solution.
Try this iLogic code from Being Inventive.
That looks like exactly what I need. Not sure why that was so hard for me to find. Thanks!
Well now I have a weird problem. I added the following code to my iLogic browser and set it to run before save (also set it to after save, still problems):
Dim oControlDef as ControlDefinition
oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("UpdateCopiedModeliPropertiesCmd")
oControlDef.Execute2(True)
And now I save the document, my other rules run, this rule seems to run, but document doesn't appear to actually save. I say this because I go to Vault>Check In and it says I need to save my drawing, so I say yes, my rules run, then nothing happens. I press check in again and it repeats the same process.
As soon as I suppress this new Copy Properties rule, I check in, it asks me to save, I say yes and it checks in no problem.
Any ideas?
Bugger! Happy to supply the code but that's where my iLogic knowledge ends.
Maybe if you post this on the Inventor Customisation forum you might get a better answer. http://forums.autodesk.com/t5/Inventor-Customization/bd-p/120