
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone, I am having some difficulty trying to retrieve the shared parameter value and use it in the renaming of the assembly instance. I have tried the method below however, it returns the name of the parameter instead of the value.
I am using c# code and the goal is to create views and and use the assembly name to rename a part of the views. I have the part that creates the views except for the renaming.
Any help is appreciated. Thanks in advance!
AssemblyInstance assemblyInstance = AssemblyInstance.Create(doc, uidoc.Selection.GetElementIds(), categoryId);
Guid sharedGuid = new Guid("7ca1c138-e50a-4608-a28d-cb149048819d");
SharedParameterElement sharedParameter = SharedParameterElement.Lookup(doc, sharedGuid);
assemblyInstance.AssemblyTypeName = sharedParameter.ToString();
Solved! Go to Solution.