Call skEllipse(Id (array), string, map) does not match skEllipse(Sketch, ..., ...)

björn_britz
björn_britz Member Posts: 14 EDU
Im have some difficulties with my first Loop. I'm trying to create ellipses on different sketches.

heres the code
 

I want the ellipses to be on different sketch heights, but they are all on the same heigth.

Any suggestions?

Comments

  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,279 image
    Please post a link to a public document -- I don't see what's wrong at first glance, but it's impossible to debug by looking at an image of the source.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,279 image
    Ok, when I make a copy of the document, and run your feature with the origin, I get a bunch of parallel ellipses shifted in-plane, as I would expect.  I'm guessing you want them in layers, though -- you have to use your loop variable i where you specify the sketch plane (or use dims instead of definition.layerThickness) in line 35.  Hope this helps.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • björn_britz
    björn_britz Member Posts: 14 EDU
    I used dims instead.
    Thank you!