Can the Cutlist feature auto import dimensions?
Answers
-
no answers? I would like to know too.0
-
There is a bit of confusion now that there is the new frames Cutlist feature. The frames Cutlist feature does auto measure your frames.
There is an older feature I had made called Cut list, which lets you manually measure entities and see them in a table. This now has the option to auto measure basic dimensions.
Cut list (Name changed to Measure cut list)
https://forum.onshape.com/discussion/16430/cut-list-new-custom-feature
Table
https://forum.onshape.com/discussion/19737/table-new-custom-feature
▚▞▚▞▚▞▚▞▚0 -
Hello, I am new to Onshape, and I want probably same thing here. I did parametric frame profile, and I want to set up Tag Profiles Columns, that thay write actual dimensions WxH in CutList. There is option to write expression in the Value, but I tried everithing I know and nothing works,
Is there any way to do that? Thank you
0 -
@karel_works Your very close. After you convert the text input to expression, it can take a variable, but the variable still needs to be in text (string) format, not value with units. Onshape allows the use of FeatureScript functions within expressions. So you can use the toString(#yourVariableHere) function to convert your variable. Like this:
By default, Onshape uses meters behind the scenes. So when you convert it to string, it will show in meters. To get it back to inches, you can get the unitless value of the variable, then multiply it by the unit conversion which would be the unit constant m divided by in. Finally, you could then round it to precision. Like this:
toString(roundToPrecision( #w.value*m/in , 2))~" in"
You can just copy and paste that expression and replace the w with your variable name.
Or if you want to know more about each of those steps, here is a breakdown:
- Convert the Variable to a String:
- Use the
toString()function. - Example:
toString(#variable)
- Get the Unitless Value:
- Access the value without units by using
.value. - Example:
toString(#variable.value)
- Apply Unit Conversion:
- Multiply the unitless value by the unit conversion factor (meters to inches).
- Example:
toString(#variable.value * m/in)
- Round to Desired Precision:
- Use
roundToPrecision()to round the value to a specific number of decimal places (e.g., 2). - Example:
toString(roundToPrecision(#variable.value * m/in, 2))
- Append Units:
- Concatenate the converted and rounded value with the desired unit as a string (e.g., " in").
- Example:
toString(roundToPrecision(#variable.value * m/in, 2)) ~ " in"
▚▞▚▞▚▞▚▞▚1




