@unknownp wrote:
Could you guys fix this script so I could use it properly.
What I am doing wrong ? I need just Z coordinate.Thank you.
import Rhino
import rhinoscriptsyntax as rspt = rs.GetPoint()
If Not pt: returnzVal = str(round((pt.Z), 2))
zVal = str(round((pt.Z), 2))
If pt.Z & gt; 0: zVal = “US %s”%zValrs.Command("_-Leader " + “w” + str(pt) + " _Pause _Pause _Enter _Enter")
If rs.LastCommandResult() = 0 : return
leaderId = rs.LastCreatedObjects() [0]
rs.LeaderText(leaderId, zVal)
Posts: 1
Participants: 1