"UIHint" : "HORIZONTAL_ENUM"
papawo
Member, Developers Posts: 206 PRO
Best Answer
-
FeatureScript 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, EMEA5
Answers
-
FeatureScript 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, EMEA5 -

