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 can I get a list of variables set in a context?
arthur_peters
Member Posts: 19 ✭✭
I would like to create a feature that can import all variables in one Part Studio into another one. I can relatively easily import variables as long as the calling feature knows their names, however I do not see a way to get a list of variables from a context. Is what I want possible? Is there a specific reason not to allow it? (I think it should be possible, even if you only want to expose "normal" variables of some kind, given that variable table exists.)
- Arthur (he/him)
0
Answers
Try the function getAllVariables(context is Context) from context.fs
IR for AS/NZS 1100