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

Scripting Leader Arrow Type

$
0
0

@Alasdair wrote:

Is it possible to change the arrow type for leaders using Rhinoscriptsyntax or rhinocommon? Here’s what I have so far.

import rhinoscriptsyntax as rs
import Rhino

def LeaderArrowType():
leaders = rs.GetObjects(“Choose leaders to change”, rs.filter.annotation, preselect=True)
if not leaders: return

for leader in leaders:
    leader = rs.coercerhinoobject(leader)
    
    arrowStyle = Rhino.DocObjects.DimensionStyle.ArrowType.Dot
           
    leader.Geometry.LeaderArrowType = arrowStyle

LeaderArrowType()

This doesn’t seem to be working. I’m guessing that “leader.Geometry.LeaderArrowType” can on get the arrow type, not set it?

Thanks All :grinning:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5897

Trending Articles