Autodesk-Forge / forge-api-dotnet-client

Forge .Net SDK: Provides .Net SDK to help you easily integrate Forge REST APIs into the application
https://www.nuget.org/packages/Autodesk.Forge/
Apache License 2.0
93 stars 70 forks source link

Autodesk.Forge.Model.DesignAutomation.v3 NicknameRecord #54

Closed yskific closed 3 years ago

yskific commented 5 years ago

Hi again,

Here is the Workaround i mentioned in my previous post:

        private void TrySetNickName(string nickName)
        {
            PublicKey key = new PublicKey(new byte[0], new byte[0]);
            NicknameRecord nick = new NicknameRecord(nickName, key);

            bool failed;
            do
            {
                try
                {
                    failed = false;
                    Console.WriteLine("Trying to Set NickName ...");
                    forgeAppsApi.ForgeAppsCreateNickname("me", nick);
                }
                catch (Exception)
                {
                    Console.WriteLine("Attempt Failed");
                    failed = true;
                }

            } while (failed);
        }

This time it's just a request: Is it possible to set an empty PublicKey in NicknameRecord(string Nickname) ctor ? This empty PublicKey is needed ForgeAppsApi.ForgeAppsCreateNickname("me", nick); call.

And a question: What is this PublicKey suppose to do in the future (I coudn't find any information on it) ?

augustogoncalves commented 5 years ago

Please see #53