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.

Ability to select sketch coordinate system when creating

konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 863 ✭✭✭✭✭
edited May 2017 in FeatureScript
I noticed that no matter how coordinate system of the plane was defined when sketch is created on the plane it always created by newSketch( ) function. I would like to have more control under the orientation of coordinate system of the sketch (be able to create user defined sketch by newSketchOnPlane()). I think this functionality can be extended by allowing user to create sketch by selecting mate connector instead of planar face. Thus one may take control under coordinate system of the sketch.

Tagged:

Comments

  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 863 ✭✭✭✭✭
    now i tried to modify original sketch.fs to make sketch tool create sketches based on coordinate system defined by mate connector, and some strange error occuring
    https://cad.onshape.com/documents/8331d15630b35a24c141111b/w/0cbd83b60224be56f674efc3/e/f4cc466621b6b86b2fb058d5

    don't know why this post was mooved from improvement requestst, because it is about extending functionality of built in sketch tool

  • MBartlett21MBartlett21 Member Posts: 1,500 EDU
    +1
    MB - I make FeatureScripts: view FS (My FS's have "Official" beside them)
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 910
    Sketches are very special, so making a custom feature by modifying sketch.fs won't work.
    We adjust the coordinate system deliberately to minimize "parametric surprise" because for a random planar face, the internal coordinate system is not predictable.  I suppose we could make an exception for mate connectors, but what is your use case?  Fancy feature patterns?
    Ilya Baran \ Director of FeatureScript \ Onshape Inc
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 863 ✭✭✭✭✭
    @ilya_baran my case was to reduce the number of user defined constraints inside the sketch by selecting it coordinate system so "horizontal"/"vertical" constraints would follow user defined directions rather then some projected vectors - the more explicit control the better.
  • MBartlett21MBartlett21 Member Posts: 1,500 EDU
    +1
    MB - I make FeatureScripts: view FS (My FS's have "Official" beside them)
Sign In or Register to comment.