Zoom to Point by PDMS PML

Zoom to Point by PDMS PML

[email protected]

在PDMS中Centre on Selection的功能一定要选择一个有position属性的element,有人想不选择element直接缩放到指定的坐标点,通过打开跟踪其代码,实现了这个一样函数z2p,直接调用此函数,并输入需要缩放的坐标值,就可以将指定点作为视图中心啦。

Zoom to Point by PDMS PML_第1张图片

Figure 1.1 Centre on Selection

PML实现代码如下图所示,PML程序的配置方法可以通过搜索《AVEVA PML快速入门引导》,其中有详细说明。

Zoom to Point by PDMS PML_第2张图片

程序的使用方法为在命令窗口(Command Window)中输入命令:

!!z2p(100, 200, 300)

其他使用方法如下图所示:

Zoom to Point by PDMS PML_第3张图片

Figure 1.2 Use z2p to Zoom to the Current Element

使用中有任何问题,都可以与我联系,邮箱:[email protected]

PDF Version and PML code: Zoom to Point by PDMS PML

你可能感兴趣的:(Zoom to Point by PDMS PML)