Report of PANE Length, Width & Height

 
  • Sorry Amit but your post was starting with "I wish to extract surface"...and then "But I need surface area of one side only" and I missed your final question....

  • Sorry Corrado it's my mistake. I am looking for Circumference of PLOO.

  • Hi Amit Barve,
    If you want Surface area of panel means you can use direct command,

    For Net surface area - Q NSRF

    For Gross surface area - Q GSRF

    It is difficult to get surface area for one side of irregular shape panel. Otherwise you need to develop some codes to calculate perimeter of panel.

    You can use below code for calculate perimeter of panel,

    -- stand on PANEL
    PANE
    !ce = !!ce
    PLOO1
    handle any
    !!alert.message('Panel Loop not available')
    return
    endhandle
    !pavert = !!collectallfor('PAVE','',ce )
    -- var !pave collect all PAVE for CE
    if !pavert.size().leq(2) then
    !!alert.message('No geometric shape available')
    return
    endif
    !total = 0
    do !x from 2 to !pavert.size()
    !y = !x - 1
    if !y.eq(1) then
    var !startPos pos $!pavert[$!x]
    endif
    var !pos1 pos $!pavert[$!x]
    var !pos2 pos $!pavert[$!y]
    var !dist const dist $!pos1 to $!pos2
    !total = !total + !dist.real().abs()
    enddo
    var !dist const dist $!startPos to $!pos2
    !total = !total + !dist.real().abs()
    !total = !total.nint()
    !!alert.message('PERIMETER: $!total ')
    $P $!total
    $!ce

  • I just came across this problem, and while you probably solved it your way, I''ve found that GVOL yields volume of a pane without holes, while NVOL considers there are holes in the material:

      

    Thankfully, if there are no holes; just chamfers etc, both volumes are the same:

    So one can basically use NVOL / LOHE for surface area IF one wants to discard the hole volume, GVOL / LOHE if your concern is the surface area of the pane regardless of holes in it. 

    However, whether one should use GVOL or NVOL depends on what one is doing with the acquired data. If your goal is to calculate surface area of metal sheet for material list / metal order (eg, how many sq m of metal sheets #10 do we need to order to produce these panes), the GVOL / LOHE will be required because the fact the hole will be cut in the metal sheet above doesn't change the surface area of metal sheet required to cut the pane out of. Of course, in case of really big holes, a small metal plate can be cut out of the hole material, but that's a problem that requires a more complex algorithm.