How to call/show Model Explorer in DRAW via command

Hi All,

Is there a command that can call/show the Model Explorer in DRAW?

     

Cheers,

Edgar

Parents
  • Hi,

    To show the Design explorer in Draw:

    !!cmsys.checkCommand('AVEVA.CIE.CommandShowHideDesignExplorer', true)
    !!cmsys.executeCommand('AVEVA.CIE.CommandShowHideDesignExplorer')

    To hide it, just replace true with false.

  • Wow, thank you very much Leo this is very helpful. I have tried checking with fmsys.shownforms(), $r100 when showing it via drawlist manager and searcing for 'Model Explorer' keyword in PMLLIB and PMLUI to no avail hihihi.

    Again thank you very much for this.

  • Yes it's C# code that you won't be able to trace with these methods.

    For information it is managed in the class Aveva.CIE.Interaction.UI.Gui.Ribbon.Common.ShowHideDockedWnd of the file Aveva.CIE.Interaction.UI.dll of the Aveva install.

    You can see the Execute method (method called when you execute the Command, by clicking on the button, or using PML) use the Checked property to show / hide the Explorer:

    public override void Execute() => this.ChangeWindowVisibility(this.Checked);

    (This is the reason why you need to change the state of the Command (checked / unchecked) before calling the Execute method)

Reply
  • Yes it's C# code that you won't be able to trace with these methods.

    For information it is managed in the class Aveva.CIE.Interaction.UI.Gui.Ribbon.Common.ShowHideDockedWnd of the file Aveva.CIE.Interaction.UI.dll of the Aveva install.

    You can see the Execute method (method called when you execute the Command, by clicking on the button, or using PML) use the Checked property to show / hide the Explorer:

    public override void Execute() => this.ChangeWindowVisibility(this.Checked);

    (This is the reason why you need to change the state of the Command (checked / unchecked) before calling the Execute method)

Children
No Data