Navisworks api not licensed

Navisworks api not licensed

857292181
Participant Participant
2,830 Views
11 Replies
Message 1 of 12

Navisworks api not licensed

857292181
Participant
Participant

I tried multiple machines and it works, but the deployment to the client server keeps reporting the above error.
The problem is in the initialization API times wrong: ApplicationControl.Initialize()
I reinstalled navisworks several times and upgraded with 2020 update6, but the problem still exists.And we bought the legitimate software.
Do you have any good solutions? Thank you very much!

0 Likes
2,831 Views
11 Replies
Replies (11)
Message 2 of 12

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @857292181 ,

 

I need detailed information about your issue.
Are you calling Initialize() more than once?
I don't think we support calling Initialize() more than once during a session; it is an underlying licensing system limitation.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 12

857292181
Participant
Participant

@naveen.kumar.t

 I tested a number of machines and only the customer's computer had this problem

0 Likes
Message 4 of 12

857292181
Participant
Participant

@naveen.kumar.t 

Thank you very much for your reply.
I only called it once in my code. Here is my code.

 

//Set to single document mode
Autodesk.Navisworks.Api.Controls.ApplicationControl.ApplicationType = ApplicationType.SingleDocument;

//Initialise the api
ApplicationControl.Initialize();

//Create a DocumentControl
DocumentControl documentControl = new DocumentControl();

//Set as main document, needs to be called as COM works on the application's MainDocument
documentControl.SetAsMainDocument();

dataLib.filePath = filePath;

//If the user has selected a valid location, then tell DocumentControl to open the file
if (documentControl.Document.TryOpenFile(filePath))
{

//Select the first root item using the API
roots = new ModelItemCollection();
roots.Add(documentControl.Document.Models.First.RootItem);
documentControl.Document.CurrentSelection.CopyFrom(roots);

document = documentControl.Document;

dataLib.fileDirectoryName = Path.GetDirectoryName(dataLib.filePath);

//RotateMarix4.GetInstance().UpVector = Application.ActiveDocument.UpVector;

UnitData.FT2MM = Utility.GetScale();

string pbcName = Path.GetFileName(dataLib.filePath);
dataLib.pbcSavePath = dataLib.fileDirectoryName + "\\" + pbcName.Substring(0, pbcName.LastIndexOf(".")) + ".mv";


InitLog();

if (roots.Count == 0)
{


}

 

DataHandel();
}

//Dispose of the DocumentControl
documentControl.Dispose();

//Finish use of the API.
ApplicationControl.Terminate();

0 Likes
Message 5 of 12

naveen.kumar.t
Autodesk Support
Autodesk Support

HI @857292181 ,

 

Since the issue is occurring only on a particular machine, it is extremely difficult for us to understand what is happening on your end.

As far as I know, If the issue is happening only in a particular machine, then the Navisworks journal file or log file may help us to figure out the cause of the issue.

 

Journal File  : The journal file will be in the below path

"%AppData%\Local\Autodesk\CER\"

 

Log file  : https://knowledge.autodesk.com/support/navisworks-products/troubleshooting/caas/sfdcarticles/sfdcart... 

 

Could you please send me the above mentioned files?


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 6 of 12

857292181
Participant
Participant

@naveen.kumar.t 

Sorry for the late reply.

Why can't I find the log configuration when I installed navisworks.I followed your directions to find this.

 

857292181_0-1672740857015.png

 

0 Likes
Message 7 of 12

naveen.kumar.t
Autodesk Support
Autodesk Support

I think you have entered only "C:\Program Files\Autodesk\Navisworks Manage 2019\OptionsEditor.exe"

and you missed "-a"

 

You should enter

"C:\Program Files\Autodesk\Navisworks Manage 2019\OptionsEditor.exe" -a 

 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 8 of 12

857292181
Participant
Participant

@naveen.kumar.t 

I'm sorry, I missed the quotes.

Here is my log file, please have a look at it sometime.
Thank you very much.

0 Likes
Message 9 of 12

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @857292181 ,

 

I found these below lines in the log file.

Received LicenseUpdateCallback for Navisworks Manage 2020 ADLSDK_UPDATE_REASON_LICENSE_UPDATE NOT Authorized

Error Information: lgs UI requires GUI mode

adlsdkAuthorize: status Error

checkinLicense: unable to release authentication handle

checkinLicense: unable to delete session

Your assumption is correct. Looks like a licensing issue.

 

From my understanding, the user is not licensed Or rather, the user isn't signed in, and you cannot sign in when not in GUI mode.

 

You should be
a) already signed in
b) run as the same user that signed in.

 

My question to you is, Can the user open Navisworks manually and work without any issue?


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 10 of 12

a19911103hsy
Community Visitor
Community Visitor

licenese.jpg

navi.jpg

 

@naveen.kumar.t 

Thansk for your solution. I find  the Business Network License on the server(Commercial License). It shows that Naviworks has been authorized. And I can open Navisworks manually and work without any issue. I guess the license does not include the AutoDesk plugin Add-on modules and plugins that contains the APIs that We called. 

 

 

0 Likes
Message 11 of 12

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @a19911103hsy ,

 

Have you figured out the solution to your issue?

I only have very little knowledge of how licensing in Autodesk products works.

If it is a licensing issue, I would suggest you check with the Autodesk licensing team.

Could you please check with "Installation & Licensing" team?

Link : https://forums.autodesk.com/t5/installation-licensing/bd-p/24 

If nothing helps, please let me know.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 12 of 12

sampath.jeedigam
Enthusiast
Enthusiast

may I know where the discussion continued after this?

I have similar issue, i do not find any related discussion in licensing link given.

Can someone point me to solution?

0 Likes