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.

Repeating transforms using feature script.

raf_claassensraf_claassens Member Posts: 2
Hi,

I'm trying to use feature script to create interesting geometries from a simple geometry, like a cube, for a maths project as this would be too much work by hand and not lend itself well to experimentation. By duplicating and then applying a few simple transforms, I'm hoping to create something akin to the Koch snowflake but even simpler in its ruleset and in CAD. I don't have much experience with feature script, however.

So, to formulate my question: How would I use feature script to repeat a set of transforms, e.g. rotate and then scale, on a given object? I've tried to find out how transform operations in feature script work using the library documentation, but I've found the information it provides rather scarce. I think I need an opPattern, but then I cannot seem to figure out what I have to do with InstanceNames??

Any help would be greatly appreciated,
Thanks in advance!

The document I'm working in:

Answers

  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU

    Instead of having to write scripts for such simple things one would expect that one could just copy paste operations (like transform) in the features list. Will you help me raise the request?

  • rune_thorsen229rune_thorsen229 Member Posts: 182 EDU

    https://forum.onshape.com/discussion/24927/copy-pasting-items-like-transform-in-the-feature-list/p1?new=1

Sign In or Register to comment.