Ejemplo n.º 1
0
        public GsaGridPlaneSurface Duplicate()
        {
            if (this == null)
            {
                return(null);
            }
            GsaGridPlaneSurface dup = new GsaGridPlaneSurface
            {
                Plane     = m_gridplane == null ? Plane.Unset : m_plane.Clone(),
                GridPlane = m_gridplane == null ? null : new GridPlane
                {
                    AxisProperty   = m_gridplane.AxisProperty,
                    Elevation      = m_gridplane.Elevation,
                    IsStoreyType   = m_gridplane.IsStoreyType,
                    Name           = m_gridplane.Name.ToString(),
                    ToleranceAbove = m_gridplane.ToleranceAbove,
                    ToleranceBelow = m_gridplane.ToleranceBelow
                },
                GridSurface = new GridSurface
                {
                    Direction     = m_gridsrf.Direction,
                    Elements      = m_gridsrf.Elements.ToString(),
                    ElementType   = m_gridsrf.ElementType,
                    ExpansionType = m_gridsrf.ExpansionType,
                    GridPlane     = m_gridsrf.GridPlane,
                    Name          = m_gridsrf.Name.ToString(),
                    SpanType      = m_gridsrf.SpanType,
                    Tolerance     = m_gridsrf.Tolerance
                },
                Axis = m_gridplane == null ? null : new Axis
                {
                    Name   = m_axis.Name.ToString(),
                    Origin = new Vector3 {
                        X = m_axis.Origin.X, Y = m_axis.Origin.Y, Z = m_axis.Origin.Z
                    },
                    Type    = m_axis.Type,
                    XVector = new Vector3 {
                        X = m_axis.XVector.X, Y = m_axis.XVector.Y, Z = m_axis.XVector.Z
                    },
                    XYPlane = new Vector3 {
                        X = m_axis.XYPlane.X, Y = m_axis.XYPlane.Y, Z = m_axis.XYPlane.Z
                    }
                },
                GridPlaneID   = m_gridplnID,
                GridSurfaceID = m_gridsrfID
            };

            dup.m_gs_guid = new Guid(m_gs_guid.ToString());
            dup.m_gp_guid = new Guid(m_gp_guid.ToString());
            return(dup);
        }
Ejemplo n.º 2
0
 public GsaGridAreaLoad()
 {
     m_gridareaload      = new GridAreaLoad();
     m_gridareaload.Type = GsaAPI.GridAreaPolyLineType.PLANE;
     m_gridplanesrf      = new GsaGridPlaneSurface();
 }
Ejemplo n.º 3
0
 public GsaGridLineLoad()
 {
     m_gridlineload = new GridLineLoad();
     m_gridlineload.PolyLineReference = 0; // explicit type = 0
     m_gridplanesrf = new GsaGridPlaneSurface();
 }
Ejemplo n.º 4
0
 public GsaGridPointLoad()
 {
     m_gridpointload = new GridPointLoad();
     m_gridplanesrf  = new GsaGridPlaneSurface();
 }