Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Delete linetype using Dynamo (Python 3)

3 ANTWORTEN 3
Antworten
Nachricht 1 von 4
anthony_iskandar
298 Aufrufe, 3 Antworten

Delete linetype using Dynamo (Python 3)

It was working several months ago, I think it's because the Python 2 is changed to Python 3, and I don't know how to solve this.

anthony_iskandar_0-1664520779664.png

anthony_iskandar_1-1664520875378.png

Please help.

 

3 ANTWORTEN 3
Nachricht 2 von 4
vancikv
als Antwort auf: anthony_iskandar

The error message is pretty clear. Your input is a bunch of strings that naturally have no Ids in your Revit document. The script is not aware of the fact that they're actually names of line styles. You're saying "give me the Ids of these strings", but you actually need to say "give me the Ids of line styles that are named according to these strings". I don't see how this could have ever worked. Didn't you change the input from the last time?

Nachricht 3 von 4
vancikv
als Antwort auf: anthony_iskandar

To offer a solution: Try connecting the input of the "Element.Name" node directly in your script.
Nachricht 4 von 4

there is a node from modelical that does exactly this. 

stefangokstorp_0-1664528984214.png

if you are hellbent on having your own code check how its done in that package. 
but i would just use that one

 

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report