Hello,
I´m trying to create an external iLogic rule that let´s the user specify a path and saves an assembly and all it´s components into one directory. Alternatively it could be the main workspace path which doesn´t have to be specified by the user so it can be handled internally.
The background is a design template that resides on a network storage which can be configured through an iLogic Form and when the user is done configuring the assembly to it´s liking it should be saved to it´s workspace.
I was looking through the snippets but couldn´t find anything related to "save all". I have the feeling that I have to cycle through all component occurences and save them one by one.
Getting a Save As dialog box seems to be possible as I could see on Curtis Waguespack´s blog but the commands he is using are nowhere documented. For example for calling the dialog box he is using
You may also consider the CommandManager functionality.
If you set FullFilename property in all documents then you could run the following iLogic code to execute Inventor’s “Save All” command.
Dim ctrl As ControlDefinition
ctrl = ThisApplication.CommandManager.ControlDefinitions("AppSaveAllCmd")
ctrl.Execute()
Here is the good post on the running Inventor commands using the API:
http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html
Thank you Vladimir,
this is very helpful information !!
[Quote]
If you set FullFilename property in all documents then you could run the following iLogic code to execute Inventor’s “Save All” command.
[\Quote]
Could you ellaborate more on this part or where I can find more information about how to use FullFilename property?
Now I only have to find a way to set the save directory to WorkspacePath
All the best