Aligning Views based on a template sheet

Hello all,

I’ve been searching on this forum for a couple of days since there are a number of other topics regarding a similar question. Yet i can’t find the answer in the other posts. My question is this:
I want to automate the sheet generation for all assemblies in a project. Right now i can automate generating vies, schedules and placing both on a sheet. The problem occurs when i want to align the views based on a template sheet. I use the node Tool.AlignSheet.ViewsFroTemplateSheet but the order of the views is different for views in the template, this results in views being switched out of place. I tried adjusting the custom node with a reverse list node but this made the result even worse.

I could use some help, so thanks in advance!


This is the sheet that needs adjustment
Apparently I can only post one image so i’ll put the other images in the comment section.


This is the desired outcome


And this is the script

Why not change the order of the views to match the template or change the template to match the order of the views? Does the node place views based on coordinates (eg. left to right, top to bottom) or based on placement order?

1 Like

I’ve automated the generation of the views with the node Tool.AssemblyViews this doesn’t give me the opertunity to rearange the views or place them in a different order. The template can be placed differently however I don’t feel like that would give me the best outcome since the “new” sheets should be adjusted to the template and not the other way around.
The second question is one I can’t answer since i’m not able to find that out myself

You have views on your assembly sheets in one order and views on the template sheet in another order. If you want to align the assembly views to the template views then the respective views on each sheet need to be in the same “order” - ie. they need to be mapped appropriately. That means you must either change the assembly views to match the order of the template or change the template views to match the order of the assemblies.

It sounds like it would be easier to modify the template so that the order of views is correct but the placement is still templatized for the assembly sheets. In order to do that, you need to determine the current order that your assembly views are being mapped to the template and then rearrange or re-place the template views to be correctly mapped.

1 Like

How can i change the view order on the sheet? I have it sorted in the correct way with the List.SortNatural node but how do i override this order to the template sheet?

I fixed the problem. the align tool worked greate i only needed to add some passthrough nodes to ensure the views where placed before aligning them. And for the misplaced views i’ve added the node to reverse the vies on the template sheet. the fix right now is not perfect but for now does the job. In the future i might need to add a sort by list node to ensure the listst of views within the Tool.AlignSheetViewsFromTemplateSheet node are in the same order.
Thanks for the help Nick!
If someone has a similar problem here is how i fixed it:

  1. I added the reverse node in the custom node
  1. I added two passthrough nodes to ensure the views where placed before aligning them.
1 Like
  1. The result!!
1 Like