Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5743

AddLeader not working

$
0
0

@jonathan3 wrote:

I have a script that uses Rhino.AddLeader that has worked for many years. It now won’t add a leader to the document and the function returns Null.

The rest of the script works fine. I’ve also tested this with a single line script in a blank document and it also fails. Seems to be an issue with the latest update but I haven’t tried rolling back yet.

Test code:
obj = Rhino.AddLeader(Array(Array(0, 0, 0), Array(1, 1, 0), Array(2, 3, 0)))
If isNull(obj) Then Rhino.Print(“Could not create”)

Changing AddLeader to AddPolyline in the above works fine.
Running Rhino 6 SR22
(6.22.20021.10391)

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5743

Trending Articles