Hi,
I’m trying to create a zero touch node that outputs multiple revision settings. However, I’m getting two separate nodes one with revision settings and other with all the properties
I’m not sure why they are separate?
Here’s my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.Revit.DB;
using Autodesk.Revit.ApplicationServices;
using Autodesk.DesignScript.Runtime;
using RevitServices.Persistence;
using RevitServices.Transactions;
using Revit.Elements;
namespace Revit
{
public class Revisions
{
public static Document doc = DocumentManager.Instance.CurrentDBDocument;
Double Spacing = RevisionSettings.GetRevisionSettings(doc).RevisionCloudSpacing * 304.8;
RevisionNumbering Numbering = RevisionSettings.GetRevisionSettings(doc).RevisionNumbering;
IList<string> revSequence = RevisionSettings.GetRevisionSettings(doc).GetAlphanumericRevisionSettings().GetSequence();
int revStartNo = RevisionSettings.GetRevisionSettings(doc).GetNumericRevisionSettings().StartNumber;
string revAlphaPrefix = RevisionSettings.GetRevisionSettings(doc).GetAlphanumericRevisionSettings().Prefix;
string revAlphaSuffix = RevisionSettings.GetRevisionSettings(doc).GetAlphanumericRevisionSettings().Suffix;
string revNumPrefix = RevisionSettings.GetRevisionSettings(doc).GetNumericRevisionSettings().Prefix;
string revNumSuffix = RevisionSettings.GetRevisionSettings(doc).GetNumericRevisionSettings().Suffix;
[MultiReturn(new[] { "Spacing", "Numbering", "revSequence", "revStartNo", "revAlphaPrefix", "revAlphaSuffix", "revNumPrefix", "revNumSuffix" })]
public Dictionary<string, object> DocumentRevisions() => new Dictionary<string, object>
{
{ "Spacing",Spacing },
{ "Numbering",Numbering},
{ "revSequence",revSequence},
{ "revStartNo",revStartNo},
{"revAlphaPrefix",revAlphaPrefix},
{"revAlphaSuffix",revAlphaSuffix},
{"revNumPrefix",revNumPrefix},
{"revNumSuffix",revNumSuffix}
};
}
}