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.
icons like in hole feature?
adamohern
Member, OS Professional Posts: 216 PRO
How are the icons added on the left of the hole feature length parameters? I don't see any mention of them in the std FS code.
0
Comments
Hope we can use only the icon with no text either, only mouse tip whem hover.
Like in this example:
<div>FeatureScript 961;</div><div>import(path : "onshape/std/geometry.fs", version : "961.0");</div><div><br></div><div>annotation { "Feature Type Name" : "My Feature" }</div><div>export const myFeature = defineFeature(function(context is Context, id is Id, definition is map)</div><div> precondition</div><div> {</div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.holeDiameter, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.cBoreDiameter, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.cBoreDepth, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.cSinkDiameter, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.cSinkAngle, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.tapDrillDiameter, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.holeDepth, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.tappedDepth, LENGTH_BOUNDS);</div><div><br></div><div> annotation { "Name" : "My Length" }</div><div> isLength(definition.tapClearance, LENGTH_BOUNDS); </div><div> }</div><div> {</div><div> // Define the function's action</div><div> });</div>Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
<span> annotation { "Name" : "My Length" } isLength(definition.dx, LENGTH_BOUNDS); annotation { "Name" : "My Length" } isLength(definition.dy, LENGTH_BOUNDS); annotation { "Name" : "My Length" } isLength(definition.dz, LENGTH_BOUNDS);</span><br>Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
IR for AS/NZS 1100
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común