Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
_dscholtes_
in reply to: RNDinov8r


@RNDinov8r wrote:

how do I determine if a part is round? I know that if a part has two identical dimensions, it could be round, say x&y or x&z are 20  and 20 mm each, it coudl be round.


As already mentioned, the easiest way is letting the user / creator of the part tell you it's a shaft by setting a custom property (our PLM system checks our parts / assemblies for the presence of certain properties before including them in its library).

But when your code finds a cylindrical surface in the part, having the same diameter as the two identical dimensions, then the part is most probably (created from) a shaft. Mind that the cylindrical surface doesn't need to be fully closed (360°), so the flat section along the axis is no problem. And as soon as you have written the code that determines a shaft like this, someone will hand you a shaft for which the code doesn't work or a bar that passes it :face_with_tongue: And then some fine tuning is required.