I am looking for a way to query if a part contains a sheet metal feature.
For weldments there is a command isWeldment which allows to easily query if the feater tree contains a weldment feature without traversing the structure.
Is there something like this for sheet metal features?
Detect sheet metal part
Detect sheet metal part
From a suggestion I received some time ago, this works well for my application.
Edit to add:
It returns an enumeration telling what state the sheet metal part is in:
Go to full postCode: Select all
// c# code
bool isSheetMetal = swModel.GetBendState() > 0;
return isSheetMetal;
It returns an enumeration telling what state the sheet metal part is in:
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.
Re: Detect sheet metal part
From a suggestion I received some time ago, this works well for my application.
Edit to add:
It returns an enumeration telling what state the sheet metal part is in:
Code: Select all
// c# code
bool isSheetMetal = swModel.GetBendState() > 0;
return isSheetMetal;
It returns an enumeration telling what state the sheet metal part is in:
Re: Detect sheet metal part
Great!
Works even if the sheet metal part contains no bends at all
Thanks for this tip
Works even if the sheet metal part contains no bends at all
Thanks for this tip
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.