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.
How to import a function from one document into another?
The syntax to import a function between tabs in the same document looks like:
export import ( path: "e0116d57a4eba0bd041f3bc5", version : "00769121c72860815989f6c6" );
to import a tab that looks like this
But what is the format to import this same tab from another document? I tried just about all of the permutations, and none seem to work:
export import ( path: "e0116d57a4eba0bd041f3bc5", version : "00769121c72860815989f6c6" ); export import ( path: "577133d6e4b0263ce22dc025/e0116d57a4eba0bd041f3bc5", version : "00769121c72860815989f6c6" );
export import ( path: "577133d6e4b0263ce22dc025/992fac31cd40fac5989e2a4/e0116d57a4eba0bd041f3bc5", version : "00769121c72860815989f6c6" );
What am I missing? I was thinking the path format was user/document/tab, but that maybe i'm picking the wrong numbers? Or maybe you just cannot import functions between documents?