Skip to main content
1-Visitor
May 2, 2024
Solved

Get surface area in LISP

  • May 2, 2024
  • 2 replies
  • 1485 views

To get the a part volume, in LISP we can use the function
(sd-call-cmds
(get_vol_prop ...

Is there a way to have the total surface area of a part?

 

I am using PTC Creo Direct Modellin v20.5.

    Best answer by AndyPoulsen

    Welcome! 

     

    The get_vol_prop function will also give you other measurements (including area). 

     

    There is a default "rough" tolerance (not sure what that value is) which is used if you use the syntax:

    (get_vol_prop :for_part mypart :area) 

    -- this assumes your part has been assigned to the variable mypart

     

    Similarly, you can get the area of a face using

    (get_vol_prop :for_face myface :area) 

     

    To specify a tolerance, you just need to add a couple of parameters (in this case using a 5 percent tolerance):

    (get_vol_prop :for_part mypart :tol :percent_tol 5 :area) 

     

    As you noted above, you'll need to wrap those calls in (sd-call-cmds ...  

     

    I hope this helps! 

     

    andy

    2 replies

    12-Amethyst
    May 2, 2024

    Welcome! 

     

    The get_vol_prop function will also give you other measurements (including area). 

     

    There is a default "rough" tolerance (not sure what that value is) which is used if you use the syntax:

    (get_vol_prop :for_part mypart :area) 

    -- this assumes your part has been assigned to the variable mypart

     

    Similarly, you can get the area of a face using

    (get_vol_prop :for_face myface :area) 

     

    To specify a tolerance, you just need to add a couple of parameters (in this case using a 5 percent tolerance):

    (get_vol_prop :for_part mypart :tol :percent_tol 5 :area) 

     

    As you noted above, you'll need to wrap those calls in (sd-call-cmds ...  

     

    I hope this helps! 

     

    andy

    1-Visitor
    May 3, 2024

    Thank you very much, Andy.

     

    Ir works fine!!

     

    Juan.

    1-Visitor
    July 23, 2024

    Is there a license?

    ------------------------------------------------------------

    Translated text from Simplified Chinese to English using google translate tool.

    有没有授权许可证?
    -By Community Moderation Team
    ------------------------------------------------------------