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.
Exporting variables to csv, txt file or similar
Joey_Wood
Member Posts: 1 ✭
Hello,
I have a large number of variables, the values of which are generated from the Measure Value featurescript (similar to Measure Distance). I would then like to export those variables to a separate program (specifically matlab for running analysis). Right now my workflow is to manually type each value each time I update the part studio. Obviously for large amounts of data this is extremely tedious and not a scalable approach. Does anyone have ideas for automating this process using featureScript? Attached is the sort of dataset I am working with. Each variable there is a coordinate in x,y,z generated using the Measure Value feature (Thank you Konstantin): https://cad.onshape.com/documents/77baa8153589a7fc5f289829/v/33ba34fba75bf5f4ba08ed63/e/181cb871f3008e6b885df46a.
I have a large number of variables, the values of which are generated from the Measure Value featurescript (similar to Measure Distance). I would then like to export those variables to a separate program (specifically matlab for running analysis). Right now my workflow is to manually type each value each time I update the part studio. Obviously for large amounts of data this is extremely tedious and not a scalable approach. Does anyone have ideas for automating this process using featureScript? Attached is the sort of dataset I am working with. Each variable there is a coordinate in x,y,z generated using the Measure Value feature (Thank you Konstantin): https://cad.onshape.com/documents/77baa8153589a7fc5f289829/v/33ba34fba75bf5f4ba08ed63/e/181cb871f3008e6b885df46a.
0
Comments
Specifically, you could change the Measure value FeatureScript to create a master variable that contains the relevant values created by the Measure value feature. Subsequent Measure value features would then be able to add their values to the master variable. You could then write a table feature that takes in the master variable automatically and formats the corresponding values for easy copy and pasting. You could also do this using attributes attached to dummy parts, which is what my Variable Library FeatureScript does in order to pass variables between part studios. Either method is fairy straightforward to implement, but it could be pretty challenging to users who are new to programming or FeatureScript in general.