Hi,
Can I get a script to change the center mark style in the default annotation to none? Also is there a good place to learn python for Rhino?
Hi @Harold1, below should do it:
import Rhino
import scriptcontext
def ChangeDimStyleCenterMarkType():
old_style = scriptcontext.doc.DimStyles.Find("Default", True)
if not old_style: "DimensionStyle 'Default' not found"; return
center_mark_type = Rhino.DocObjects.DimensionStyle.CenterMarkStyle.None
if old_style.CenterMarkType != center_mark_type:
new_style = old_style.Duplicate()
new_style.CenterMarkType = center_mark_type
scriptcontext.doc.DimStyles.Modify(new_style, old_style.Id, True)
scriptcontext.doc.Views.Redraw()
if __name__=="__main__":
ChangeDimStyleCenterMarkType()
Yes, you might start here: Rhino - Rhino.Python Guides
_
c.
Thanks works good.