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.

STL export-- arbitrary coordinate system?

michael_bushmichael_bush Member Posts: 1 PRO
edited November 2016 in Community Support
Hi-
I've got a model where the parts are all where I want them to be, but when I create an STL export, the origin is moved to some apparently arbitrary place inside the body.  
This is problematic because I'm trying to produce models that can then be manipulated (in another software package) with a coordinate transformation.
How do I force the STL export to use the coordinate system that I've designated in the model?
thanks,
Michael

Answers

  • rex_hansonrex_hanson Member Posts: 20
    I have the same question. Looks like there isn't an answer since this was first posted back in 2016.
  • mthiesmeyermthiesmeyer Onshape Employees Posts: 85
    Hi @rex_hanson,

    STL files are simply a list of x, y, z points defining triangles that, when rendered, look like the shapes that you were modeling. If you create some geometry offset from the origin by a significant amount:



    then export that geometry as stl and re-import to Onshape (ensuring that import units are the same as export units), you will notice that the geometry has not changed position:



    What software are you importing your STL file into? It is possible that they designate a different axis as y (perhaps y pointed up?) or that they are trying to be helpful by centering your geometry on the origin after import.

    Best,

    Mike
  • rex_hansonrex_hanson Member Posts: 20
    I'm importing my stl file into Makerbot for 3D printing. The problem is I started with an imported CAD geometry that has an angled surface that I'd like to use as my reference when exporting my new geometry. As it is, my exported geometry comes in at an angle due to the initial reference coordinate system used to generate the stl file. It is simple enough to rotate my model in Makerbot if I want to do a straight print. But if I want to scale the model in one direction then it is impossible to do since the part is tilted in space relative to the default coordinate system of the part. If I could select a reference frame to use when creating the stl file then it would be easy to scale the stl file in the standard XYZ directions. The model I'm working on with this issue is:
    https://cad.onshape.com/documents/9e862dc61083856716a3b568/w/9518ac2e5bf0597d55ad12a6/e/05def64b3ee0bd111485c700
  • owen_sparksowen_sparks Member, Developers Posts: 2,264 PRO
    edited January 18
    Why not scale the model in CAD? (Onshape has linear and non linear scaling then the transform function.)
    Cheers, Owen S.
    Production Engineer
    HWM-Water Ltd
  • MBartlett21MBartlett21 Member Posts: 1,553 EDU
    You can use transform by mate connectors or rotate to transform it so it points the right way.
    You can then scale your part
    MB - I make FeatureScripts: view FS (My FS's have "Official" beside them)
Sign In or Register to comment.