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.
Can I get current configuration name in FeatureScript?
roman_anikeev
Member Posts: 2 ✭
I try to use configuration name as part number for generated part.
Now I have to use one more row in configuration table that duplicates configuration name for that purpose.
Can I get current configuration name in FeatureScript directly in order to simplify configuration table?
Now I have to use one more row in configuration table that duplicates configuration name for that purpose.
Can I get current configuration name in FeatureScript directly in order to simplify configuration table?
0
Comments
https://cad.onshape.com/documents/26a88eec295953af967ece3b/w/6200f1251eed8e87e1eeeb32/e/f2747d0a10223cb1158295da
You can access a row's id directly, assuming you know the input id of the whole table. Some more info on these ids and how to edit them is here: https://cad.onshape.com/documents/cdbad61ec176b39049f8d4c1/w/0cb06ca7cb2788345cc7a448/e/e11a12cb6c7c926bdab162a0
That said, I think using a separate column for name used for the Part Number (as you say you're currently doing) probably the right solution. That method has no reliance on these hidden ids for the input and the rows, and allows you to change the name for that Part Number without breaking all assembly and drawing references to that configuration.