PORTS定义研究
AutoPLANT类定义文件(Class.ini)中有定义PORT_KEY,用来定义该管件的端口形式(原文:Name of the port key group, used to define this class port data),其实际指向PORTS.INI文件。在PORTS.INI文件中会定义该管件的端口数量、定义点、插入点、参考点、匹配参数、是否是变径等
如变径三通的类是AT_TEE_RED_BRANCH,其PORT_KEY为RedTeeBranchPorts,在PORTS.INI中可以找到以下代码(红色文字为注释):
Port_Names = Port1; Port2 ; Port3 '端口数量及名称
Point_Names = CP '定义点
Def_Ins_Port = CP '插入点
Def_Ref_Point = CP '从该管件连画新管件时的参考点
Traversal = Port1, CP, xDir, World_XDir; Port2, CP; CP, Port3, yDir, World_YDir
Dim_Nodes = CP
Dir_Changes = CP
Port1.ND = MAIN_SIZE 'PORT1的公称直径数据字段
Port1.EC = END_COND_1 'PORT1的连接形式字段
Port1.OD = PIPE_OD_M; FLNG_OD_M 'PORT1的管道外径和法兰外径数据字段
Port1.Loc = ...
Port1.WC = ...
Port1.Dir = ...
Port1.WDir = ...
Port1.Orient = ...
Port1.PCL = SCHEDULE;RATING 'PORT1在匹配管件时要求的配对数据
Port1.Fac = FACING_1
Port1.EL = THD_ENG_M;SKT_DPTH_M
Port1.FDir = 0
Port2.ND = RUN_SIZE;MAIN_SIZE 'PORT2的公称直径数据字段,这样表示说明首先会去取RUN_SIZE字段的数据,如果是空则直接与MAIN_SIZE相等
Port2.EC = END_COND_2;END_COND_1
Port2.OD = PIPE_OD_R; PIPE_OD_M; FLNG_OD_R; FLNG_OD_M
Port2.Loc = ...
Port2.WC = ...
Port2.Dir = ...
Port2.WDir = ...
Port2.Orient = ...
Port2.PCL = SCHEDULE;RATING
Port2.Fac = FACING_2; FACING_1
Port2.EL = THD_ENG_R;SKT_DPTH_R;THD_ENG_M;SKT_DPTH_M
Port2.FDir = 0
;; Port3 Is the branch
Port3.ND = BRAN_SIZE;MAIN_SIZE 'PORT3的公称直径数据字段,这样表示说明首先会去取BRAN_SIZE字段的数据(即支管管径与主管管径不同),如果是空则直接与 MAIN_SIZE相等
Port3.EC = END_COND_3;END_COND_1
Port3.OD = PIPE_OD_B; FLNG_OD_B; PIPE_OD_M; FLNG_OD_M
Port3.Loc = ...
Port3.WC = ...
Port3.Dir = ...
Port3.WDir = ...
Port3.Orient = ...
Port3.PCL = SCHEDULE;RATING
Port3.Fac = FACING_3; FACING_2; FACING_1
Port3.EL = THD_ENG_B;SKT_DPTH_B;THD_ENG_M;SKT_DPTH_M
Port3.FDir = 0
转载请注明出自AutoPLANT技术论坛 本贴地址: