{"id":746,"date":"2012-04-05T21:56:59","date_gmt":"2012-04-05T19:56:59","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=746"},"modified":"2021-10-15T21:02:38","modified_gmt":"2021-10-15T19:02:38","slug":"autodesk-inventor-licences-in-use","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html","title":{"rendered":"Autodesk Inventor Network License not Available"},"content":{"rendered":"\n<div style=\"position: relative;\"><img decoding=\"async\" style=\"margin-top: 0px; padding-top: 0px;\" src=\"\/images\/Inventor_Log.png\" alt=\"Autodesk Inventor logs in LMTools\" <br=\"\"><img decoding=\"async\" style=\"right: 12px; margin-top: -130px; position: absolute;\" src=\"\/images\/Inventor_Licenses.png\" alt=\"Inventor Network Licenses not Available\">&gt;<br>There seems to be no tool to check which users have taken an<br><a href=\"https:\/\/www.autodesk.com\/products\/inventor\/overview\">Autodesk Inventor<\/a> network license. End users get a &#8220;network<br>license not available&#8221; message and keep asking the IT<br>department why they get no license to run the software or who<br>they were given to. I wrote this tool to avoid useless calls and give anybody the ability to check who&#8217;s connected at this very moment, so they can deal with each other to release a license.<\/div>\n\n\n\n<p><br>Inventor generates a log file in which each (dis)connection is recorded among other information. The script parses the file and displays online users.<br>&nbsp;<br>Only 2 steps are needed to set this up:<br>&#8211; Set the path to the log file flex.log to a read only shared folder and give access to the end users.<br>&#8211; Create the following inventor.vbs script in the same folder.<br>&nbsp;<br>The script was written in VB so it can be run from any Windows computer. I made it available to users on a <a href=\"\/en\/category\/systems\/windows\">Windows<\/a> share.<br>Set the &#8220;Users&#8221; variable to your own number of licenses. We have 4 concurrent Inventor licenses in our case.<br><br>Now users know where they should be looking when they get a Inventor &#8220;network license not available&#8221; message.<br><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"visual-basic\" class=\"language-visual-basic\">Option Explicit\n\nDim objFSO, objFile, strTextFile\nDim line, allSessions(), offline, currentSessions, firstIndex\nDim i, l\nCONST ForReading = 1\nCONST Users = 4\n\n'Log filename\nstrTextFile = \"flex.log\"\n\n'Create a File System Object\nSet objFSO = CreateObject(\"Scripting.FileSystemObject\")\nif not (objFSO.FileExists(strTextFile)) then\n   MsgBox strTextFile&amp;\" does not exist!\", vbExclamation, \"Error\"\n   wscript.quit\nend if\nSet objFile = objFSO.OpenTextFile(strTextFile, ForReading)\n\ni = 0\n\n' Search for connections in reverse order\nDo Until objFile.AtEndOfStream\n    Line = objFile.ReadLine\n    If (not InStr(line, \"(adskflex) OUT:\") = 0) or (not InStr(line, \"(adskflex) IN:\") = 0) Then\n        Redim Preserve allSessions(i)\n        allSessions(i) = line\n        i = i + 1\n    End If\nLoop\n\n' Index in allSessions\nOn Error Resume Next\nl = UBound(allSessions)\n' Count licenses\ni = 0\n\nif (l = \"\") then\n   currentSessions = \"Nobody connected\"\nend if\n\n' Returns x last connections\n' without duplicates\nDo While (i &lt; Users) and (l &gt;= 0)\n   line = split(allSessions(l))\n   if line(0) = \"\" then\n      ' Check if user has not disconnected\n      if StrComp(line(3), \"In:\", vbTextCompare) = 0 and InStr(currentSessions, line(5)) = 0 then\n         offline = offline &amp; line(5) &amp; \" \"\n      end if\n      if InStr(currentSessions, line(5)) = 0 and InStr(offline, line(5)) = 0 then\n         currentSessions = currentSessions &amp; line(1) &amp; \" \" &amp; line(5) &amp; VbCrLf\n         i = i + 1\n      end if\n   else\n      if StrComp(line(2), \"In:\", vbTextCompare) = 0 and InStr(currentSessions, line(4)) = 0 then\n         offline = offline &amp; line(4) &amp; \" \"\n      end if\n      if InStr(currentSessions, line(4)) = 0 and InStr(offline, line(4)) = 0 then\n         currentSessions = currentSessions &amp; line(0) &amp; \" \" &amp; line(4) &amp; VbCrLf\n         i = i + 1\n      end if\n   end if\n   l = l - 1\nLoop\n\nMsgBox currentSessions, vbInformation, \"Inventor licenses\"\n'wscript.echo currentSessions\n\nobjFile.Close\n\n'Cleanup\nSet objFSO = Nothing\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[338,339],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Autodesk Inventor Network License not Available<\/title>\n<meta name=\"description\" content=\"Autodesk Inventor network license not available? Here&#039;s a simple way to let users see who&#039;s taken a Inventor license\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Autodesk Inventor Network License not Available\" \/>\n<meta property=\"og:description\" content=\"Autodesk Inventor network license not available? Here&#039;s a simple way to let users see who&#039;s taken a Inventor license\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2012-04-05T19:56:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-15T19:02:38+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html\",\"name\":\"Netexpertise - Autodesk Inventor Network License not Available\",\"isPartOf\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2012-04-05T19:56:59+00:00\",\"dateModified\":\"2021-10-15T19:02:38+00:00\",\"author\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"description\":\"Autodesk Inventor network license not available? Here's a simple way to let users see who's taken a Inventor license\",\"breadcrumb\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Autodesk Inventor Network License not Available\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Autodesk Inventor Network License not Available","description":"Autodesk Inventor network license not available? Here's a simple way to let users see who's taken a Inventor license","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - Autodesk Inventor Network License not Available","og_description":"Autodesk Inventor network license not available? Here's a simple way to let users see who's taken a Inventor license","og_url":"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html","og_site_name":"Netexpertise","article_published_time":"2012-04-05T19:56:59+00:00","article_modified_time":"2021-10-15T19:02:38+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html","url":"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html","name":"Netexpertise - Autodesk Inventor Network License not Available","isPartOf":{"@id":"http:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2012-04-05T19:56:59+00:00","dateModified":"2021-10-15T19:02:38+00:00","author":{"@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"description":"Autodesk Inventor network license not available? Here's a simple way to let users see who's taken a Inventor license","breadcrumb":{"@id":"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.netexpertise.eu\/en\/misc\/autodesk-inventor-licences-in-use.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"Autodesk Inventor Network License not Available"}]},{"@type":"WebSite","@id":"http:\/\/www.netexpertise.eu\/en\/#website","url":"http:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/746"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=746"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/746\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=746"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}