コード例 #1
0
ファイル: Wall.cs プロジェクト: OrganizationUsername/MPT.Net
 /// <summary>
 /// Sets the API.
 /// </summary>
 /// <param name="apiAreaSection">The API area section.</param>
 /// <param name="name">The name.</param>
 /// <param name="properties">The properties.</param>
 protected static void setApi(ApiAreaSection apiAreaSection, string name, WallProperties properties)
 {
     apiAreaSection.SetWall(name,
         properties.Thickness,
         properties.WallType,
         properties.ShellType,
         properties.MaterialName,
         properties.GeneralData.Color,
         properties.GeneralData.Notes,
         properties.GeneralData.GUID);
 }
コード例 #2
0
 /// <summary>
 /// Sets the API.
 /// </summary>
 /// <param name="apiAreaSection">The API area section.</param>
 /// <param name="name">The name.</param>
 /// <param name="properties">The properties.</param>
 protected static void setApi(ApiAreaSection apiAreaSection, string name, DeckProperties properties)
 {
     apiAreaSection.SetDeck(name,
                            properties.OverallDepth,
                            properties.FloorType,
                            properties.ShellType,
                            properties.MaterialName,
                            properties.GeneralData.Color,
                            properties.GeneralData.Notes,
                            properties.GeneralData.GUID);
 }
コード例 #3
0
ファイル: Slab.cs プロジェクト: MarkPThomas/MPT.Net
 /// <summary>
 /// Sets the API.
 /// </summary>
 /// <param name="apiAreaSection">The API area section.</param>
 /// <param name="name">The name.</param>
 /// <param name="properties">The properties.</param>
 protected static void setApi(ApiAreaSection apiAreaSection, string name, SlabProperties properties)
 {
     apiAreaSection.SetSlab(name,
                            properties.SlabThickness,
                            properties.FloorType,
                            properties.ShellType,
                            properties.MaterialName,
                            properties.GeneralData.Color,
                            properties.GeneralData.Notes,
                            properties.GeneralData.GUID);
 }
コード例 #4
0
ファイル: Plane.cs プロジェクト: OrganizationUsername/MPT.Net
 /// <summary>
 /// Sets the API.
 /// </summary>
 /// <param name="apiAreaSection">The API area section.</param>
 /// <param name="name">The name.</param>
 /// <param name="properties">The properties.</param>
 protected static void setApi(ApiAreaSection apiAreaSection, string name, PlaneProperties properties)
 {
     apiAreaSection.SetPlane(
         name,
         properties.PlaneType,
         properties.MaterialName,
         properties.MaterialAngle,
         properties.Thickness,
         properties.IncompatibleModes,
         properties.GeneralData.Color,
         properties.GeneralData.Notes,
         properties.GeneralData.GUID);
 }
コード例 #5
0
 /// <summary>
 /// Sets the API.
 /// </summary>
 /// <param name="apiAreaSection">The API area section.</param>
 /// <param name="name">The name.</param>
 /// <param name="properties">The properties.</param>
 protected static void setApi(ApiAreaSection apiAreaSection, string name, ASolidProperties properties)
 {
     apiAreaSection.SetASolid(
         name,
         properties.MaterialName,
         properties.MaterialAngle,
         properties.ArcAngle,
         properties.IncompatibleBendingModes,
         properties.CoordinateSystem,
         properties.GeneralData.Color,
         properties.GeneralData.Notes,
         properties.GeneralData.GUID);
 }