Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
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.
Solved! Go to Solution.
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
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
------------------------------------------------------------