Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
"UIHint" : "HORIZONTAL_ENUM"
papawo
Member, Developers Posts: 206 PRO
Best Answer
-
NeilCooke Moderator, Onshape Employees Posts: 5,671FeatureScript 455;import(path : "onshape/std/geometry.fs", version : "455.0");annotation { "Feature Type Name" : "My Feature" }export const myFeature = defineFeature(function(context is Context, id is Id, definition is map)precondition{annotation { "Name" : "Horizontal Enum", "UIHint" : "HORIZONTAL_ENUM" }definition.myEnum1 is Units;annotation { "Name" : "Normal Enum" }definition.myEnum2 is Units;}{// Define the function's action});export enum Units{annotation { "Name" : "Inch" }INCH,annotation { "Name" : "Millimeter" }MM}Senior Director, Technical Services, EMEAI5
Answers