[mw_shl_code=applescript,true]#coding=utf-8
#在rhinopython中调用rhinocommon需要将其实例化才会在rhino视窗显示GUID的东西
import Rhino
import scriptcontext as sc
import math
import rhinoscriptsyntax as rs
trigon=rs.GetObjects("选择多个三角形",rs.filter.curve)
pos=rs.GetInteger("标注位置(距顶点几分之一的位置标注)",4)
of=rs.GetReal("标注偏移",0)
for tri in trigon:
dimensions(tri,pos,of)
[/mw_shl_code]