eryar

PipeCAD - Plant Piping Design Software.
RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
posts - 603, comments - 590, trackbacks - 0, articles - 0

Zoom to Point by PDMS PML

Posted on 2014-01-07 20:01 eryar 阅读(2314) 评论(0)  编辑 收藏 引用 所属分类: 4.AVEVA Solution

Zoom to Point by PDMS PML

eryar@163.com

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

wps_clip_image-30597

Figure 1.1 Centre on Selection

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

wps_clip_image-21200

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

!!z2p(100, 200, 300)

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

wps_clip_image-27058

Figure 1.2 Use z2p to Zoom to the Current Element

使用中有任何问题,都可以与我联系,邮箱:eryar@163.com

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


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理