Schedule Sorting/Grouping Add fields

Hi

How can I trigger “Then by” In sorting grouping tab???

I can get 1st field to work with Archi-lab package but cant add extra fields to it

Can any one point me in right direction Please

Regads

Hi!

Create list of filters. See the image below:

2 Likes

You can use a List.Map & connect the schedule view on the other end.

1 Like

How do you change the output to be a schedule view instead of a 0?

Good idea, Ryan. There is no use for the node to output 0 when the code actualy works.

You’ll have to edit the custom node on ArchiLab’s package.
Inside the custom node, there is a main python node that is written to output “0” if everything works fine.

Insert this line in line 32:

outputList = []

then change the whole definition def addSortingField(schedule, ssgf): for this:

def addSortingField(schedule, ssgf):
	message = None
	definition = schedule.Definition
	try:
		definition.AddSortGroupField(ssgf)
		outputList.append(schedule)
	except:
		message = "You can add Max of 4 sorting/grouping parameters."
		pass
	return message

(just adding the outputList.append(schedule) in the right result),
And at the end, change the if message == None:>> OUT = 0 for this:

if message == None:
	OUT = outputList

I tested here and it works fine.

1 Like