icons

maciek
maciek OS Professional Posts: 35 PRO
edited March 2025 in FeatureScript

Hi,

I'm trying to add icon, but nothing works. I even copied icon, folder and then imported icon from this feature script document (below) and still nothing.

https://cad.onshape.com/documents/7543d74a1c21c7b27ebab24c/w/7e90f19b067cd13f155a004d/e/dc7fa4149845322defe70d01?_gl=1di1gn6_upMQ.._gaMTQyODczMDY2LjE3NDMwODkwOTM._ga_DZZ0XQS0VB*MTc0MzA4OTA5Mi4xLjAuMTc0MzA4OTA5Mi4wLjAuMA..#_ga=2.33185790.13376841.1743089093-142873066.1743089093

Comments

  • _anton
    _anton Member, Onshape Employees Posts: 555 image

    You're trying to add an icon to your custom feature? Icons are specified thusly: https://cad.onshape.com/FsDoc/uispec.html#icons

  • maciek
    maciek OS Professional Posts: 35 PRO

    yes, I want it to show in my toolbar.

  • S1mon
    S1mon Member Posts: 4,637 PRO

    Custom icons do not work on Enterprise 😡. Perhaps that's the issue?

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,965 PRO

    @maciek please share a link to your feature and we'll take a look.


    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚
  • maciek
    maciek OS Professional Posts: 35 PRO

    I found it. I didn't have ""Icon" : icon::BLOB_DATA," expression in annotation with feature name. Thanks