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.
user-specific feature parameters?
mark_schroeder475
Member Posts: 5 EDU
I'm very new to FS. I've searched for an answer to this, though I may not know exactly where to look. Apologies if it's naive.
I have a feature developed for a small, informal group that generates g-code for some basic machining operations. (It's important for it to be straightforward and a generic CAM app is beyond the scope.) I would like some settings for the feature to be adjustable but only by specific people: tool numbers, feeds and speeds, offsets, that sort of thing. I'm imagining a conditional group that is read-only or invisible to other users. Or there could be other options. But they all depend on one thing: identifying the user. Is there a way in FS to determine the userId, or some other identifier? Does anyone have a suggestion for a good way to do this?
0
Comments
https://cad.onshape.com/documents/4fef76ae984cf40f4c23e329/w/eed87c6077cf37eb60ec8120/e/8f13119660410e99e0c51ffa
If you type the password in, the length field becomes editable. While it's typed in the feature turns red to remind you to remove the password so it doesn't stay editable. You'd want to store the password constant in another document that people don't have access to, so they can't just read it from the code. My password is the timeless "1234".
Note, this is not an acceptable solution for anything actually secure, but it could be good enough to prevent accidental editing by people who shouldn't.
As for making some code that others don't have access to, you should be able to do it on any paid plan. Just make a whole separate document, and put your feature studio there. The Thread Creator feature is a good example of this. Most of the feature is somewhere else private so the code can't be seen: https://ovyl.onshape.com/documents/6b640a407d78066bd5e41c7a/v/845d049782179b9faee8b6e6/e/c953720c264ce001f1a82dc1