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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Get surface area in LISP

JA_8242316
2-Explorer

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.

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

3 REPLIES 3

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.

Is there a license?

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

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

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

Announcements


Top Tags