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.
Answers
Also added:
-read window size and fill with icons
-window resize event handler
link to document viewer:
https://rndengineering.com/os/
-need rights to write to documents
-show all elements in a document
-RMB edits parts properties in a part studio
-added border around assemblies to differentiate between studios
https://rndengineering.com/os/
video document loader
I've added all elements when viewing a document: assy's, studios, drawings, api, feature scripts, images. Everything in a document should display:
I've also added a border around assy's vs. studios so you can tell them apart.
Left mouse clicking on icon opens that element in a new browser window.
Right mouse clicking on icon retrieves the parts & properties for studios.
RMB retrieves parts & properties:
Properties have place holders telling you what that input is when there is no value or the value is null. Above the darker 'revision' is a placeholder telling you what that input value should be. The other inputs are a lighter gray meaning they've been assigned values. This is standard HTML5. It's clean and I don't have to label each input. But, it may be confusing.
The green backgrounds mean these values have been changed. An onchange event handler updates the values on change for each input. There is no 'save' for your changes.
Background colors:
red-data sent to OS (wait for response from OS)
yellow-OS doesn't match input value (usually an error)
green-OS matches input value (a good thing)
"BEST WORKFLOWS - PART STUDIOS TO ASSEMBLYS"
Parts studios & assemblies are the same thing in that they both have parts in them. I think the best way to think about Onshape is to consider parts and not part studios or assemblies.
•It's true that parts can only be created in part studios
•Assemblies manage part studios
•Assemblies allow free motion between parts
So:
•You always start off in a part studio.
•Part studios probably consist of 20 parts or less
•Part studios have references easily created between parts
•Assemblies contain part studios
•Assemblies allow free motion of parts in part studios
•Assemblies do nothing to the parts inside the part studio on import (I think this is wrong)
•Assemblies can have references between part studios (in-context referencing)
As a summary:
If you're designing something with 20 parts or less, do it in a part studio. If it has to move, put it in an assembly. As your design increases in size & complexity, start using assemblies to manage part studios.
From a programming side:
Tracking parts is the name of the game. Part studio data structures are different than assembly data structures and we'll have to create programs that deal with the different structures.
My APP was refreshing it's token every 59 minutes and staying alive. Look at the timestamps below, every 59 minutes:
So what does this mean? Onshape uses a web socket when editing a part which is a pipeline directly coupled to a server. This will always log off due to inactivity. When this happens, I just close the tab.
Since my APP is still logged in, I click the icon to establish a new socket connection to my part.
APP's don't use sockets to communicate with servers. They use rest calls which is a fluttering of requests to a server. After 60 minutes, the server stops talking to the APP and makes the APP re-register. Refreshing is a method for an APP to keep the connection alive.
To me it's faster to pick up where I left off using my APP and clicking on the images to open the exact tabs I want to work in:
If you want to try this APP in a browser tab, click on the link below:
https://rndengineering.com/os
Twitter: @onshapetricks & @babart1977