ilogic Rule for "update properties"

ilogic Rule for "update properties"

MarkusGreifeneder3360
Advocate Advocate
1,996 Views
5 Replies
Message 1 of 6

ilogic Rule for "update properties"

MarkusGreifeneder3360
Advocate
Advocate

Hi,

im looking for an ilogic Rule,

thats starts the exisiting Inventor command "update properties" (in the Vault-Tab) with an ilogic Rule.

 

Ideally with automatic "OK" when window appears; but not necessarily ...

 

Can someone help

 

Thanks in advance,

Markus

 

 

0 Likes
Accepted solutions (1)
1,997 Views
5 Replies
Replies (5)
Message 2 of 6

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

Hi @MarkusGreifeneder3360,

 

Please try the below iLogic rule to update properties and activate "Ok" button automatically.

 

Dim updateCmd As ControlDefinition
updateCmd = ThisApplication.CommandManager.ControlDefinitions.Item("VaultPropertyWriteBack")
updateCmd.Execute

Dim oKCmd As ControlDefinition
oKCmd = ThisApplication.CommandManager.ControlDefinitions.Item("AppContextual_OKCmd")
oKCmd.Execute

Please feel free to contact if there is any doubt.

 

If solve problem, click on "Accept as solution" / give a "Kudo".

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 3 of 6

Anonymous
Not applicable

How do you activate the "OK" button automatically.  For some of reason I can't seem to figure it out.

0 Likes
Message 4 of 6

Anonymous
Not applicable

I am having this same issue.  How do you have this complete the update automatically?  It pauses when it is time to close the dialog box.

If it would hit enter it would work.

0 Likes
Message 5 of 6

MarkusGreifeneder3360
Advocate
Advocate

It doesn't work automatically .... we click "OK"

 

0 Likes
Message 6 of 6

Dim updateCmd As ControlDefinition
updateCmd = ThisApplication.CommandManager.ControlDefinitions.Item("VaultPropertyWriteBack")
updateCmd.Execute

Dim oKCmd As ControlDefinition
oKCmd = ThisApplication.CommandManager.ControlDefinitions.Item("AppContextual_OKCmd")
oKCmd.Execute

 

is there a way to make your code run your code on save an idw. and then only update the first level iam/ipt in the drawing  ? without any user interaction other then hit the save Buttom?

 

 

0 Likes