Hi,
I think you need read this post firstly and carefully.
It is a guide for new members of this forum about how to express themselves clearly and efficiently.
That post is by the David Rutten who is the creator God of Grasshopper,every new members should not miss it.
After reading and learning, then you can modify your post and attach just part of you def file which is the core of your problem.
1 Like