Home › Forums › Nazca › Connecting two different pins including rotation › Reply To: Connecting two different pins including rotation
8 February 2022 at 18:04
#6707
Moderator
Dear Matthew,
The standard way to do this is shown in the example below.
import nazca as nd
s = nd.strt(100, width=2).put(0, 0) # default connecting pin is 'b0'
# connects default s.pin['b0'] to default taper 'a0'
nd.taper(width1=2, width2=10, length=100).put()
s = nd.strt(100, width=2).put(0, 20) # default connecting pin is 'b0'
# connects default s.pin['b0'] to taper 'b0'
nd.taper(width1=2, width2=10, length=100).put('b0')
s = nd.strt(100, width=2).put(0, 40) # default connecting pin is 'b0'
# connects s.pin['a0'] to default taper 'a0'
nd.taper(width1=2, width2=10, length=100).put(s.pin['a0'])
s = nd.strt(100, width=2).put(0, 60) # default connecting pin is 'b0'
# connects s.pin['a0'] to taper 'b0'
nd.taper(width1=2, width2=10, length=100).put('b0', s.pin['a0'])
nd.export_plt()
Xaveer