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.
I'm working with a lot of legacy 2D DXF drawings and the imported lines are not constrained.
jacob_luetkemeyer
Member Posts: 8 ✭
I'm wondering if there's a way I could generate constraints based on the geometry of an imported sketch. For example If i import a rectangle and change the length dimension, how do i make the rectangle to behave like a constrained rectangle instead of dimensionalizing just 1 line at a time.
Tagged:
1
Answers
Not only are the lack of constraints an issue but we have double lines, points not connected with a gap of <.0001"
Re-working the sketches is at the time our best option but I'm hoping to find a more automated approach.
@dave_cowden posted in another thread that he had worked out a solution to get better quality DXF files into Onshape for a featurescript library he's work on, this maybe of some help but ultimately we want this in the standard issue of Onshape.
Twitter: @onshapetricks & @babart1977
The code I wrote did not solve the problem by allowing added constraints. That would indeed be cool. I was simply importing the dxf, and then converting individual line segments and arcs with almost matching endpoints to polylines and then trying bto close them. In practice, I found that the dxfs exported for 80/20 and many standard steel profiles needed this treatment.
What you ended up with in in shape was still a completely unconstrained sketch.. it just had the end points connected correctly.