LogicObject.GetPanelLoader(string)
Returns a PanelLoader C# object that corresponds to the Dynamic panel object indicated in the argument.
Tip: The API uses the alias that the Presentation Engine automatically generates at runtime for the panel. See Aliases.
PanelLoader GetPanelLoader(string panelLoaderName);
Arguments
-
panelLoaderName(string) - The
BrowseNameof theDynamic panelobject.
Returns
-
PanelLoader - A C# object that corresponds to the
Dynamic panelobject.
Example
The following example shows an API that returns a C# object that corresponds to the PanelLoader1 object, in which you want to create a Motor object.
var myPanel = LogicObject.GetPanelLoader("PanelLoader1");
var motor = InformationModel.MakeObject("Motor");
myPanel.ChangePanel("Panel1");
