本文共 1197 字,大约阅读时间需要 3 分钟。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using Aveva.ApplicationFramework; using Aveva.ApplicationFramework.Presentation; using Aveva.Pdms.Presentation; using Aveva.PDMS.PMLNet; [assembly: PMLNetCallable()] namespace wttech { [PMLNetCallable()] public class PmlCoreCall { [PMLNetCallable()] public PmlCoreCall() { } [PMLNetCallable()] public void Assign(PmlCoreCall that) { } [PMLNetCallable()] public void callback(string commandKey) { CommandManager.Instance.Commands[commandKey].Execute(); } } }``三、 PML调用实例
以下是一个PML调用内核命令的实例: ```csharp import 'PmlCoreCall'; handle any; endhandle; using namespace 'wttech'; !corecall = object PmlCoreCall(); !corecall.callback('AVEVA.View.WalkTo.DrawList'); PML通过callback函数将Command的key传递给PDMS的内核命令,实现了对WalkTo.DrawList命令的调用。
转载自:https://www.cnblogs.com/jevon1982/p/9529116.html