- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
@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
And then some fine tuning is required.