Ejemplo n.º 1
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddArcParameter("Arc", "A", "需要进行测量的弧", GH_ParamAccess.item);
            pManager.AddNumberParameter("Offset", "O", "偏移的距离", GH_ParamAccess.item, 10);
            pManager.AddTextParameter("Text", "T", "标注显示的文字", GH_ParamAccess.item);
            pManager.AddGenericParameter("DimStyle", "D", "标注样式", GH_ParamAccess.item);

            pManager[2].Optional = true;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddArcParameter("圆弧", "A", "已知圆弧", GH_ParamAccess.item);
     pManager.HideParameter(0);
     Message = "互补圆弧&复原圆";
 }