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.
how do I add a custom feature icon?
joshtargo
Member Posts: 230 EDU
I haven't been able to find instructions anywhere
0
Comments
If you look at one of my free features you can see an example:
https://cad.onshape.com/documents/7b3a0ce63e664b4a9a2df596/w/7b25d934725d72f51390e384/e/688dc74373ef3cb651954d6f
1. Upload an SVG to the document
2. import the svg into the featurescript and give it a namespace (thats the ICON:: before the import statement)
3. Add to the feature annotation "Icon":YOURNAMESPACE::BLOB_DATA
Custom FeatureScript and Onshape Integrated Applications
There is documentation here: under the Icons section
https://cad.onshape.com/FsDoc/uispec.html
Custom FeatureScript and Onshape Integrated Applications
it doesn't actually tell you how to do any of it.
where does all this stuff come from?
path : "040ae5aa3a7b1b45cfade657", version : "d20b6cd7cda335288aa0d542"
Click the import button in the feature studio editor and select the icon file you've uploaded. The line gets inserted automatically.
Custom FeatureScript and Onshape Integrated Applications