Message 1 of 7
Not applicable
02-22-2018
11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've written a tool that expands on the creation of AssemblyInstances. The problem that I'm encountering now is that I want users to be able to set the name during the process. The native Revit function does this:
I'm pretty much trying to replicate it without the combobox, as I already grab the naming category prior. I've already created the dialog, which take the user input for the string. It's stored statically, so if they've created AssemblyInstances with it before, we will have the naming convention. Questions are:
- If this is the first AssemblyInstance they're creating, is there a way to pull the native Revit naming convention based on the Category.Id ?
- I've tried setting the AssemblyInstance.Name, which has both a get and set, and I get the following error:
- "This element does not support assignment of a user-specified name."
- I've tried setting this both inside the initial Transaction when I'm creating the AssmeblyInstance, and in a following one where I'm setting other shared parameters - I get the same result.
What am I missing here? What do I need to do to accomplish this? Thanks!!!
Solved! Go to Solution.