I’m getting this error in the python code when I run this script. The input to it is "Family type (which is a titleblock family) - ElementID - IN(0)
I’m just not sure what the error messages means, as in what I need to do or input into it. Any guidance would be appreciated. If a copy of the script is also helpful happy to provide. This is the only error I’m getting.
I put it in a python script just what you wrote between Familytypes and ElementID ran it had an error in python at the end still. Then got rid of that and just tried inserting that into that big python code at the end and I’m I’ve gotten this error on both occasions.
Crazy question here: why are you reinventing the wheel using python?
Creating sheets with a title block has been discussed many times now, and using one of those methods will likely save a lot of headaches. You can then use a variety of element.setparametermethods, including OOTB nodes.
I found this old script that was created in 2015 in one of our archives and it is set up to use the exact type of excel sheet I want to use, with all the right parameter information and how we use titles on our title block so that it pre-fills all of the that upon insert - along with all the other blank sections. It has all the right input values and the script reflects that too. So instead of re-tailoring one to our standards from scratch again I just wanted to fix this one because then that would save me heaps of time is all. Seeing only one error came up and it was line 81 I thought perhaps fixing that would be simpler?
I’ve already got a script that creates sheets but doesn’t auto-fil all the parameters like this one is meant to.
I’m a bit too inexperienced to be able to sort it out completely on my own so I thought I’d get some advice off the forum. If it’s going to be a bit of a nightmare and I am better off re-creating this and just inserting parameters in again and connecting the dots between the excel and the script again I’m willing to take the punch, Just let me know what your advice would be on it. Both responses show your knowledge and experience outweighs mine on this 100%!
Reuse is a good reason, do you know who wrote the last one? If so they would be the ideal person to fix this.
I’m traveling back home from vacation today so I don’t have the capability to troubleshoot either very well.
By the looks of it, and as you sound like you’re more on the novice end of the user spectrum, utilizing the sheet creation nodes and then setting the parameter types might be easier to troubleshoot, as you’ll be able to test small groups and resolve individual issues at each node.
Yeah I can’t find the person who created it I think they’re gone.
I really think being able to fix that python line would be ideal. I’m in no rush to solve this and happy to wait if that means you’d be able to help further?
I’ll try and find the time between my work responsibilities (as with any other issue posted here), but I’m pretty booked up (going on vacation means more work at your return). I know most of the python super users tend to relax some on the weekends - one of them may pop by Monday.
What industry are you in? If I can fold this into work for a presentation I’m giving in a few weeks I may be able to expedite this.
Engineering so getting this to run properly would be amazing. Generating hundreds of sheets all filled out for all MEP for example in one project would save heaps of time.
I’m just tweaking another script now that creates the views and applies a view template to them at the same time. Once I have that I can bring it into the script above I’m trying to get to work then it’ll generate views with correct VTs + Sheets w/ correct view assigned + entire title block filled out! Only leaving the modelling to be done. So much time saved.@jacob.small
@Marcel_Rijsmus no I don’t know how to fix it without fixing this python line. Like I said it’s an old script, quite large I don’t know if it would take longer to deconstruct it then rejoin it to a node that = the same as the python script or whether just to fix the line. If you have any information that would make this task easier I am all ears!