コード例 #1
0
 Stream(ArrayList data, RebarShapeConstraintProjectedSegmentLength constraint)
 {
     data.Add(new Snoop.Data.ClassSeparator(typeof(RebarShapeConstraintProjectedSegmentLength)));
     data.Add(new Snoop.Data.Uv("Direction", constraint.Direction));
     data.Add(new Snoop.Data.Int("TripleProductSign", constraint.TripleProductSign));
     data.Add(new Snoop.Data.String("SegmentEndReferenceType[0]", constraint.GetSegmentEndReferenceType(0).ToString()));
     data.Add(new Snoop.Data.String("SegmentEndReferenceType[1]", constraint.GetSegmentEndReferenceType(1).ToString()));
 }
コード例 #2
0
        Stream(ArrayList data, RebarShapeConstraint constraint)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(RebarShapeConstraint)));
            data.Add(new Snoop.Data.ElementId("Parameter ID ", constraint.GetParamId(), m_activeDoc));


            RebarShapeConstraintSegmentLength rsc00 = constraint as RebarShapeConstraintSegmentLength;

            if (rsc00 != null)
            {
                Stream(data, rsc00);
                return;
            }

            RebarShapeConstraintFixedSegmentDir rsc01 = constraint as RebarShapeConstraintFixedSegmentDir;

            if (rsc01 != null)
            {
                Stream(data, rsc01);
                return;
            }

            RebarShapeConstraintProjectedSegmentLength rsc02 = constraint as RebarShapeConstraintProjectedSegmentLength;

            if (rsc02 != null)
            {
                Stream(data, rsc02);
                return;
            }

            RebarShapeConstraintCircumference rsc03 = constraint as RebarShapeConstraintCircumference;

            if (rsc03 != null)
            {
                Stream(data, rsc03);
                return;
            }

            RebarShapeConstraintRadius rsc04 = constraint as RebarShapeConstraintRadius;

            if (rsc04 != null)
            {
                Stream(data, rsc04);
                return;
            }

            RebarShapeConstraintArcLength rsc05 = constraint as RebarShapeConstraintArcLength;

            if (rsc05 != null)
            {
                Stream(data, rsc05);
                return;
            }

            RebarShapeConstraint180DegreeBendRadius rsc06 = constraint as RebarShapeConstraint180DegreeBendRadius;

            if (rsc06 != null)
            {
                Stream(data, rsc06);
                return;
            }
        }
コード例 #3
0
 private void Stream(ArrayList data, RebarShapeConstraintProjectedSegmentLength constraint)
 {
     data.Add(new Snoop.Data.ClassSeparator(typeof(RebarShapeConstraintProjectedSegmentLength)));
      data.Add(new Snoop.Data.Uv("Direction", constraint.Direction));
      data.Add(new Snoop.Data.Int("TripleProductSign", constraint.TripleProductSign));
      data.Add(new Snoop.Data.String("SegmentEndReferenceType[0]", constraint.GetSegmentEndReferenceType(0).ToString()));
      data.Add(new Snoop.Data.String("SegmentEndReferenceType[1]", constraint.GetSegmentEndReferenceType(1).ToString()));
 }