API CreateCircularSketchStepAndRepeat parameters ?

Discussion in 'SolidWorks' started by Philippe Guglielmetti, Jun 14, 2004.

  1. Did anyone guess how to compute the "arcRadius" and "arcAngle" parameters ?
    They look like a polar position of the center relative to something ...
    Thanks!
     
    Philippe Guglielmetti, Jun 14, 2004
    #1
  2. Looks like it uses center of bounding box. Would have been a nice mention
    SW!!!
    From there you can use the coordinates to calculate your desired Radius and
    Angle

    Corey Scheich
     
    Corey Scheich, Jun 14, 2004
    #2
  3. Thanks Corey...If you're right, it's worse than I expected, not to say
    unusable.
    (How do you obtain the center of the bounding box of a selection done
    through API ???)
    I think I'll code my own circular pattern (I pattern gear teeth around the
    origin) ...
     
    Philippe Guglielmetti, Jun 14, 2004
    #3
  4. Philippe,

    If they had a call available to get the bounding box of a sketch it would be
    great but I know of no such thing. I had tested it manually but don't even
    want to think about the API needed to get the bounding box. I guess you
    could grab all the selected lines and arcs and calculate the coordinates of
    their quadrants and keep the largest and smallest numbers and combine them
    for a bounding box. Splines would pose another problem though.

    Why don't you use a single tooth, and us the pattern feature. It would
    probably be quite a bit more friendly than patterning the sketch.

    Corey
     
    Corey Scheich, Jun 14, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.