In the last post we saw a simple command that connects a block with a curve via a line that starts at the insertion point and meets the curve at its closest point. In this post we’re going to see how we can search the modelspace for the nearest curve and connect each block to that. There are a few interesting techniques used in this post’s code: We use the dynamic keyword to count the block references for a particular block without starting a transaction (as we’re still in the user input phase, at that point). We’re going to... Read more →