예제 #1
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     if (release < ReleaseVersion.IFC4 || mMaterialProfiles.Count == 0)
     {
         return("");
     }
     return(base.BuildStringSTEP(release) + (mName == "$" ? ",$," : ",'" + mName + "',") + (mDescription == "$" ? "$,(#" : "'" + mDescription + "',(#") + string.Join(",#", mMaterialProfiles.ConvertAll(x => x.mIndex)) + ")," + ParserSTEP.ObjToLinkString(mCompositeProfile));
 }
예제 #2
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.ObjToLinkString(mBuildingAddress));
 }
예제 #3
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(release < ReleaseVersion.IFC4 ? "" : base.BuildStringSTEP(release) + (mName == "$" ? ",$," : ",'" + mName + "',") + (mDescription == "$" ? "$," : "'" + mDescription + "',") + ParserSTEP.ObjToLinkString(mMaterial) + "," + ParserSTEP.ObjToLinkString(mProfile) + (mPriority >= 0 && mPriority <= 100 ? "," + mPriority + "," : ",$,") + (mCategory == "$" ? "$" : "'" + mCategory + "'"));
 }
예제 #4
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.ObjToLinkString(mAxis) + "," + ParserSTEP.ObjToLinkString(mRefDirection));
 }
예제 #5
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + (release < ReleaseVersion.IFC4 ? "'" + mIdentification + "'," + ParserSTEP.ObjToLinkString(mSSCreationDate) : IfcDateTime.STEPAttribute(mCreationDate)) +
            (mCreators.Count > 0 ? ",(" + string.Join(",", Creators.ConvertAll(x => "#" + x.StepId)) + ")," : ",$,") +
            (release < ReleaseVersion.IFC4 ? (mPurpose == "$" ? "$," : "'" + mPurpose + "',") + ParserSTEP.DoubleOptionalToString(mSSDuration) + "," + ParserSTEP.DoubleOptionalToString(mSSTotalFloat) + "," +
             ParserSTEP.ObjToLinkString(mSSStartTime) + "," + ParserSTEP.ObjToLinkString(mSSFinishTime) + ",." + mWorkControlType.ToString() + (mUserDefinedControlType == "$" ? ".,$" : ".,'" + mUserDefinedControlType + "'") :
             (mPurpose == "$" ? "$," : "'" + mPurpose + "',") + mDuration + "," + mTotalFloat + "," + IfcDateTime.STEPAttribute(mStartTime) + "," + IfcDateTime.STEPAttribute(mFinishTime)));
 }
예제 #6
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.ObjToLinkString(mHorizontal) + "," + ParserSTEP.ObjToLinkString(mVertical) + "," + (mTag == "$" ? "$" : "'" + mTag + "'"));
 }
예제 #7
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + ",#" + mItem + "," + ParserSTEP.ObjToLinkString(mTextureCoordinates));
 }
예제 #8
0
        protected override string BuildStringSTEP(ReleaseVersion release)
        {
            if (this as IfcGeometricRepresentationSubContext != null)
            {
                return(base.BuildStringSTEP(release) + ",*,*,*,*");
            }

            return(base.BuildStringSTEP(release) + "," + (mCoordinateSpaceDimension == 0 ? "*" : mCoordinateSpaceDimension.ToString()) + "," + (mPrecision == 0 ? "*" : ParserSTEP.DoubleOptionalToString(mPrecision)) + ",#" + mWorldCoordinateSystem.Index + "," + ParserSTEP.ObjToLinkString(mTrueNorth));
        }
예제 #9
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(mPlacesObject.Count == 0 ? "" : base.BuildStringSTEP(release) + ",#" + mPlacementLocation.StepId + "," + ParserSTEP.ObjToLinkString(mPlacementRefDirection));
 }
예제 #10
0
 protected override string BuildStringSTEP(ReleaseVersion version)
 {
     if (version > ReleaseVersion.IFC4X3_RC1)
     {
         return(base.BuildStringSTEP(version) + ",#" + mRelativePlacement.StepId + (mCartesianPosition == null ? ",$" : ",#" + mCartesianPosition.StepId));
     }
     return(base.BuildStringSTEP(version) + "," + ParserSTEP.ObjToLinkString(mPlacementMeasuredAlong) + "," + ParserSTEP.ObjToLinkString(mDistance) +
            (mOrientation == null ? ",$" : ",#" + mOrientation.StepId) + (mCartesianPosition == null ? ",$" : ",#" + mCartesianPosition.StepId));
 }
예제 #11
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) + "," + ParserSTEP.DoubleOptionalToString(mElevationOfRefHeight) + "," +
            ParserSTEP.DoubleOptionalToString(mElevationOfTerrain) + "," + ParserSTEP.ObjToLinkString(mBuildingAddress));
 }
예제 #12
0
        protected override string BuildStringSTEP(ReleaseVersion release)
        {
            string result = base.BuildStringSTEP(release);

            if (release < ReleaseVersion.IFC4)
            {
                return(result);
            }
            return(result + (string.IsNullOrEmpty(mDescription) ? ",$," : ",'" + ParserIfc.Encode(mDescription) + "',") +
                   (string.IsNullOrEmpty(mLanguage) ? "$," : "'" + ParserIfc.Encode(mLanguage) + "',") + ParserSTEP.ObjToLinkString(mReferencedLibrary));
        }
예제 #13
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     if (release < ReleaseVersion.IFC4 || mMaterialProfiles.Count == 0)
     {
         return("");
     }
     return((string.IsNullOrEmpty(mName) ? "$," : "'" + ParserIfc.Encode(mName) + "',") + (string.IsNullOrEmpty(mDescription) ? "$,(#" : "'" + ParserIfc.Encode(mDescription) + "',(") + string.Join(",", mMaterialProfiles.Select(x => "#" + x.StepId)) + ")," + ParserSTEP.ObjToLinkString(mCompositeProfile));
 }
예제 #14
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(release < ReleaseVersion.IFC4 ? "" : (string.IsNullOrEmpty(mName) ? "$," : "'" + ParserIfc.Encode(mName) + "',") +
            (string.IsNullOrEmpty(mDescription) ? "$," : "'" + ParserIfc.Encode(mDescription) + "',") + ParserSTEP.ObjToLinkString(mMaterial) + "," +
            ParserSTEP.ObjToLinkString(mProfile) + (mPriority >= 0 && mPriority <= 100 ? "," + mPriority + "," : ",$,") + (string.IsNullOrEmpty(mCategory) ? "$" : "'" + ParserIfc.Encode(mCategory) + "'"));
 }
예제 #15
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     if (mPlacesObject.Count == 0 && mReferencedByPlacements.Count == 0)
     {
         return("");
     }
     return(base.BuildStringSTEP(release) + (release < ReleaseVersion.IFC4X2 ? "" : "," + ParserSTEP.ObjToLinkString(mPlacementRelTo)));
 }
예제 #16
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     if (mPlacesObject.Count == 0)
     {
         return("");
     }
     return(release > ReleaseVersion.IFC4X1 ? base.BuildStringSTEP(release) + ",#" : "#)" + mPlacementLocation.StepId + "," + ParserSTEP.ObjToLinkString(mPlacementRefDirection));
 }