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.

Options

Help on skSetInitialGuess?

dave_cowdendave_cowden Member, Developers Posts: 470 ✭✭✭
I need a little guidance on how this works. I'm getting into scripting sketches, and I really can't find any examples or documentation about how to use this function.

For simple sketches I have found that omitting it works ok. But as soon as I've started using skText, and skLineSegment,
I find that my text doesn't behave unless I use skSetInitialGuess. But then the text appears to go all over the place. 

I can see from creating a PartStudio that setting the initialGuess for an skText has 5 parameters, and an skLineSegment appears to have 6 parameters.

What are the values in the array?


Answers

  • Options
    john_f_carrjohn_f_carr Onshape Employees Posts: 74
    skSetInitialGuess is not meant for interactive use.  It looks like we're missing some documentation for skText.  Try using firstCorner and secondCorner fields in the map argument, as documented for other sketch functions.
Sign In or Register to comment.