Ejemplo n.º 1
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(GlobalId != null ? GlobalId.ToStepValue() : "$");
            parameters.Add(OwnerHistory != null ? OwnerHistory.ToStepValue() : "$");
            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(ObjectType != null ? ObjectType.ToStepValue() : "$");
            parameters.Add(PredefinedType.ToStepValue());
            parameters.Add(OrientationOf2DPlane != null ? OrientationOf2DPlane.ToStepValue() : "$");
            parameters.Add(LoadedBy != null ? LoadedBy.ToStepValue() : "$");
            parameters.Add(HasResults != null ? HasResults.ToStepValue() : "$");
            parameters.Add(SharedPlacement != null ? SharedPlacement.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
Ejemplo n.º 2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (mPredefinedType != IfcAnalysisModelTypeEnum.NOTDEFINED)
     {
         obj["PredefinedType"] = mPredefinedType.ToString();
     }
     if (mOrientationOf2DPlane > 0)
     {
         obj["OrientationOf2DPlane"] = OrientationOf2DPlane.getJson(this, processed);
     }
     if (mLoadedBy.Count > 0)
     {
         obj["LoadedBy"] = new JArray(mLoadedBy.ConvertAll(x => mDatabase[x].getJson(this, processed)));
     }
     if (mHasResults.Count > 0)
     {
         obj["HasResults"] = new JArray(mHasResults.ConvertAll(x => mDatabase[x].getJson(this, processed)));
     }
     if (mSharedPlacement > 0)
     {
         obj["SharedPlacement"] = SharedPlacement.getJson(this, processed);
     }
 }