FeatureScript Beams - Referencing to Profiles in another document

wolfgang_maier
wolfgang_maier Member Posts: 39 ✭✭✭
Hello,

i copied featurescript beams to my document (Tor+Rahmen Stahl). I created Beam Profiles in another document (document Beams+Profiles).
When i import Beam Profiles in featurescript beams the tool asks me from where to import. I say: Other documents - Beams+Profiles.
As result i can only import V5 of my beam profiles and not the main version. Both of the scripts are commited.
What is my error?

regards
Wolfgang

Comments

  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,278 image
    Without 100% understanding your setup, the first thing that comes to mind is that "main" is not a version.  Committing the FS isn't enough -- to import from another document, you have to make a version (like V6) of the beam profiles document.  Open that document and click the create version button next to the version graph button in the top toolbar.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • kevin_o_toole_1
    kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565 image
    References in Onshape take two forms:
    • Links within a document can be to a workspace, and will automatically update every time the referenced data changes.
    • Links between documents must be to a version. This design is to avoid unintended breaking of other documents when you change something referenced elsewhere. When you create a new version of the linked document, in FeatureScript you'll need to replace that import line with a new import of the new version.

    It sounds like the best solution for you is to create a version of your latest beam profiles, and import that version in the Feature Studio.


  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,126 image
    You should also not be splitting up the profiles and the feature - keep both together in one document, create a version, then add the feature to your toolbar so you can use it anywhere.
    Senior Director, Technical Services, EMEA