If Global Update (on) then run rule

If Global Update (on) then run rule

Anonymous
Not applicable
428 Views
1 Reply
Message 1 of 2

If Global Update (on) then run rule

Anonymous
Not applicable

My iLogic assy ig ok - ish  it will run.

After the first run the global update lights up & many things are wrong.

After a second run all is well 7 the Global Update switches off.

 

I'd like to automate running the rule until the Global update is Off.

How can I tell the state of the Global Update?

 

Ta

 

MES

0 Likes
429 Views
1 Reply
Reply (1)
Message 2 of 2

Vladimir.Ananyev
Alumni
Alumni

You may check boolean Document.RequiresUpdate property value.

This property indicates if any of the entities within this document's scope is out of date with respect to its driving entities.

 

BTW  Sometimes it is convenient to run programmatically Inventor commands
(like RebuildAll / SaveAll / etc.)

Dim CommandName As String = "AppSaveAllCmd"

'Reference to CommandManager 
Dim oCommandMgr As CommandManager = ThisApplication.CommandManager
'Reference to command definition 
Dim oControlDef As ControlDefinition = oCommandMgr. _
   ControlDefinitions.Item(CommandName)
Call oControlDef.Execute() 'execute command

Beep  ' <-- can be removed
	
	' --- Popular commands ---
	'AppSaveAllCmd  
	'AppCloseAllCmd
	'AssemblyRebuildAllCmd  
	'PartRebuildAllCmd       
	'AppRebuildAllWrapperCmd

 See this post for more detailes on Inventor commands:
 http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html

 

 


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes