Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Can points be added to an existing sketch with feature script?
ron_moreland
Member Posts: 90 ✭✭
I want to add functionally derived points to a sketch to use as anchors. Can I do this with feature script?
In a way I'm asking to create a custom constraint.
In a way I'm asking to create a custom constraint.
Tagged:
0
Best Answer
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭via FS you can't make editable sketches and can't modify existing sketches except deleting. but you can generate by FS a number of 3d points and reference them from the sketch
5
Answers
I'm getting "Precondition of skPolyline failed (is2dPointVector(value.points))" in the error window.
Can you see the problem? I suspect I need to declare a vector array, but I don't know how to do that.
point = vector(0, CL) * inch;
fPoints = append(fPoints, point);
but "point" should depend on loop index "i", or you would obtain array of one the same point "vector(0, CL) * inch"
and one more thing - to add geometry to 2d sketch you need to initialize the sketch first by means of mySk = newSketch() or mySk = newSketchOnPlane() functions and after the geometry added sketch should be solved by skSolve(mySk)