Is there a way to add extra search keywords to a feature?

EvanReese
EvanReese Member, Mentor Posts: 3,100 PRO
Sometimes it would be nice to be able to type a few different things into the feature search bar and find the right thing. For example I have this Cone feature, but it can also make cylinders. I don't want to name the feature "Cone/Cylinder" but would love for the keyword "cylinder" to also bring it up when searching. Likewise for the "Cube" feature, I'd love to also let people type "box" and bring it up. 
Evan Reese
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com

Answers

  • emagdalenaC2i
    emagdalenaC2i Member, Developers, Channel partner Posts: 867 ✭✭✭✭✭
    edited December 2021
    I use this
    annotation { "Feature Type Name" : "C2i Redondeo Completo",
            "Filter Selector" : ["allparts", "c2i"],
            "Editing Logic Function" : "C2iELRedondeoCompleto",
            "Icon" : icon::BLOB_DATA
        }
    So you can try with
    annotation { "Feature Type Name" : "Cone",
            "Filter Selector" : ["allparts", "Cylinder"],
            "Manipulator Change Function" : "twoEndedManipulatorFunction",
            "Editing Logic Function" : "twoEndedPrimitiveEditingLogic",
            "Icon" : icon::BLOB_DATA}

    Un saludo,

    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
  • EvanReese
    EvanReese Member, Mentor Posts: 3,100 PRO
    Ah cool, thanks! What I'm looking for is a way to make it show up here, which Filter Selector doesn't seem to do. 

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • emagdalenaC2i
    emagdalenaC2i Member, Developers, Channel partner Posts: 867 ✭✭✭✭✭
    • ”Feature Type Description”: A description of what the feature does and how to use it, to be displayed in feature tooltips and the “Search tools” panel.
    annotation { "Feature Type Name" : "Slot",
       "Feature Type Description" : "Creates a rectangular slot in a selected part.<br>" ~
       "This feature is an <b>example</b>"
     }
    This should work
    annotation { "Feature Type Name" : "Cone",
            "Feature Type Description" : "Creates cones and cylinders"],
    "Manipulator Change Function" : "twoEndedManipulatorFunction", "Editing Logic Function" : "twoEndedPrimitiveEditingLogic", "Icon" : icon::BLOB_DATA}
    Un saludo,

    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
  • EvanReese
    EvanReese Member, Mentor Posts: 3,100 PRO
    Thanks.I've tried that too, but it doesn't make it show up when I search it. It just adds a description once you find it, which is still cool. Just not what I'm going for.
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    The keyword search is an internal table we maintain - great IR though.
    Senior Director, Technical Services, EMEA
  • chadstoltzfus
    chadstoltzfus Member, Developers, csevp Posts: 175 PRO
    +1
    Applications Developer at Premier Custom Built
    chadstoltzfus@premiercb.com
  • George_Anderson
    George_Anderson Member Posts: 71 ✭✭
    Ditto, this would be incredibly useful for me.