Repeating transforms using feature script.

raf_claassens
raf_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_thorsen229
    rune_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_thorsen229
    rune_thorsen229 Member Posts: 182 EDU

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