i am currently trying to autofill my marks of my assemblies by using dynamo. i am quite new to this and i put this together. my goal is to copy my assembly name to the “Mark” parameter buy my problem is that the assembly name a “TypeName” parameter is and hence my error.
When making an Assembly revit asks to fill in a Type Name which is the name i want to copy to the Mark parameter. i suppose TypeName isnt the right code for this.
Get rid of the " and the new line in the string. You want to type just Mark in there… well unless you have a parameter names "Mark"\r" which you don’t as Revit won’t let you use new lines or quotes in parameter names.
No. Your code block is simply passing the input through to the output and giving it a name.
What is below is not code for assemblies (and may not work as assemblies are sort of strange from a Revit Object Model standpoint), but should give you the basic idea.
Use element.Parameters to get the list of all available parameters and to know the correct parameter name to get the value for from your assemblies.
Mark needs to be a string, so make sure what you are passing to the Value is a string.
It looks like you want to get the Type Name from the Assembly Instance. Right now you’re just stringifying the element which is returning “ElementType”. You need to get the actual property/parameter value. Look at the value that’s coming out of String from Object. I’m guessing it’s not what you’re looking for.
Again, expanding the preview in all the nodes when you post screenshots helps other people figure out what is going on.
Not a bad practice to work with them on in general, either- as you would be seeing the data you are getting out of each node- and will probably be able to figure some of this out yourself!