Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

DXF Import or Export

chris_muenzer909
chris_muenzer909 Member Posts: 3 ✭

For the products that my company makes, we laser etch artwork onto a cylindrical component. In the past, someone would sketch all of the artwork in solidworks. This artwork would be exported as a DXF to load into the machine and wrapped around the part in 3D for the drawing for QC checks.

Different variants of the product have different artwork requirements, so there was a lot of manual work when ever this needed to change.

It seems like a good candidate for a FeatureScript, but I've been struggling with the DXF part.

My first attempt was use the MCP to write a feature that would take a DXF file and then wrap it onto the part. This sort of worked, but the file had to be renamed as a TXT file and there was a size limit since the native Insert DXF tool doesn't seem to be accessible. Also this still required the generation of the DXF in a separate program.

The second attempt was to use FeatureScript to generate all the artwork as a sketch directly in OnShape. This seemed to work really well to create the 3D file, but there doesn't seem to be any way to export the flat sketch as a DXF to program the laser.

Any thoughts of other approaches? Or something I'm missing?

Thanks for the support.