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.
Sketch modification by FS
konstantin_shiriazdanov
Member Posts: 1,221 ✭✭✭✭✭
I'd like to find out if FS allows to take a user-defined sketch as one argument and and the dimention from that sketch or the viriable that drives a certain dimention and generate a new sketch having those dimention changed by user set rule. This can be used for dimention-driven patterns and in kinematically-defined planar curves.
0
Comments
But unfortunately, the sketches don't line up: inside a feature pattern, a sketch drops all external constraints (this makes it possible to pattern a solved unchanging sketch without patterning everything it is constrained to, but at the cost of this use case). So I think the way to fix this with FS is to modify the linear pattern feature so that after each sketch call it queries for a point on the sketch and does an opTransform on all created sketch entities to bring it back to where you want it.
Hope this helps and post if you have further questions.
I'd like to return to this problem as soon as can't find sketch calls inside the Linear pattern feature in the explicit form.
Minimal task is - take a sketch as first argument, take the name of variable as a second one, and the value of the variable as a third argument. Then regenerate the sketch with this changed value of variable.
I apologize in advance for possible stupid questions.
The questions are:
- How to get sketch object from query as one? Im trying precondition "is FeatureList" but it gives a map, wich I process with "valuesSortedById" and obtain a function, but it isn't of sketch type, and skSolve can't be applied.
- Maybe I shouldn't try regenerating the original sketch, but instead somehow create an intermediate copy of it?
here is my code, the only thing it does now - changes value of variable