Read/write location of schedule on sheet?


#1

Hi,

I’m trying to read location of one schedule on sheet and set it for another schedule on another sheet. I’ve seen one thread here from May but honestly I don’t know how to apply it (it relies on input from files?). Anyone knows if there is some simple way to do this?


#2

Hey there,

Have a look at this topic.


#3

Hi @Jacek.Brzezowski, if the sheets are exactly the same, you can use the Tool.AlignFromTemplateSheet Node from SteamNodes.
It takes a sheet as template and then align the views on the other sheets and set them as the template’s.


#4

I tried this node but with no luck in part “get schedule on sheet” it goes :

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 15, in
AttributeError: ‘str’ object has no attribute ‘Id’

No effect in general and node output is null. It feels like it’s a bit beyond me at this point.


#5

Can you show the graph where you execute it with that node? :slight_smile:


#6

This is how it looks before going into the node (which contents I copied to pinpoint where it fails):


#7

Please share it.


#8

As I wrote - next came the node you referenced to.

schedule location.dyn (6.2 KB)


#9

It is because you’re passing a string to the node where it requires a sheet :-).


#10

Can you show the drop down from the “All Elements of Category” node?


#11

But, of course this graph has no sorting. I’m just assuming that the no.1 on the list is the templatesheet and the no.2 needs to be aligned as no.1. You’ll need some sort of filtering, maybe by SheetNumber or SheetName :slight_smile: