Problem with rs.AliasNames()?


#1

running the example from the docs (below) is returning an error.
Version 5 SR5 (5.5.30717.16015, 17/07/2013)
perhaps in line 60 of application.py (GetNames() instead of Names)
p

import rhinoscriptsyntax as rs
aliases = rs.AliasNames()
for alias in aliases: print alias

#2

Oops, that looks like a typo in the Rhinoscriptsynytax…

This works:

import Rhino
aliases=Rhino.ApplicationSettings.CommandAliasList.GetNames()
for alias in aliases: print alias

–Mitch


(Steve Baer) #3

Got it. I filed and fixed the bug (http://mcneel.myjetbrains.com/youtrack/issue/RH-21320) for SR7

I also updated the rhinoscriptsyntax file on github
https://github.com/mcneel/rhinopython/blob/master/scripts/rhinoscript/application.py