New Feature: Linear Pattern Plus

13»

Comments

  • eric_pesty
    eric_pesty Member, pcbaevp Posts: 2,948 PRO
    @eric_pesty
    That's also possible, but would make all of the other instances unstable in unintuitive ways. If you reference instance 2 it would keep jumping around as you change the count. I think I prefer it to just keep the last one stable by essentially labeling it "last" instead of "instance 5" or something.
    LOL!
    Good point. I should probably think things through a bit more before typing it in!
  • shawn_crocker
    shawn_crocker Member, OS Professional Posts: 1,075 PRO
    I'm starting to wonder if it wouldn't be nicer to have a separate feature that can integrate with the pattern.  Something that would create sort of a dummy piece of geometry that one can use to link up to.  There could maybe be a lot more possibility for additional control over exactly what the user may want the dummy instance to do.  So, clearly people want the last instance stable.  But maybe sometimes you want the second from last instance stable.  Or the third.  Maybe you want the instance closest to the center stable.  Maybe if the quantity of instances is even, you want the last instance stable but when odd, the second from last.  My thought on this stems from generally being quite content with creating a second pattern of the so called "dummy" piece of geometry and just using the extract variable feature to drive it and potentially add some other logic in there.  My only issue with this technique is, I don't use it quite everyday and when I do use it, I have to think for a few moments longer then I would have liked. :D . If there was another feature similar to the extract variables but created that dummy part with all the needed options and logic all in one feature, I think it would possible be better.  And then the linear pattern continues to behave in more or less the way designers expect and have been accustomed to for decades.
  • justin_morgan525
    justin_morgan525 Member Posts: 2 ✭

    Where exactly can I see how the offset function today works? I belive that is what I want (to leave a space on each end of the pattern) but cannot figure out how it is working.

  • shawn_crocker
    shawn_crocker Member, OS Professional Posts: 1,075 PRO

    I'm not positive of what you are referencing. What do you mean "offset function"?

  • EvanReese
    EvanReese Member, Mentor Posts: 3,112 PRO

    eh without digging too much into it it's got to do with the embedVariableList() function, which sets all of the parameters to a map with setVariable() then the next feature gets that variable. I'd probably do it differently today if reimplementing that. Are you skipping instances a lot? I don't really ever seem to reach for it.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    Usually more on curve driven patterns or normal linear patterns where an instance of geometry lies too close to another thing of importance and we don't want to adjust the rest of the spacing to try to accommodate.

  • EvanReese
    EvanReese Member, Mentor Posts: 3,112 PRO

    makes sense. Well thanks for tinkering with it! I have too many other priorities right now so I wouldn't get to digging into it for a while, but if you end up figuring it out I'd gladly add it to the main branch and credit you as a contributor in a code comment.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • elijahpekaar
    elijahpekaar Member Posts: 57 PRO

    @EvanReese, I apologize if this has already been mentioned, but when I use the second direction, I end up with double the amount of instances.

    image.png

    Is there a way to independently control the pattern in either direction?

  • EvanReese
    EvanReese Member, Mentor Posts: 3,112 PRO

    Not currently. Second direction is meant to be in a different axis that the first (if first is X, second might be Y). You can turn on "Centered" to get it going the other way, but not with different settings that the first one. I'd do two of these features in a row to get the behavior you want.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com