当前位置: 首页>>代码示例>>C#>>正文


C# GH_Component.AddLineParameter方法代码示例

本文整理汇总了C#中GH_Component.AddLineParameter方法的典型用法代码示例。如果您正苦于以下问题:C# GH_Component.AddLineParameter方法的具体用法?C# GH_Component.AddLineParameter怎么用?C# GH_Component.AddLineParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GH_Component的用法示例。


在下文中一共展示了GH_Component.AddLineParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RegisterOutputParams

 /// <summary>
 /// Registers output parameters for component
 /// </summary>
 /// <param name="pManager"></param>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "New Points", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "New radius", GH_ParamAccess.list);
     pManager.AddLineParameter("Acceleration", "A", "Draws lines to represent the acceleration of a point", GH_ParamAccess.list);
     pManager.AddLineParameter("Velocity", "V", "Draws lines to represent to velocity of a point. A good way to check if the system has settled is to attached the following to this output: Curve Length -> Mass Addition -> Data Recorder -> Quick Graph", GH_ParamAccess.list);
     pManager.AddNumberParameter("Brigthnesses", "B", "Current brightness of mesh at location of point", GH_ParamAccess.list);
 }
开发者ID:formateng,项目名称:repulsive,代码行数:12,代码来源:RepulsionOfPointsOnMesh.cs

示例2: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("LineA", "LnA", "Line representing the first segment [m]", GH_ParamAccess.item);
     pManager.AddLineParameter("LineB", "LnB", "Line representing the consecutive segment [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
     pManager.AddNumberParameter("Inertia", "I", "The moment of inertia [mm4]", GH_ParamAccess.item);
     pManager.AddNumberParameter("z-distance", "z", "The distance from the section axis to the extreme fiber [mm]", GH_ParamAccess.item);
     pManager.AddIntegerParameter("RestAngleOption", "Opt", "Specify the rest angle. 0: straight. 1: current angle", GH_ParamAccess.item, 0);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:12,代码来源:Rod.cs

示例3: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Lines", "ln", "The lines to display", GH_ParamAccess.list);
     pManager.AddPointParameter("DisplacedNodes", "pFinal", "The displaced nodes", GH_ParamAccess.list);
     pManager.AddNumberParameter("Displacement", "displ", "The nodal displacements", GH_ParamAccess.list);
     pManager.AddColourParameter("ColourRange", "c", "The colour range (use gradient)", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:DisplacementVisualisation.cs

示例4: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "L", "A line to convert into a va3c JSON representation of the line", GH_ParamAccess.item);
     pManager.AddGenericParameter("Line Material", "Lm", "Line Material", GH_ParamAccess.item);
     pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
     pManager[2].Optional = true;
 }
开发者ID:luodinglin,项目名称:GHvA3C,代码行数:10,代码来源:va3c_Line.cs

示例5: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "Ln", "Line representing the cable element [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
     pManager.AddNumberParameter("Area", "A", "Cross-section area [mm2]", GH_ParamAccess.item);
     pManager.AddNumberParameter("PreTension", "P", "Optional pre-tension [kN]", GH_ParamAccess.item);
     pManager[3].Optional = true;
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:11,代码来源:Cable.cs

示例6: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexStart", "PI0", "The start particle index of a bar element", GH_ParamAccess.item);
     pManager.AddIntegerParameter("PIndexEnd", "PI1", "The end particle index of a bar element", GH_ParamAccess.item);
     pManager.AddLineParameter("Line", "ln", "The updated line geometry", GH_ParamAccess.item);
     pManager.AddNumberParameter("AxialForce", "F", "The axial force [kN] in the bar (- is compression)", GH_ParamAccess.item);
     pManager.AddNumberParameter("AxialStress", "stressA", "The axial stress [MPa] in the bar (- is compression)", GH_ParamAccess.item);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:11,代码来源:CastBarOutput.cs

示例7: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "Ln", "Line representing the bar element [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
     pManager.AddNumberParameter("Area", "A", "Cross-section area [mm2]", GH_ParamAccess.item);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:9,代码来源:Bar.cs

示例8: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Lines", "L", "Lines to be converted", GH_ParamAccess.item);
     pManager.AddGenericParameter("CrossSection", "CS", "Defines cross section of beam", GH_ParamAccess.item);
      pManager.AddGenericParameter("Material", "M", "Defines material of beam", GH_ParamAccess.item);
 }
开发者ID:AndreasBak,项目名称:GrasshopperSharpFE,代码行数:6,代码来源:BeamComponent.cs

示例9: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "ln", "Line segment in [m]", GH_ParamAccess.list);
     pManager.AddNumberParameter("BendingMoment", "M", "The bending moments in [kNm]", GH_ParamAccess.list);
     pManager.AddPlaneParameter("BendingPlane", "pl", "The bending planes", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:9,代码来源:Shear.cs

示例10: RegisterOutputParams

        /// <summary>
        /// Registers all the output parameters for this component.
        /// </summary>
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.AddLineParameter("lines", "lines", "lines", GH_ParamAccess.item);
            //pManager.AddGenericParameter("surfaces", "surfaces", "surfaces", GH_ParamAccess.list);
            //pManager.AddBrepParameter("surfaces", "surfaces", "surfaces", GH_ParamAccess.list);
            pManager.AddCurveParameter("curveRight", "curveRight", "curveRight", GH_ParamAccess.list);
            pManager.AddCurveParameter("curveLeft", "curveLeft", "curveLeft", GH_ParamAccess.list);

            pManager.AddNumberParameter("Coplanarity", "Coplanarity", "Coplanarity", GH_ParamAccess.list);
            pManager.AddLineParameter("linesUp", "linesUp", "linesUp", GH_ParamAccess.list);
            pManager.AddLineParameter("linesDown", "linesDown", "linesDown", GH_ParamAccess.list);
        }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:15,代码来源:GHC_DualLoopDoubleLayer.cs

示例11: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddLineParameter("Connect Line", "cL", "all output line to connect pairs of points", GH_ParamAccess.list);
     pManager.AddNumberParameter("Connect Weight", "cW", "line weight of each lines, this is calculated by average chemoattractor level of point pairs.", GH_ParamAccess.list);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:8,代码来源:FieldInterconnectComponent.cs

示例12: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "ln", "The lines to display", GH_ParamAccess.list);
     pManager.AddNumberParameter("Axial stresses", "stressA", "The axial stresses", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:8,代码来源:AxialVisualisation.cs

示例13: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Gridline", "Gridline", "Gridline", GH_ParamAccess.item);
     int b = pManager.AddTextParameter("Name", "Name", "Name", GH_ParamAccess.item);
     int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
     pManager[a].Optional = true;
     pManager[b].Optional = true;
 }
开发者ID:samuto,项目名称:Grevit,代码行数:8,代码来源:Revit.Components.cs

示例14: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddLineParameter("Connect Line", "CL", "Connect Line", GH_ParamAccess.list);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:7,代码来源:PopulationInterconnectComponent.cs

示例15: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Bars", "bars", "Bar elements", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:7,代码来源:BarLength.cs


注:本文中的GH_Component.AddLineParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。