Key Principles of Customize Pipe Support Program

简介: Key Principles of Customize Pipe Support Program eryar@163.com Abstract: The article show one customize pipe support method in AVEVA Marine/Plant.

Key Principles of Customize Pipe Support Program

eryar@163.com

Abstract: The article show one customize pipe support method in AVEVA Marine/Plant. Follow the method you can create a pipe support modeling program to meet your company’s specific need.

Key Words: AVEVA Marine, AVEVA Plant, PDMS, Pipe Support, PML

I have already used AVEVA Marine for years. It is convenience and efficiency. But only the MDS module does not meet our design standard. There are so many pipe support models in the database, in order to meet the plant and marine pipe support design requirement. When creating a support model, you must wait for a while for the program to find the needed support, it's so boring. So I decided to develop a support program by myself.

To do such a program, you must know the knowledge below:

l The Design Element Hierarchy

l Event-Driven Graphics Utilities

l How to create component and specification in paragon module

l PML (the AVEVA Programmable Macro Language)

l General Commands for Creating the Model

1. The Design Element Hierarchy

wps_clip_image-7211

Figure 1.1 The Equipment and Piping hierarchy

The hierarchy is very important concept in AVEVA productions. It restricts that which element can hold what elements.

To know all data model and its attributes in AVEVA software, you can see the "Data Model Reference Manual" for reference.

2. Event-Driven Graphics Utilities

Event-Driven graphical interaction allows cursor picks in 3D views to be used intelligently as part of some overall rather than just being used for navigation or element identification purposes.

Once you have selected an option which puts you into event-driven graphics mode, such as measuring distances between calculated positions, you can carry out unrelated actions using non-graphical forms and menus without interrupting the logical sequent picking actions.

When you are in event-driven graphics mode, a Positioning Control form lets you control how your pointer picks are translated into the coordinates of required positions (which need not be at the actual cursor position).

Click in the 3D View and then press the Esc key to leave event-driven graphics mode.

Note: EDG functions are not available within Model Editor mode.

When use the Distance Measure from the toolbar, a Positioning Control will display automatically.

wps_clip_image-12408

Figure 2.1 Distance Measure on the Utilities toolbar

wps_clip_image-15449

Figure 2.2 Positioning Control

In PML, the object EDGPACKET is used for this facility. You can reference to : componentcreation.pmlfrm for detail. I will list the simplest code to demonstrate the utility.

To use your own PML program, you can put the following code in a text file named pickdemo.pmlfrm, and put it to the PMLLIB path, my PMLLIB  path is set to :

D:\AVEVA\Marine\OH12. 0 .SP6\PMLLIB\AddIns. 

Then in the Design module's command window input the command:

PML REHASH ALL 
SHOW 
!! pickdemo


List 1 : The simplest PML code for Event-Driven Graphics pick

wps_clip_image-12811

When the command : Show !!pickdemo applied, the pick demo form will show like follow:

wps_clip_image-27112

Figure 2.3 Pick Demo Form

When you push the button and pick a flange model, the information will display in the Command Window like follow figure:

wps_clip_image-2216

Figure 2.4 Position in the Command window

3. Create Component and Specification

Like the pipe model in Design Module which its components are all from paragon database, we will save our support model in paragon database too. This is also MDS does.

You can save the pipe clamp data:

wps_clip_image-26064

Figure 3.1 Pipe clamp model in paragon

wps_clip_image-15570

Figure 3.2 Pipe clamp model in paragon

After doing this, you add specifications for support component like pipe component, so you can use the support via the specification.

For more information about Catalogues and Specifications please see: Catalogues and Specifications Reference Manual.

4. PML

You can learn more from the manual: Software Customisation Guide.

The manual describes how to use PML, the AVEVA Programmable Macro Language. You should use it together with the Software Customisation Reference Manual. 

You do not have to be a professional programmer to start to learn PML, 

although you may find the manual difficult to follow unless you have 

some understanding of programming concepts such as if statements and 

do loops. If you have no programming experience, you should consider 

attending a PML Training Course. For details, contact your local support office, whose address is given on the AVEVA website. 

5. General Commands for Creating the Model

You can use the command: NEW to create new element. The command also can be used in PML.

wps_clip_image-23627

Figure 4.1 Use new command to create element

Then assign the spref and position attribute and others to the element, the spref attribute set for component's shape and position attribute set for the component's position.

wps_clip_image-148

Figure 4.2 Attributes of the component

You can use PML command:

SPREF  / Your_Support_Specification 

/Your_Support_Specification is created in the paragon module.

The result is in the below picture:

wps_clip_image-31499

Figure 4.3 Support model in Design module

So if you understand the 5 key principles you can build your support models by your own program, this will be wonderful. When the pipe supports models are build, then can generate pipe support sketches and material automatically.

Enjoy!

If you find any mistakes or have any suggestions, feel free to contact with me: eryar@163.com.

 

目录
相关文章
|
Java 开发工具 Android开发
Android Studio 解决:error adding symbols: File in wrong format clang++.exe: error: linker command...
错误日志: Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildDebug'.
6607 0
|
8月前
|
Shell Ruby Perl
don‘t have write permissions for the /System/Library/Frameworks/Ruby.framework
don‘t have write permissions for the /System/Library/Frameworks/Ruby.framework
266 0
|
虚拟化
成功解决Failed to execute stage ‘Setup validation’: Hardware does not support virtualization.
成功解决Failed to execute stage ‘Setup validation’: Hardware does not support virtualization.
|
8月前
|
PyTorch 算法框架/工具
The “freeze_support()“ line can be omitted if the program is not going to be frozen
The “freeze_support()“ line can be omitted if the program is not going to be frozen
143 1
|
并行计算
Hint: This means that multiple copies of the OpenMP runtime have been linked into the program.
Hint: This means that multiple copies of the OpenMP runtime have been linked into the program.
309 0
《The Art of Readable Code》学习笔记(一)
什么样的代码才算好呢? 有一个判断的标准:缩短别人能看明白你代码的时间。这时候估计又有同学会问了,我写的就是给自己看的,或者团队里就我一个人,设计到实现到测试全是我一个人,要写给别人明白干什么?好吧,老实说,我之前也是这样想的。“别人”不一定是其他人,也可能是三个月后的你自己。
1421 0
|
Oracle 关系型数据库 Unix
ACFS Support On OS Platforms (Certification Matrix). (文档 ID 1369107.1)
A) The next matrix provides a roadmap for ACFS support platforms and versions:   ACFS 11.2.0.1 Supported Platforms Vendor Version Update/Kernel Arc.
2510 0
|
新零售 测试技术 Python
Robot Framework - Variable file
RF导入变量文件 在Setting中导入 Setting中导入变量文件时,和导入外部资源文件类似。变量文件的路径可以包含参数,如果一个变量文件接受参数,那么它们也可以是变量。
1380 0