<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Force a shared parameter to a group not availiable in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6610600#M62713</link>
    <description>&lt;P&gt;Dear&amp;nbsp;Charles Berteaux Iv,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reporting this!&amp;nbsp;&lt;SPAN&gt;Please accept our sincerer apology for the delay! We had a backlog in the queue these days.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Per my verify, Revit API can create project shared parameter to "Display" group successfully, while UI side failed to do this; this should be an issue of Revit, I already created issue to engineering team: [REVIT-100547 Force a shared parameter to a group not available while API can do this]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following is my code example to create project parameter to "Display" group from shared parameter file, FYI:&lt;/P&gt;
&lt;PRE&gt;        /// &amp;lt;summary&amp;gt;
        /// Creates project parameters to wall category from shared parameters file.
        /// All project parameters will be placed to "Display" group by hardcode.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="revitDoc"&amp;gt;&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="paramFile"&amp;gt;&amp;lt;/param&amp;gt;
        /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
        static public bool CreateSharedParametersByFile(Document revitDoc, string paramFile)
        {
            if (!File.Exists(paramFile))
                throw new FileNotFoundException("The given shared parameter file doesn't exist! -&amp;gt;" + paramFile);

            try
            {
                // cache application handle
                Autodesk.Revit.ApplicationServices.Application revitApp = revitDoc.Application;
                CategorySet cateSet = revitApp.Create.NewCategorySet();
                Category paramCat = revitDoc.Settings.Categories.get_Item(BuiltInCategory.OST_Walls);
                if (null == paramCat || !paramCat.AllowsBoundParameters)
                    return false;
                cateSet.Insert(paramCat);
                //
                // prepare shared parameter file
                string oldSharedFile = revitApp.SharedParametersFilename;
                revitApp.SharedParametersFilename = paramFile;
                //
                // open shared parameter file
                DefinitionFile parafile = revitApp.OpenSharedParameterFile();
                //
                // create parameter definition and bindings
                using (Transaction tran = new Transaction(revitDoc, "Create Shared Params"))
                {&lt;BR /&gt;                    tran.Start();
                    foreach (DefinitionGroup defGrp in parafile.Groups)
                    {
                        foreach (Definition def in defGrp.Definitions)
                        {
                            InstanceBinding binding = revitApp.Create.NewInstanceBinding(cateSet);
                            revitDoc.ParameterBindings.Insert(def, binding, BuiltInParameterGroup.PG_DISPLAY);
                        }
                    }
                    //
                    // commit change
                    tran.Commit();
                }
                //
                // restore its shared parameter file to old one
                if (!string.IsNullOrEmpty(oldSharedFile))
                    revitApp.SharedParametersFilename = oldSharedFile;
                return true;
            }
            catch (Exception ex)
            {
                throw new Exception("Failed to create shared parameters due to exception: " + ex.ToString());
            }
        }&lt;/PRE&gt;</description>
    <pubDate>Sun, 09 Oct 2016 07:09:08 GMT</pubDate>
    <dc:creator>JimJia</dc:creator>
    <dc:date>2016-10-09T07:09:08Z</dc:date>
    <item>
      <title>Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6592846#M62705</link>
      <description>&lt;P&gt;A predecessor of mine built all of our Revit templates. In our models we have custom parameters that have been somehow forced under the “Display” grouping…My new parameter “G_View_Project” was built exactly like the others currently under the Display Grouping……anyone out there know how to do this??? I am using Revit 2017&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="D1D_SEED_Parameter.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/277470iEE8902604DFFBE0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="D1D_SEED_Parameter.png" alt="D1D_SEED_Parameter.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:44:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6592846#M62705</guid>
      <dc:creator>CharlesBerteaux</dc:creator>
      <dc:date>2016-09-29T18:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6592990#M62706</link>
      <description>&lt;P&gt;When were the templates originally created? &amp;nbsp;Perhaps that is a Group&amp;nbsp;that used to exist but got changed in later versions to something else? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked back as far as 2013 and I don't see that Group available.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:48:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6592990#M62706</guid>
      <dc:creator>Revit_Whisperer</dc:creator>
      <dc:date>2016-09-29T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6593002#M62707</link>
      <description>&lt;P&gt;these were created in R2013, and I also checked this with all versions back to this one......&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:53:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6593002#M62707</guid>
      <dc:creator>CharlesBerteaux</dc:creator>
      <dc:date>2016-09-29T19:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6593009#M62708</link>
      <description>&lt;P&gt;Hmmm....2013 was the first year they had onebox I think...I wonder if the flavors had different groups? &amp;nbsp;Seems unlikely though....&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6593009#M62708</guid>
      <dc:creator>Revit_Whisperer</dc:creator>
      <dc:date>2016-09-29T19:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6593043#M62709</link>
      <description>&lt;P&gt;I'm glad my logic is sound...lol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See i tried different parameter types (Text, number, Yes/No etc.) in different versions of Revit and the groups did not change at all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somebody knows, and my legacy templates are proof....i just need to know how, and I'm close to wits end...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ive googled, talked to other guru's and no one knows.....&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 20:07:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6593043#M62709</guid>
      <dc:creator>CharlesBerteaux</dc:creator>
      <dc:date>2016-09-29T20:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6594731#M62710</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;I don't know if this will make you feel any better, and I am not the one to ask for help with the api...but I talked to someone on our development team and he said:&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;No, it is not possible to create a ParameterGroup there are only fixed values. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;“Display” is still one of the options in the API. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;I don’t think you can add the group. It exists.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;I don’t know why it’s hidden in the UI – I’m saying that hypothetically with the API you could assign a parameter to that group.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="api.png" style="width: 175px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/277779i674E891EC4C45E73/image-dimensions/175x139?v=v2" width="175" height="139" role="button" title="api.png" alt="api.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:46:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6594731#M62710</guid>
      <dc:creator>Revit_Whisperer</dc:creator>
      <dc:date>2016-09-30T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6595051#M62711</link>
      <description>&lt;P&gt;This does not make me feel any better lol.....but thank you because its more info than Ive been able to dig up on my own &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe I just need to take the current parameters and reassign them to something that is visible in the UI...if I can. Prob cant since its hidden by default.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hacked revit.jpg" style="width: 311px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/277834i6201046491B6FCD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hacked revit.jpg" alt="hacked revit.jpg" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 16:23:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6595051#M62711</guid>
      <dc:creator>CharlesBerteaux</dc:creator>
      <dc:date>2016-09-30T16:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6595094#M62712</link>
      <description>&lt;P&gt;I would think you could reassign them to another visible group....but this is Revit with some voodoo magic going on....so no guarantees &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 16:40:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6595094#M62712</guid>
      <dc:creator>Revit_Whisperer</dc:creator>
      <dc:date>2016-09-30T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6610600#M62713</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Charles Berteaux Iv,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reporting this!&amp;nbsp;&lt;SPAN&gt;Please accept our sincerer apology for the delay! We had a backlog in the queue these days.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Per my verify, Revit API can create project shared parameter to "Display" group successfully, while UI side failed to do this; this should be an issue of Revit, I already created issue to engineering team: [REVIT-100547 Force a shared parameter to a group not available while API can do this]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following is my code example to create project parameter to "Display" group from shared parameter file, FYI:&lt;/P&gt;
&lt;PRE&gt;        /// &amp;lt;summary&amp;gt;
        /// Creates project parameters to wall category from shared parameters file.
        /// All project parameters will be placed to "Display" group by hardcode.
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="revitDoc"&amp;gt;&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="paramFile"&amp;gt;&amp;lt;/param&amp;gt;
        /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
        static public bool CreateSharedParametersByFile(Document revitDoc, string paramFile)
        {
            if (!File.Exists(paramFile))
                throw new FileNotFoundException("The given shared parameter file doesn't exist! -&amp;gt;" + paramFile);

            try
            {
                // cache application handle
                Autodesk.Revit.ApplicationServices.Application revitApp = revitDoc.Application;
                CategorySet cateSet = revitApp.Create.NewCategorySet();
                Category paramCat = revitDoc.Settings.Categories.get_Item(BuiltInCategory.OST_Walls);
                if (null == paramCat || !paramCat.AllowsBoundParameters)
                    return false;
                cateSet.Insert(paramCat);
                //
                // prepare shared parameter file
                string oldSharedFile = revitApp.SharedParametersFilename;
                revitApp.SharedParametersFilename = paramFile;
                //
                // open shared parameter file
                DefinitionFile parafile = revitApp.OpenSharedParameterFile();
                //
                // create parameter definition and bindings
                using (Transaction tran = new Transaction(revitDoc, "Create Shared Params"))
                {&lt;BR /&gt;                    tran.Start();
                    foreach (DefinitionGroup defGrp in parafile.Groups)
                    {
                        foreach (Definition def in defGrp.Definitions)
                        {
                            InstanceBinding binding = revitApp.Create.NewInstanceBinding(cateSet);
                            revitDoc.ParameterBindings.Insert(def, binding, BuiltInParameterGroup.PG_DISPLAY);
                        }
                    }
                    //
                    // commit change
                    tran.Commit();
                }
                //
                // restore its shared parameter file to old one
                if (!string.IsNullOrEmpty(oldSharedFile))
                    revitApp.SharedParametersFilename = oldSharedFile;
                return true;
            }
            catch (Exception ex)
            {
                throw new Exception("Failed to create shared parameters due to exception: " + ex.ToString());
            }
        }&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Oct 2016 07:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6610600#M62713</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2016-10-09T07:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Force a shared parameter to a group not availiable</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6619573#M62714</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear&amp;nbsp;Charles Berteaux Iv,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I talked with my colleagues, and I'm passing the message from engineering team:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE class="x_text-paragraph-pattern" border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="x_text-paragraph-pattern-container x_mobile-resize-text"&gt;
&lt;P&gt;We have a hardcoded property that tells us if a specific group is user assignable or not. It seems that this has been the case since early implementation and is valid for all parameters, not just shared ones. It is my understanding that this is the case for two reasons:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;1. Usability: it isn't desirable to have a new parameter of a group that Revit already provides.&lt;/LI&gt;
&lt;LI&gt;2. Functionality: there are certain internal parameters which are not visible to the user (likely) because it isn't desirable to group user created parameters under a un-user assignable group.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;On the API side we have exposed the whole groups without any restriction from user assignable property. So yes, you will be able to create some parameters with a group value that is not possible to do from the UI, and sometimes you might have good reasons to do so depending on what you are trying to achieve in your Addin. For example, if you feel that reason #1 above is not really the case and you want to add a new parameter for a specific group which was considered originally to be not user assignable.&lt;/P&gt;
&lt;P&gt;In the team's opinion, this behavior is working as expected. If we start getting user requests to modify this behavior, we can considering prioritizing it as an improvement in our development work.&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue is important to me. What can I do to help?&lt;BR /&gt;&lt;SPAN&gt;This issue needs to be assessed by our engineering team, and prioritized against all of the other change requests that are outstanding. As a result any information that you can provide to influence this assessment will help. Please provide the following where possible:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Impact on your application and/or your development. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• The number of users affected. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• The potential revenue impact to you. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• The potential revenue impact to Autodesk. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Realistic timescale over which a fix would help you. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• In the case of a request for a new feature or a feature enhancement, please also provide detailed Use Cases for the workflows that this change would address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact Change Requests. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 08:33:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/force-a-shared-parameter-to-a-group-not-availiable/m-p/6619573#M62714</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2016-10-13T08:33:52Z</dc:date>
    </item>
  </channel>
</rss>

