how to get the element position in draft view

 
  •  

  • Hello! I hope I understood Your problem, and there are few options, one is to use DDNM ID @ syntax to click on element You want to label, or manipulating the distance between the ppoint of attached label and the label itself, attribute is called APOF. All of this You can be find in help of Aveva Marine. But writing this down came something other on my mind that could be the real problem. By default label attachment ppoint is on the origin of equipment of structure, so if Your designer created an origin of equipment You want to label way outside of it, label will point there. Try to test it, hope it helps!
  • Hello! I hope I understood Your problem, and there are few options, one is to use DDNM ID @ syntax to click on element You want to label, or manipulating the distance between the ppoint of attached label and the label itself, attribute is called APOF. All of this You can be find in help of Aveva Marine. But writing this down came something other on my mind that could be the real problem. By default label attachment ppoint is on the origin of equipment of structure, so if Your designer created an origin of equipment You want to label way outside of it, label will point there. Try to test it, hope it helps!


    Hi rokotwo,I understand what you mean , I tried it before and it works . However , I want to achieve the effect that is automatic tagging . the ppoint of attached label and the ppoint  of STRU should be the same in the view .   by the way .DDNM ID @ is OK , after doing that .

    q ddname
    Ddname PANEL 2 of FRMWORK 2 of STRUCTURE /MEH71-WST-P01



    Now my thoughts are outlined below.
    Collect the first of SCTN or PLANE of the FRMW of STRU , and then put it into ddname of glab .  What do you think?  Do you have any better suggestions , very thankful.
  • Ok ,its works .This is the codes .Maybe it's not the best way to do that .


       

    var !submem coll all (sctn pane) for ce
       !ddname = !submem.first()
        Ddname $!ddname
       

  • Hey, this is how I do it, for multiple FRMWs:

    !view = ce
    var !ELEMSTRU VSCAN FOR ALL (SCTN GENSEC PANE) WITH TYPE OF OWNER EQ 'FRMW' FOR CE
    DO !S VALUES !ELEMSTRU
    !STRU = !S.DBREF().NAME
    !STRUELEM.APPEND(!STRU)
    ENDDO
    --Q VAR !STRUELEM
    VAR !STRUCTURE evaluate OWNER for ALL (SCTN GENSEC PANE) from !STRUELEM
    HANDLE (2,111)
    ENDHANDLE
    VAR !uniqueSTRU SORT UNIQUE !STRUCTURE
    --q var !uniquestru
    $!layers[1]
       do !i VALUES !uniquestru
    new Glab
    DDNAME $!ELEMSTRU[$!i]
    btext '#NAME