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.
CONFIGURATIONS
Aly_k
Member Posts: 14 PRO
I wanted to know if it's possible to create a feature script that can read your configurations tables so instead of doing a csv, I could create one that automatically reads it and then I can create a custom table and insert that into my drawing.
0
Answers
Not sure if it can be done in the current part studio, but if you use a PartStudioData input for a feature and select the part studio from another part studio, the PartStudioData input contains all the configuration data.
Custom FeatureScript and Onshape Integrated Applications
What does your workflow look like? Is the configuration data to stay with the configured part? You could set up the configured part to store it's configurations data within a cutlist table, which could then be derived with the part and or inserted into drawings. If you aren't deriving it and your configured part stays within the its own part studio, then you could just use the standard table options and simply link the configurations to values in the table.
You can write your own feature for this, or use one that already exists like the
Table custom feature.
.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Well you helped me the last time by giving me suggestions (which I am very grateful for thank you) and I used your table.fs my collogue was not too keen on manually typing it out I took a copy of one of your other fs that you offered and customized it and I got this.
so now it reads my variable which is good but now I want it to be able to read all my other variables that I have in my configurations. I wanted to know if that was possible or can I only achieve this via csv?
It depends on if you are trying to read the configurations from your current configured part studio, or if you are importing / deriving that part into another studio so that you could get the PartStudioData like Caden mentioned.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Certain configs.
I don't understand. Are you using the part within its own studio, or are you deriving it to another studio where you want to then get the data?
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
I am using the part within its own studio.
Here is an example of how to convert any configuration to a custom table or even a cut list table that can stay with a derived part. Either of these tables can be inserted into a drawing.
For some reason tables are not behaving as they use to before some of the automatic Onshape updates and are not inserting or staying with derives properly. I've opened a support ticket for this, hopefully they will fix this soon.
Configurations to custom table example
https://cad.onshape.com/documents/01485b6de17aef414a25e778/w/926dfaef6b63d239b8d9d739/e/ff5a15353c02b3350290…
.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴