cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Get surface area in LISP

JA_8242316
2-Guest

Get surface area in LISP

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

Thank you very much, Andy.

 

Ir works fine!!

 

Juan.

Top Tags