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.
Best Of
Re: Offset failed with spline ?
The offsets I did here are surface offsets. I couldn't get 5mm using a sketch offset. This is a trick I learned with Solidworks which also applies in Onshape. Whatever the algorithms are for offsetting curves in a sketch are different than what's used to offset surfaces. Sometimes surface offsets are more robust or at least allow more of an offset than sketches.
S1mon
1
Re: How to extrude with curved direction please?
Not quite sure what you are trying to do...
"Extrude along curve" sounds like a "sweep" feature to me. But if you want to extrude straight to the right but have the face match the curve you would do it in two steps (extrude larger and cut using the second sketch shape, or extrude the second face as surface and use "up" to in the extrude)
"Extrude along curve" sounds like a "sweep" feature to me. But if you want to extrude straight to the right but have the face match the curve you would do it in two steps (extrude larger and cut using the second sketch shape, or extrude the second face as surface and use "up" to in the extrude)
Re: Can I add an allowance to a driven dimension?
If you have a number of bosses and they are identical you should be able to draw one pair of boss and recess and use a pattern to create the other ones...
You might also be able to do this with a boolean operation, which has an offset feature.
Are you able to share a link to your document?
You might also be able to do this with a boolean operation, which has an offset feature.
Are you able to share a link to your document?
Re: Best way to use onshape via python
Go look at the link above supplied by @eric_pesty. Alnis gets things running with minimal effort.
My code, won't help you. I run node and I'm running off a server, the login is totally different.
Just keep in mind, that when you login into onshape, your computer has access to onshape's api. For me, my server never logs into onshape so I use a different method to access onshape.
https://cad.onshape.com/glassworks/explorer/
Here's a listing of the current API calls.
Not all calls are listed though, in many cases, you inspect the network traffic for onshape and capture the call that the onshape client makes to the servers. Let's say you want gltf data. It's not documented. So you open the debug console in your browser, then click on the gltf command inside onshape and capture the call the onshape client is making to the onshape server.
The API documentation is not complete by any means, but you can get by.
Any cloud application, you can hijack the commands they're using.
As an easy goal, try and retrieve a listing of your documents. Alnis is listing a public document so I'm not sure you have access to your own stuff. I've never run the API from localhost. You should have access to your documents because your client has access.
REST is a JSON file and there should be a function call in python to convert JSON into a python object. Then you'll need to create HTML tags and display the results in a browser or just print it out to a console.
The reason I switched to programming in node is because of JSON. Love/hate javascript, my server code is javascript and the client code is javascript. The object that's passed around is native on my server & client. I can copy code from my server and paste it into the client and make your computer parse the data. My server is a traffic cop and directs the data to clients. Then, the work begins on your computer. I only have one server instance, so I make sure it's not parsing any data. I spreading the process across all those who come to my site. Maybe I should begin a visit to site with a warning "I don't use cookies but I do use your cpu".
When you post, you'll be sending data back to the server in a JSON format that you converted from python back to JSON. Python objects are very similar to javascript objects and may not be an issue. But..... I would run your converted the python object through a JSON linter to insure compatibility, you don't want to debug this through the onshape server.
This forum is the best place to ask questions but most here write featurescripts. Tech support has a lot guys now that can help with basic API questions.
Eventually you'll want a server so others can experience your API magic. Servers are cheap and will make your magic accessible to all.
My code, won't help you. I run node and I'm running off a server, the login is totally different.
Just keep in mind, that when you login into onshape, your computer has access to onshape's api. For me, my server never logs into onshape so I use a different method to access onshape.
https://cad.onshape.com/glassworks/explorer/
Here's a listing of the current API calls.
Not all calls are listed though, in many cases, you inspect the network traffic for onshape and capture the call that the onshape client makes to the servers. Let's say you want gltf data. It's not documented. So you open the debug console in your browser, then click on the gltf command inside onshape and capture the call the onshape client is making to the onshape server.
The API documentation is not complete by any means, but you can get by.
Any cloud application, you can hijack the commands they're using.
As an easy goal, try and retrieve a listing of your documents. Alnis is listing a public document so I'm not sure you have access to your own stuff. I've never run the API from localhost. You should have access to your documents because your client has access.
REST is a JSON file and there should be a function call in python to convert JSON into a python object. Then you'll need to create HTML tags and display the results in a browser or just print it out to a console.
The reason I switched to programming in node is because of JSON. Love/hate javascript, my server code is javascript and the client code is javascript. The object that's passed around is native on my server & client. I can copy code from my server and paste it into the client and make your computer parse the data. My server is a traffic cop and directs the data to clients. Then, the work begins on your computer. I only have one server instance, so I make sure it's not parsing any data. I spreading the process across all those who come to my site. Maybe I should begin a visit to site with a warning "I don't use cookies but I do use your cpu".
When you post, you'll be sending data back to the server in a JSON format that you converted from python back to JSON. Python objects are very similar to javascript objects and may not be an issue. But..... I would run your converted the python object through a JSON linter to insure compatibility, you don't want to debug this through the onshape server.
This forum is the best place to ask questions but most here write featurescripts. Tech support has a lot guys now that can help with basic API questions.
Eventually you'll want a server so others can experience your API magic. Servers are cheap and will make your magic accessible to all.
billy2
1
Re: Creating equal spacing between different size objects in a sketch
If I understand the ask, the trick is to add short construction line segments between each circle, and set them all equal.
You can also set the two outer spacers equal to each other and set them to some value, and then set all of the inner spacers equal and let them be the resultant. Or you could get rid of the outer spacers and just dimension the circles from the edges how ever you want.
You can also set the two outer spacers equal to each other and set them to some value, and then set all of the inner spacers equal and let them be the resultant. Or you could get rid of the outer spacers and just dimension the circles from the edges how ever you want.
S1mon
4
Re: Offset failed with spline ?
You have some areas of very tight curvature. You can't offset a curve more than the minimum radius. In this case that's 0.031. Also offsetting surfaces can be more robust in extreme situations. Using surface offsets, I can offset to the inside by about 5mm and to the outside by 0.03mm before things fail.
If you broke your sketch into one spline per petal, you'd have a lot more ability to offset to the outside.
S1mon
1
Re: Grid Extrude Custom Feature
Thanks for the feedback everyone. To be honest, there are still bugs I'd love to fix and improvements I'd love to make, but I can't make it a priority right now. This would be another of those situations where I'd be glad to push out some improvements that someone else helps code up though!
Re: Where is the assembly version of the "Insert Part Studio as rigid"?
You can group all the parts in an assembly to keep them from moving relative to each other.
S1mon
1