Can you define an area field in the Feature definition
For some reason we have the "AreaBoundSpec" but no ability to implement it the same way as a length paramater in a feature definition. Am I missing something??
Best Answer
-
Currently not supported.
Your options are either to use a "real" number with assumed units. In your feature you just add the units, and tell the user to give a value in the specific units (like m^2). Or second option, you use an "is anything" type parameter and validate the input in the feature.
For internally used features I usually go with the first option since everyone at a company typically uses the same units, and it lets you specify a range.www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications0
Answers
-
Even with isArea?
0 -
Currently not supported.
Your options are either to use a "real" number with assumed units. In your feature you just add the units, and tell the user to give a value in the specific units (like m^2). Or second option, you use an "is anything" type parameter and validate the input in the feature.
For internally used features I usually go with the first option since everyone at a company typically uses the same units, and it lets you specify a range.www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications0 -
Looks like it's time for another feature request when I have the energy
0

