Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have written code that runs the "Place iLogic Component" method. It works great in initiating the process, but still requires the user to press "OK" on the form, and then to place the component in the assembly. I want to use iLogic and the command manager to supplement the user input and place the component. What code can I add to do this?
This is my current rule:
fileName = RuleArguments("fileName") If fileName = Nothing MsgBox("Failed to initiate the 'Place iLogic Component' method." _ & " No file path was provided.", , "ERROR") Else If System.IO.File.Exists(fileName) = False MsgBox("The designated file was not found.", , "ERROR") Else Dim cmdManager As CommandManager cmdManager = ThisApplication.CommandManager 'Loads the filename of the component to be added to the assembly. cmdManager.PostPrivateEvent(kFileNameEvent, fileName) 'Set the control definition to place an iLogic component. Dim oControlDef As ControlDefinition oControlDef = cmdManager.ControlDefinitions.Item("iLogic.PlaceComponent") 'Execute the command oControlDef.Execute()
This is the form that I need code to supplement the user input and press "OK":
Solved! Go to Solution.