pins feature script - could someone check it?

maciek
maciek OS Professional Posts: 35 PRO

Hi,

I made a simple featurescript which makes holes for pins. This code is based on another feature script, but after my modifications it doesn't work.

Can someone look at it? Thanks

https://cad.onshape.com/documents/7885d89fd6ec3627369211b5/w/2607ea11c0a7be49338866ec/e/378d4212adbdd68ac5b3ad02

Comments

  • GregBrown
    GregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 412 image
    edited March 2025

    You'll need to increment i, probably at around line 109 or so? Just insert i+=1;

    But you'll also need remove the "MaxNumberOfPicks" : 1 in line 33 to make it work for multiple vertex selections

  • maciek
    maciek OS Professional Posts: 35 PRO

    Thanks, it works