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.

Triad manipulator not aligned to world axis?

EvanReeseEvanReese Member, Mentor Posts: 2,856 PRO
The documentation defines triadManipulator() as "Create a manipulator represented by a triad of perpendicular arrows, aligned with the world axes, which specify a 3D position."
Is there a way to align it to another coordinate system, not aligned to the world axes? I'd like to not hack my own together out of 3 linear manipulators if I can help it.
Evan Reese
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com

Best Answer

  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    Answer ✓
    I think making your own triad manipulator of three linear ones is the only option. The good news is that you can make it a generic library function which you only need to make once and reuse everywhere.

Answers

  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    Answer ✓
    I think making your own triad manipulator of three linear ones is the only option. The good news is that you can make it a generic library function which you only need to make once and reuse everywhere.
  • Alex_KempenAlex_Kempen Member Posts: 258 EDU
    I have had some success with using a triadManipulator in a non-axis aligned configuration by projecting the result onto a plane; When the plane is viewed normal, dragging the manipulator using the square closest to the correct view behaves expectedly (even if it is tilted at an angle). That only works for co-opting a triadManipulator into a fancy planar manipulator, however.
    Software Developer at Epic Systems
    FRC Design Mentor - Team 1306 BadgerBots


  • EvanReeseEvanReese Member, Mentor Posts: 2,856 PRO
    Thanks, fellas! @konstantin_shiriazdanov have you already created some such function somewhere that I could use? If not, no worries, I can make one.
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    edited January 2022
    Thanks, fellas! @konstantin_shiriazdanov have you already created some such function somewhere that I could use? If not, no worries, I can make one.
    Not the triad one, but I've been making some customization of manipulators so I'm sure it is possible. You will probably want to create a function that sets three linear manipulators in feature body and another function that reads their outputs in manipulators change.
  • MichaelPascoeMichaelPascoe Member Posts: 2,803 PRO
    I'm interested in a function like this too. Let me know if you guys start one so I don't re-create it unnecessarily.

    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • EvanReeseEvanReese Member, Mentor Posts: 2,856 PRO
    lol maybe we should just make an improvement request instead :D I'll let you know if I get around to it.
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • EvanReeseEvanReese Member, Mentor Posts: 2,856 PRO
    Did any of you get around to this? I'm still wanting it so I may make time for one if no one else has.
    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • MichaelPascoeMichaelPascoe Member Posts: 2,803 PRO
    I did not.

    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • EvanReeseEvanReese Member, Mentor Posts: 2,856 PRO
    edited May 2022
    Thanks, I noticed that the Meta Sculpt feature has something like this, but I've not dug into the implementation. It's not exactly what I'm going for anyway. Here's as far as I got at mocking it up for Freeform Spline, but I've got more work to do.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • MichaelPascoeMichaelPascoe Member Posts: 2,803 PRO
    Sweetness.

    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • michael_zeaglermichael_zeagler Member Posts: 148 ✭✭✭
    This should totally be an improvement request.
  • jnewthjnewth Member, OS Professional Posts: 110 PRO
    Hello all. I made public my FeatureScript: [mf] localTriadManipulator and [mf] localTriadManipulator demo which shows how to use it.

    Some observations:
    1. Because of my use of hidden variables in the predicate, there can be only one "localTriadManipulator" per feature. 
    2. The 'triad' doesn't have to be an orthogonal, independent set of basis vectors.
    Hope it's useful. You can search public documents for 'localTriadManipulator'.

    Demo: 
    https://cad.onshape.com/documents/f828d6bc36d2b4c6ebedac37/w/0e8fd9c40d67f569d9fd35ad/e/edb843e3e5157e64f0e61fa4?renderMode=0&uiState=627c21fadc79c170d2e62889

    FS itself: 
    https://cad.onshape.com/documents/6b6fa35f49b00b5c8e5a04f4/w/88333a37a559dda1cdc1685f/e/0cd771eb66db586f1b899226


  • MichaelPascoeMichaelPascoe Member Posts: 2,803 PRO
    edited May 2022

    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
Sign In or Register to comment.