Creating new material using "prohibited characteres" gives the attached error.
.
Strange thing is that when creating material names in Revit the software accepts the name. Is there a workaround this error??
Thank you all for the attention
Same answer as always:
Perform the task manually in the user interface.
You say that works fine.
Look at the result via the API access by using RevitLookup.
See how the result that worked is represented in the API.
Problem solved.
You could also use the debugger and numerous other tools to see what the manually generated result looks like from the API point of view.
Cheers,
Jeremy
Hi,
you could use NamingUtils.IsValidName(string name) to check the proposed name before trying to assign it.
Revitalizer