
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All!
I am unable to get this code to launch the File Save As Command. I Think I have the sytax correct, because if I Replace "AppFileSaveAsCmd" with a different command name (i.e. "AppFileNewCmd") it works as expected. I have tried this with "AppFileSaveCmd" and "AppFileSaveCopyAsCmd" and both have also failed. It seems any kind of save command wont work... I am trying to creat a rule that will fire on "New Document" iTrigger that will Force a user to save the newly created assembly document in preperation for further iLogic rules that depent on the assembly Filename and path. Maybe there I am not telling it What file to Save? I have pasted the code below... Hope someone can help with this, Its killin me...
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 3048 StartFragment: 314 EndFragment: 3016 StartSelection: 314 EndSelection: 314
SyntaxEditor Code Snippet
ThisApplication.UserInterfaceManager.UserInteractionDisabled=False
DimoCommandMgrAsCommandManager
oCommandMgr=ThisApplication.CommandManager
DimoDefAsControlDefinition
oDef=oCommandMgr.ControlDefinitions.?Item("AppFileOpenCmd")
Callodef.execute2(True)
Solved! Go to Solution.