Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Feature Scripts and Safe Document Use and Practical Use Practices

julian_julian372julian_julian372 Member Posts: 14
I have some Questions about best "safe" "reliable" use case for public Feature Scripts.

Onshape has the function for users to build custom features and scripts.
Onshape documents can be public for everyone to access and private locked.

Seems the best way to find public feature scripts is via the
1) forum.
2) searching public documents that have the most copies or reference links.

When adding a a feature script to your toolbar, pressing the {+} Add to tool bar for the feature script.
- it only references the document that the feature script is from.
- if that document is updated by the author. You can then update your tool bar feature script right click, update feature. or continue to use any of the previous versions.
- if the author of that document decides to set the document to private or delete.... game over man.
- There is a high probability you are adding a 'copy' of the feature script by a 3rd party and is not the original authors.

If you copy the document, That feature script becomes yours with no reference to the original document it was copied from.
- You have some peace of mind knowing the document wont be lost or deleted.
- You miss out on updates the original author may contribute.
- You are contributing to the feature script copy hell since 2018

Another way to keep the feature scripts you use 'safe' is to copy them into a local text document for later use if the day were to every come.

Relying on linked features scripts seems 'high risk'. For use in documents. Not much has changed since 2018 so use with caution.
I suspect a lot of 'free' and 'subscribed' users are using a lot of public feature scripts.

If what i say above is true. I look forward to a future where onshape has a clean repository like github layout
- Where it is clear of what documents are source originals and the tree history back to original authors.
- Onshape sponsored features scripts database listing.
- Where feature scripts are easily searchable.
- Based on most used in document / like / recently updated. etc.

I don't see any changes happening any time soon. But if what I say is true. I have some peace of mind understanding the system better.

references related links

Comments

  • _anton_anton Member, Onshape Employees Posts: 410
    A while back, we introduced functionality to "publish" custom features: https://forum.onshape.com/discussion/comment/100678
  • julian_julian372julian_julian372 Member Posts: 14
    I was more concerned about using a feature script that the author has made and for any possible reason that feature script is removed for the public realm at a future date.
    some possible reasons could include.
    • feature scripts authors account is delete.
    • document changed from public to private.
    • document featuring the featurescript is deleted by the author.
    and then your document that depends on that feature script becomes broken.
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,680

    and then your document that depends on that feature script becomes broken.
    Documents using public features will never break. If a feature becomes unavailable, it is copied locally to the document where it is used, but it is no longer available for new features. Unfortunately, you can't access the code when this happens.
    Senior Director, Technical Services, EMEAI
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,211
    Neil is correct about the behavior (that your document won't break), but not the mechanism.  The feature is not copied, but rather the referenced document is specially marked so that it'll always allow your document to access it, and deleting it will permanently hide it, not actually remove it.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • MichaelPascoeMichaelPascoe Member Posts: 1,988 PRO
    edited April 23
    I wish Onshape were in charge of Windows updates :D 
    Then Windows would be stable again

    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
Sign In or Register to comment.