Can you define an area field in the Feature definition

christopher_dziuba
christopher_dziuba Member Posts: 124 ✭✭✭

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??

Tagged:

Best Answer

  • Caden_Armstrong
    Caden_Armstrong Member Posts: 472 PRO
    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 Applications

Answers

  • joshtargo
    joshtargo Member Posts: 695 EDU

    Even with isArea?

  • Caden_Armstrong
    Caden_Armstrong Member Posts: 472 PRO
    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 Applications
  • christopher_dziuba
    christopher_dziuba Member Posts: 124 ✭✭✭

    Looks like it's time for another feature request when I have the energy