admin 发表于 2017-4-10 17:22:09

NX二次开发源码分享: 打印license bundles 信息

NX二次开发源码分享: 打印license bundles 信息

static void report_selected_license_bundles()
{
    Session *theSession = Session::GetSession();
    theSession->ListingWindow()->Open();

    LicenseManager *theLM = theSession->LicenseManager();

    std::vector<LicenseManager::LicenseBundle>theBundles = theLM->GetBundlesSelected();
    theSession->ListingWindow()->WriteFullline("Selected Bundles:");
    for each (LicenseManager::LicenseBundle aBundle in theBundles)
    {
      NXString msg = NXString(" ") + aBundle.BundleName;
      theSession->ListingWindow()->WriteFullline(msg);
    }
}

licxsw 发表于 2020-9-26 23:59:41

这个用途是什么?
页: [1]
查看完整版本: NX二次开发源码分享: 打印license bundles 信息