Finding all Featurescript tabs with an updated linked document
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
-
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 --- Kestrel -- SmartLink
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.www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications1 -
fantastic thank you.
0
