Пример #1
0
        protected override string BuildStringSTEP(ReleaseVersion release)
        {
            string s = (release < ReleaseVersion.IFC4 ? "" : (string.IsNullOrEmpty(mName) ? ",$," : ",'" + ParserIfc.Encode(mName) + "',") +
                        (string.IsNullOrEmpty(mDescription) ? "$," : "'" + ParserIfc.Encode(mDescription) + "',") + (string.IsNullOrEmpty(mCategory) ? "$," : "'" + ParserIfc.Encode(mCategory) + "',") + ParserSTEP.DoubleOptionalToString(mPriority));

            return("#" + mMaterial.StepId + "," + ParserSTEP.DoubleToString(mLayerThickness) + "," + ParserIfc.LogicalToString(mIsVentilated) + s);
        }
Пример #2
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.DoubleToString(mEastings) + "," + ParserSTEP.DoubleToString(mNorthings) + "," +
            ParserSTEP.DoubleToString(mOrthogonalHeight) + "," + ParserSTEP.DoubleOptionalToString(mXAxisAbscissa) + "," +
            ParserSTEP.DoubleOptionalToString(mXAxisOrdinate) + "," + ParserSTEP.DoubleOptionalToString(mScale) +
            (release < ReleaseVersion.IFC4X3_RC3 ? "" : "," + ParserSTEP.DoubleOptionalToString(mScaleY) + "," + ParserSTEP.DoubleOptionalToString(mScaleZ)));
 }
Пример #3
0
        protected override string BuildStringSTEP(ReleaseVersion release)
        {
            string str = base.BuildStringSTEP(release) + ",(" + ParserSTEP.IntToString(mUMultiplicities[0]);

            for (int jcounter = 1; jcounter < mUMultiplicities.Count; jcounter++)
            {
                str += "," + ParserSTEP.IntToString(mUMultiplicities[jcounter]);
            }
            str += "),(" + ParserSTEP.IntToString(mVMultiplicities[0]);
            for (int jcounter = 1; jcounter < mVMultiplicities.Count; jcounter++)
            {
                str += "," + ParserSTEP.IntToString(mVMultiplicities[jcounter]);
            }
            str += "),(" + ParserSTEP.DoubleToString(mUKnots[0]);
            for (int jcounter = 1; jcounter < mUKnots.Count; jcounter++)
            {
                str += "," + ParserSTEP.DoubleToString(mUKnots[jcounter]);
            }
            str += "),(" + ParserSTEP.DoubleToString(mVKnots[0]);
            for (int jcounter = 1; jcounter < mVKnots.Count; jcounter++)
            {
                str += "," + ParserSTEP.DoubleToString(mVKnots[jcounter]);
            }
            return(str + "),." + mKnotSpec.ToString() + ".");
        }
Пример #4
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + (mHorizontalWidths ? ".T." : ".F") +
            ",(" + string.Join(",", mWidths.ConvertAll(x => ParserSTEP.DoubleToString(x))) + ")" +
            ",(" + string.Join(",", mSlopes.ConvertAll(x => ParserSTEP.DoubleToString(x))) + ")" +
            (mTags.Count == 0 ? ",$" : ",(" + string.Join(",", mTags.ConvertAll(x => "'" + ParserIfc.Encode(x) + "'")) + ")") + ",#" + mOffsetPoint.StepId);
 }
Пример #5
0
        internal string formatLength(double length)
        {
            if (double.IsNaN(length))
            {
                return("$");
            }
            double tol    = (mDatabase == null ? 1e-6 : mDatabase.Tolerance / 100);
            int    digits = (mDatabase == null ? 5 : mDatabase.mLengthDigits);
            double result = Math.Round(length, digits);

            return(ParserSTEP.DoubleToString(Math.Abs(result) < tol ? 0 : result));
        }
Пример #6
0
        protected override string BuildStringSTEP()
        {
            string str = base.BuildStringSTEP() + ",(#" + mIntersectingAxes.Item1 + ",#" + mIntersectingAxes.Item2 + "),(";

            str += ParserSTEP.DoubleToString(mOffsetDistances.Item1) + "," + ParserSTEP.DoubleToString(mOffsetDistances.Item2);
            if (!double.IsNaN(mOffsetDistances.Item3))
            {
                str += "," + ParserSTEP.DoubleToString(mOffsetDistances.Item3);
            }
            str += ")";
            return(str);
        }
Пример #7
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     if (mDatabase.Release < ReleaseVersion.IFC4)
     {
         return(base.BuildStringSTEP(release) + "," + ParserSTEP.DoubleToString(mBottomFlangeWidth) + "," + ParserSTEP.DoubleToString(mOverallDepth) + "," +
                ParserSTEP.DoubleToString(mWebThickness) + "," + ParserSTEP.DoubleToString(mBottomFlangeThickness) + "," + ParserSTEP.DoubleOptionalToString(mBottomFlangeFilletRadius) + "," +
                ParserSTEP.DoubleToString(mTopFlangeWidth) + "," + ParserSTEP.DoubleOptionalToString(mTopFlangeThickness) + "," +
                ParserSTEP.DoubleOptionalToString(mTopFlangeFilletRadius) + "," + ParserSTEP.DoubleOptionalToString(mCentreOfGravityInY));
     }
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.DoubleToString(mBottomFlangeWidth) + "," + ParserSTEP.DoubleToString(mOverallDepth) + "," +
            ParserSTEP.DoubleToString(mWebThickness) + "," + ParserSTEP.DoubleToString(mBottomFlangeThickness) + "," + ParserSTEP.DoubleOptionalToString(mBottomFlangeFilletRadius) + "," +
            ParserSTEP.DoubleToString(mTopFlangeWidth) + "," + ParserSTEP.DoubleOptionalToString(mTopFlangeThickness) + "," +
            ParserSTEP.DoubleOptionalToString(mTopFlangeFilletRadius) + "," + ParserSTEP.DoubleOptionalToString(mBottomFlangeEdgeRadius) + "," +
            ParserSTEP.DoubleOptionalToString(mBottomFlangeSlope) + "," + ParserSTEP.DoubleOptionalToString(mTopFlangeEdgeRadius) + "," +
            ParserSTEP.DoubleOptionalToString(mTopFlangeSlope));
 }
Пример #8
0
        protected override string BuildStringSTEP(ReleaseVersion release)
        {
            string parameters = "$,$";

            if (release < ReleaseVersion.IFC4X3_RC2)
            {
                IfcParameterValue startParameter = mStartParam as IfcParameterValue, endParameter = mEndParam as IfcParameterValue;
                parameters = (startParameter == null ? "$," : ParserSTEP.DoubleToString(startParameter.Measure) + ",") +
                             (endParameter == null ? "$" : ParserSTEP.DoubleToString(endParameter.Measure));
            }
            else
            {
                parameters = (mStartParam == null ? "$," : mStartParam.ToString() + ",") + (mEndParam == null ? "$" : mEndParam.ToString());
            }

            return(base.BuildStringSTEP(release) + ",#" + mDirectrix.StepId + "," + parameters);
        }
Пример #9
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     if (release < ReleaseVersion.IFC4)
     {
         return(base.BuildStringSTEP(release) + "," + (mTranslationalStiffnessX == null ? "$" : ParserSTEP.DoubleToString(mTranslationalStiffnessX.mStiffness.mValue)) + "," +
                (mTranslationalStiffnessY == null ? "$" : ParserSTEP.DoubleToString(mTranslationalStiffnessY.mStiffness.mValue)) + "," +
                (mTranslationalStiffnessZ == null ? "$" : ParserSTEP.DoubleToString(mTranslationalStiffnessZ.mStiffness.mValue)) + "," +
                (mRotationalStiffnessX == null ? "$" : ParserSTEP.DoubleToString(mRotationalStiffnessX.mStiffness.mValue)) + "," +
                (mRotationalStiffnessY == null ? "$" : ParserSTEP.DoubleToString(mRotationalStiffnessY.mStiffness.mValue)) + "," +
                (mRotationalStiffnessZ == null ? "$" : ParserSTEP.DoubleToString(mRotationalStiffnessZ.mStiffness.mValue)));
     }
     return(base.BuildStringSTEP(release) + "," + (mTranslationalStiffnessX == null ? "$" : mTranslationalStiffnessX.ToString()) + "," +
            (mTranslationalStiffnessY == null ? "$" : mTranslationalStiffnessY.ToString()) + "," +
            (mTranslationalStiffnessZ == null ? "$" : mTranslationalStiffnessZ.ToString()) + "," +
            (mRotationalStiffnessX == null ? "$" : mRotationalStiffnessX.ToString()) + "," +
            (mRotationalStiffnessY == null ? "$" : mRotationalStiffnessY.ToString()) + "," +
            (mRotationalStiffnessZ == null ? "$" : mRotationalStiffnessZ.ToString()));
 }
Пример #10
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.DoubleToString(mOverallWidth) + "," + ParserSTEP.DoubleToString(mOverallDepth) + "," + ParserSTEP.DoubleToString(mWebThickness) + "," + ParserSTEP.DoubleToString(mFlangeThickness) + "," + ParserSTEP.DoubleOptionalToString(mFilletRadius)
            + (release <= ReleaseVersion.IFC2x3 ? "" : "," + ParserSTEP.DoubleOptionalToString(mFlangeEdgeRadius) + "," + ParserSTEP.DoubleOptionalToString(mFlangeSlope)));
 }
Пример #11
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.DoubleToString(Math.Max(0, mLengthValue)) +
            (release < ReleaseVersion.IFC4 ? "" : (string.IsNullOrEmpty(mFormula) ? ",$" : ",'" + ParserIfc.Encode(mFormula) + "'")));
 }
Пример #12
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.DoubleToString(mDepth) + "," + ParserSTEP.DoubleToString(mFlangeWidth) + "," + ParserSTEP.DoubleToString(mWebThickness) + "," + ParserSTEP.DoubleToString(mFlangeThickness) + "," + ParserSTEP.DoubleOptionalToString(mFilletRadius) + "," + ParserSTEP.DoubleOptionalToString(mEdgeRadius) + "," + ParserSTEP.DoubleOptionalToString(mFlangeSlope) + (mDatabase.mRelease == ReleaseVersion.IFC2x3 ? "," + ParserSTEP.DoubleOptionalToString(mCentreOfGravityInX) : ""));
 }
Пример #13
0
 public override string ToString()
 {
     return("IFCWARPINGCONSTANTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #14
0
 public override string ToString()
 {
     return("IFCTHERMALTRANSMITTANCEMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #15
0
 public override string ToString()
 {
     return("IFCELECTRICVOLTAGEMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #16
0
 public override string ToString()
 {
     return("IFCSECTIONMODULUSMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #17
0
 public override string ToString()
 {
     return("IFCTHERMALEXPANSIONCOEFFICIENTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #18
0
 public override string ToString()
 {
     return("IFCLINEARVELOCITYMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #19
0
 public override string ToString()
 {
     return("IFCVOLUMETRICFLOWRATEMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #20
0
 public override string ToString()
 {
     return("IFCMASSPERLENGTHMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #21
0
 public override string ToString()
 {
     return("IFCCOUNTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #22
0
 public override string ToString()
 {
     return("IFCMODULUSOFELASTICITYMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #23
0
 public override string ToString()
 {
     return(mFixed ? ParserSTEP.BoolToString(mFixed) : ParserSTEP.DoubleToString(mStiffness));
 }
Пример #24
0
 public override string ToString()
 {
     return("IFCMOLECULARWEIGHTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #25
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.DoubleToString(mAreaValue) + (mDatabase.mRelease == ReleaseVersion.IFC2x3 ? "" : (mFormula == "$" ? ",$" : ",'" + mFormula + "'")));
 }
Пример #26
0
 public override string ToString()
 {
     return("IFCMOMENTOFINERTIAMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #27
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," +
            (release < ReleaseVersion.IFC4X3 ? ParserSTEP.DoubleToString(CountValueDouble) : CountValue.ToString()) +
            (release < ReleaseVersion.IFC4 ? "" : (string.IsNullOrEmpty(mFormula) ? ",$" : ",'" + ParserIfc.Encode(mFormula) + "'")));
 }
Пример #28
0
 public override string ToString()
 {
     return("IFCROTATIONALFREQUENCYMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Пример #29
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.LinkToString(mHatchLineAppearance) + "," + mStartOfNextHatchLine + "," + ParserSTEP.LinkToString(mPointOfReferenceHatchLine) + "," + ParserSTEP.LinkToString(mPatternStart) + "," + ParserSTEP.DoubleToString(mHatchLineAngle));
 }
Пример #30
0
 public override string ToString()
 {
     return("IFCROTATIONALSTIFFNESSMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }