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); }
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))); }
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() + "."); }
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); }
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)); }
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); }
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)); }
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); }
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())); }
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))); }
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) + "'"))); }
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) : "")); }
public override string ToString() { return("IFCWARPINGCONSTANTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCTHERMALTRANSMITTANCEMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCELECTRICVOLTAGEMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCSECTIONMODULUSMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCTHERMALEXPANSIONCOEFFICIENTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCLINEARVELOCITYMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCVOLUMETRICFLOWRATEMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCMASSPERLENGTHMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCCOUNTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return("IFCMODULUSOFELASTICITYMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
public override string ToString() { return(mFixed ? ParserSTEP.BoolToString(mFixed) : ParserSTEP.DoubleToString(mStiffness)); }
public override string ToString() { return("IFCMOLECULARWEIGHTMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.DoubleToString(mAreaValue) + (mDatabase.mRelease == ReleaseVersion.IFC2x3 ? "" : (mFormula == "$" ? ",$" : ",'" + mFormula + "'"))); }
public override string ToString() { return("IFCMOMENTOFINERTIAMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
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) + "'"))); }
public override string ToString() { return("IFCROTATIONALFREQUENCYMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
protected override string BuildStringSTEP(ReleaseVersion release) { return(base.BuildStringSTEP(release) + "," + ParserSTEP.LinkToString(mHatchLineAppearance) + "," + mStartOfNextHatchLine + "," + ParserSTEP.LinkToString(mPointOfReferenceHatchLine) + "," + ParserSTEP.LinkToString(mPatternStart) + "," + ParserSTEP.DoubleToString(mHatchLineAngle)); }
public override string ToString() { return("IFCROTATIONALSTIFFNESSMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }