Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

GraphicAccess2 接口方法

  • Last UpdatedSep 24, 2024
  • 1 minute read

GraphicAccess2 接口使用不同的方法导出工业图形的替换字符串和已配置引用。

ExportGraphicToXml 方法

将工业图形中的所有替换字符串导出到 XML 文件。Galaxy、图形名称、XML 文件路径和导出替换字符串选项是 ExportGraphictoXML 函数的参数。此 API 不会导出空字符串和不可见图形中使用的字符串。

语法

IGraphicAccessResult ExportGraphicToXml(IGalaxy galaxy, string graphicName, string xmlFilePath, bool bExportSubstituteStrings);

参数

galaxy

IGalaxy 从 GRAccess 获取,返回 Galaxy。

graphicName

要导出的图形的名称。

xmlFilePath

要放置包含导出图形的 XML 文件的目录文件夹。

bExportSubstituteStrings

当设置为“True”时,将在导出 XML 文件中包含图形的替换字符串。

GetConfiguredReferences 方法

将工业图形中的所有已配置引用导出到 XML 文件。

语法

IGraphicAccessResult GetConfiguredReferences(IGalaxy galaxy, string graphicName, out string sConfiguredReferencesXML);

参数

galaxy

IGalaxy 从 GRAccess 获取,返回包含图形对象的 Galaxy。

graphicName

具有要导出引用的图形的名称。

sConfiguredReferencesXML

图形的已配置引用将以字符串形式返回到此参数。