Script to over write crop view region line thicknesses

Hi all, attempting to write a script that would change the crop region line weights of elevation views to a new thickness.

What I have here gives no errors, but doesnt work and the last node has a null result. Can anyone help?

Thanks

As a bit of an update I changed the thickness to something stupid and suddenly the nulls are gone

Here is the error

Hi @lr-PAYNE dont think we have lineweight 122…and thats what the warning try to tell…does it work with genius loci…

1 Like

Hi @lr-PAYNE try also feeding your “List.GetItemAtIndex” node into the ViewSetElementOverides node.

Failing that use Rythm’s “View.SetElementProjectionLineweight” node.

Cheers KS

2 Likes

Thanks to you both @Kai @sovitek

@sovitek I understand that the max number for line thickness is alot less than what I had in that second post. I was just changing things around to see if I could get a different result which may or may not be relevant to the problem.

1 Like

OK…the issue here is as i assume the view set override is from genius loci in that case try this one here…here is the difference…

2 Likes

Thanks again to you both. I tried both and this has made it work

image

Could I enquire what packages were used for this?