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.
Finding all Featurescript tabs with an updated linked document
graham_lock
Member Posts: 270 PRO
Hi all,
I have a document with several Featurescript tabs which all import a given shared document.
Is there a way to identify all tabs which need import version updates and ideally update them all simultaneously?
If that's not possible is it good practice to have a separate single Featrescript which imports shared documents and then import that script into the other scripts, giving a single point of reference?
Thank you.
Best Answer
-
Caden_Armstrong
Member Posts: 443 PRO
Its usually good practice to just have a single feature studio that handles all the common imports. That way when you update an import, it will update everywhere it needs to.
The common.fs in the standard library is an example of a feature studio for the purpose of combining imports.
https://cad.onshape.com/documents/12312312345abcabcabcdeff/v/a2d9e227cac0806ed15eec62/e/5d4b86cd6796d30dca2fb617
You can do the same with global constants, enums, and anything else would otherwise be copy-pasted in various places.
It limits the effort to update changes, and reduces the risk of anything being out of date or inaccurate.www.smartbenchsoftware.com --- Renaissance --- fs.place
Experts in Onshape Automation - Custom Features and Integrated Applications1
Answers
Its usually good practice to just have a single feature studio that handles all the common imports. That way when you update an import, it will update everywhere it needs to.
The common.fs in the standard library is an example of a feature studio for the purpose of combining imports.
https://cad.onshape.com/documents/12312312345abcabcabcdeff/v/a2d9e227cac0806ed15eec62/e/5d4b86cd6796d30dca2fb617
You can do the same with global constants, enums, and anything else would otherwise be copy-pasted in various places.
It limits the effort to update changes, and reduces the risk of anything being out of date or inaccurate.
Experts in Onshape Automation - Custom Features and Integrated Applications
fantastic thank you.