Example #1
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("NormalCount", normalExceptionGuid.Count);
            for (int i = 0; i < normalExceptionGuid.Count; i++)
            {
                writer.SetGuid("Normal" + i.ToString(), normalExceptionGuid[i]);
            }

            writer.SetInt32("PluginCount", pluginExceptionGuid.Count);
            for (int j = 0; j < pluginExceptionGuid.Count; j++)
            {
                writer.SetGuid("Plugin" + j.ToString(), pluginExceptionGuid[j]);
            }

            return(base.Write(writer));
        }
Example #2
0
        public bool Write(GH_IWriter writer)
        {
            foreach (CsxParameter p in m_params)
            {
                writer.SetGuid(p.Field.Info.Name, p.InstanceGuid);
            }

            return(true);
        }
        /*******************************************/

        public override bool Write(GH_IWriter writer)
        {
            bool rc = base.Write(writer);

            if (SelectedHint != null)
            {
                writer.SetGuid("TypeHintID", SelectedHint.HintID);
            }
            writer.SetInt32("ScriptParamAccess", (int)Access);
            return(rc);
        }
        protected override bool Write(GH_IWriter writer)
        {
            if (DocumentGUID != Guid.Empty)
            {
                writer.SetGuid("DocumentGUID", DocumentGUID);
            }

            if (!string.IsNullOrEmpty(UniqueID))
            {
                writer.SetString("UniqueID", UniqueID);
            }

            return(true);
        }
Example #5
0
        public override sealed bool Write(GH_IWriter writer)
        {
            if (!base.Write(writer))
            {
                return(false);
            }

            if (!string.IsNullOrEmpty(ParameterName))
            {
                writer.SetString("ParameterName", ParameterName);
            }

            if (ParameterGroup != DB.BuiltInParameterGroup.INVALID)
            {
                writer.SetInt32("ParameterGroup", (int)ParameterGroup);
            }

            if (ParameterType != DB.ParameterType.Invalid)
            {
                writer.SetInt32("ParameterType", (int)ParameterType);
            }

            if (ParameterBinding != DBX.ParameterBinding.Unknown)
            {
                writer.SetInt32("ParameterBinding", (int)ParameterBinding);
            }

            if (ParameterBuiltInId != DB.BuiltInParameter.INVALID)
            {
                writer.SetInt32("ParameterBuiltInId", (int)ParameterBuiltInId);
            }

            if (ParameterSharedGUID.HasValue)
            {
                writer.SetGuid("ParameterSharedGUID", ParameterSharedGUID.Value);
            }

            if (ParameterClass != DBX.ParameterClass.Any)
            {
                writer.SetInt32("ParameterClass", (int)ParameterClass);
            }

            return(true);
        }
Example #6
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetGuid("ValueListGuid", LastValueList);
     return(base.Write(writer));
 }
Example #7
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetGuid("targetPanelComponentGuid", targetPanelComponentGuid);

            return(base.Write(writer));
        }
Example #8
0
 public static void WriteGuid(GH_IWriter writer, string itemName, int itemIndex, Guid data)
 {
     writer.SetGuid(itemName, itemIndex, data);
 }