美文网首页
PDMS设备管口方位标注

PDMS设备管口方位标注

作者: 饭桶2018 | 来源:发表于2018-09-29 14:14 被阅读0次

设备管口方位简易标注

image.png
EQUI
!equi = !!CE
SITE
!world = !!CE
$!equi

-- mark x y z on equipment
!size = 3000
aid clear all
!equi = !!CE
!pos = !equi.pos.wrt(!world)

!ori = !equi.ori.wrt(!world)
!xdir = !ori.xdir()
!ydir = !ori.ydir()
!zdir = !ori.zdir()

!xpos = !pos.offset(!xdir, !size)
!ypos = !pos.offset(!ydir, !size)
!zpos = !pos.offset(!zdir, !size)

aid arrow at $!pos dir $!xdir Height $!size
aid arrow at $!pos dir $!ydir Height $!size
aid arrow at $!pos dir $!zdir Height $!size
aid text |X| at $!xpos
aid text |Y| at $!ypos
aid text |Z| at $!zpos


!x0 = !equi.x.string('D0').real()
!y0 = !equi.y.string('D0').real()


-- mark nozz

var !nozzs collect all NOZZ for $!equi
do !nozz values !nozzs
    !nname = !nozz.dbref().name
    !npos = !nozz.dbref().pos.wrt(!world)
    !x1 = !nozz.dbref().x.string('D0').real()
    !y1 = !nozz.dbref().y.string('D0').real()
    -- $p $!x0 $!y0 $!x1 $!y1 $!nname
    if !x1 eq !x0 then
        if !y1 gt !y0 then
            !nangle = '90'
        elseif !y1 lt !y0 then
            !nangle = '270'
        else
            !nangle = '0'
        endif
    else
        !rad = ((!y1 - !y0 ) / (!x1 - !x0))
        !deg =  !rad.atan()
        if !x1 gt !x0 and !y1 ge !y0 then
            !deg = !deg + 0
        elseif !x1 gt !x0 and !y1 lt !y0 then
            !deg = !deg + 360
        elseif !x1 lt !x0 then
            !deg = !deg + 180
        endif
        !nangle = !deg.string('D0')
    endif


    


    -- this ori is not the ori of equi nozz ori
    -- !nangle = !nozz.dbref().ori.wrt(!equi).gamma.string('D0')
    aid text |$!nangle| at $!npos

enddo


相关文章

  • PDMS设备管口方位标注

    设备管口方位简易标注

  • 2020-11-09PDMS

    开始学习pdms。开始设备部分

  • 如何做设备安装图

    按照系统和设备对管口,要最新版图纸 土建20分,设备尺寸*10分, 设备放图,管口表20分, 尺寸30分, 材料2...

  • 2020-11-17PDMS

    今天学习设备建模,学习了设备管口的创建,拉伸体和旋转体的创建。

  • 2020-11-11pdms

    今天把第一节. PDMS 基础和设备基础,看完了。但是所学所想还没写出来。

  • 2020-11-10pdms

    网上的课程改为录播了,想录个视频也不可以了。这几天在学习PDMS基础和设备建模

  • 设备自定义标注

    Plant3D 设备标注默认只有位号 我们希望在标注的时候显示设备的位号+支座标高 我们可以通过下面的方法配置。 ...

  • dxf 文件名转 pdms 名称

    目的 PDMS 命名中带 /Windows 文件名不能有 /所以 PDMS 输出 DXF 会修改 / 为 _ 我们...

  • 直搬面注意事项

    验收设备,多照相,注意阀组及电器件的回收。直搬升井的设备及时喷字标注。及时测量通道高度调掩护支架。统计并标注旧面溜...

  • iOS 设计准则(The iOS Design Guidelin

    各设备像素参数 Points和Pixel的概念 设计稿最好以points来标注,除非特别在数值后面标注px,否则一...

网友评论

      本文标题:PDMS设备管口方位标注

      本文链接:https://www.haomeiwen.com/subject/rmovoftx.html