Inventor General

Reply
Distinguished Contributor
Posts: 195
Registered: ‎10-08-2012
Message 1 of 5 (175 Views)
Accepted Solution

Update Copied Properties automatically

175 Views, 4 Replies
02-01-2014 11:08 AM

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!

Valued Mentor
BLHDrafting
Posts: 350
Registered: ‎10-12-2012
Message 2 of 5 (146 Views)

Re: Update Copied Properties automatically

02-02-2014 07:16 PM in reply to: drguitarum2005

Try this iLogic code from Being Inventive.

 

http://beinginventive.typepad.com/being-inventive/2012/11/update-automatically-drawing-properties-fr...

Brendan Henderson

Web www.blh.com.au
Twitter @BLHDrafting

Windows 7 x64 -64 GB Ram, Intel Xeon E5-1620 @ 3.6 GHz
ATI FirePro V7800 2 GB, 180 GB SSD & 1 TB HDD, Inv R2013 PDS Premium SP2 Update 3 (Build 200), Vault 2013 Workgroup Update 2 (Build 17.2.9.0)
Distinguished Contributor
Posts: 195
Registered: ‎10-08-2012
Message 3 of 5 (125 Views)

Re: Update Copied Properties automatically

02-03-2014 06:29 AM in reply to: BLHDrafting

That looks like exactly what I need. Not sure why that was so hard for me to find. Thanks!

Distinguished Contributor
Posts: 195
Registered: ‎10-08-2012
Message 4 of 5 (104 Views)

Re: Update Copied Properties automatically

02-03-2014 12:12 PM in reply to: drguitarum2005

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?

Valued Mentor
BLHDrafting
Posts: 350
Registered: ‎10-12-2012
Message 5 of 5 (94 Views)

Re: Update Copied Properties automatically

02-03-2014 01:21 PM in reply to: drguitarum2005

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

Brendan Henderson

Web www.blh.com.au
Twitter @BLHDrafting

Windows 7 x64 -64 GB Ram, Intel Xeon E5-1620 @ 3.6 GHz
ATI FirePro V7800 2 GB, 180 GB SSD & 1 TB HDD, Inv R2013 PDS Premium SP2 Update 3 (Build 200), Vault 2013 Workgroup Update 2 (Build 17.2.9.0)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube