Listing the names of all Detail Items next to them as text on a draft view

Hello everyone, I’m having a problem in placing the name of a family and type (ideally) right next to every detail item I have in a python script. I keep getting the error: TypeError: expected ElementId, got ViewDrafting on line 33.

I want to eventually make it a function and feed it the draft view name and the list of families I already have selected.

I understand the error, but I’m not sure how to fix it, below is the snippet of the code:

The override you are using expects an element ID. You are providing it the element itself. Try pulling the ID from the view before you pass it into the override.

1 Like

Maybe worth looking into a multicategory tag? They can list name of family and type.

@joe.said To fix this particular snippet in line 33 the error u getting is coz the it needs the view id and the view(Element) is being given to it.
image

The Fix :- At the place of draftV just add .Id after it or copy this draftV.Id This will solve your issue

2 Likes