question

Laurenz Peleman avatar image
0 Likes"
Laurenz Peleman asked Ben Wilson edited

Flexsim sharing module: is it safe?

Hello everyone


I came around the following topic on automatically activating and returning licenses: click. In other discussions on this topic, this module has been referred to as a useful tool. However, just to be sure, is it safe to use, i.e. has it been validated by Flexsim itself? If not, is there an alternative way to do the same thing?

Thanks in advance, kind regards

Laurenz Peleman

return licenseactivation
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Ben Wilson avatar image
2 Likes"
Ben Wilson answered Ben Wilson edited

Hi @Laurenz Peleman,

Yes, you can feel safe using @Chris Smith's licensing module.

It is just programmatically activating/returning licenses. Nothing too exotic.

Looks like it was created back in the FlexSim 7.5 days, but everything it's doing should still be compatible with modern versions of FlexSim, so I expect it would still work as it did back then.

UPDATE: to use this module with FlexSim 7.7 or higher, use this updated version:

floatinglicense-v12.zip

· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Laurenz Peleman avatar image Laurenz Peleman commented ·

Hi @Ben Wilson

I have installed the module but get the following error message when opening Flexsim:

I blurred the activation key, which seems to be read correctly. Do you know what could cause it (a change in the server name/paremeters, something else)?

Kind regards

Laurenz Peleman

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ Laurenz Peleman commented ·

@Laurenz Peleman,

Usually that kind of error means that you have a firewall, proxy server, or something else blocking communication between FlexSim and the license server.

However, in looking at the code in the module, it looks like in FlexSim 7.7 some updates were made to the Activate tab of the License Activation window that made it incompatible with this module.

I've updated the module files and this new version works for me. Please test it out and report back.

floatinglicense-v12.zip

0 Likes 0 ·
Laurenz Peleman avatar image Laurenz Peleman commented ·

Hi @Ben Wilson

I have tried to use your new version and the previous error seems to be gone. However, I obtained the next error on exiting Flexsim, with blurred code fields:

When I look at the license dropdown menu, it seems two copies of the same license are in it: one which I can return (and subsequently reactivate, no problems with that) and one which creates the message in the picture. Apparently, I cannot get rid of this activation anymore, and the module doesn't work anymore.

I have been digging in the code of the module and came around some new commands I was not aware of. The one I think could solve/prevent this issue is "licenseactivation", maybe in combination with the parameter LA_DELETE_FULFILLMENT_RECORD (and some other parameters?). However, I couldn't find much information on this command. Where can I find that info, or which command structure do I have to use to delete a problematic record?

Kind regards

Laurenz Peleman

0 Likes 0 ·
error-return.png (13.0 KiB)
Ben Wilson avatar image Ben Wilson ♦♦ Laurenz Peleman commented ·

Hi @Laurenz Peleman,

If you have 2 copies of the same license show when you View Licenses, one of them probably has a status *BROKEN* or *DISABLED*. Because you have a good instance of this license, you won't be able to repair the broken one, so deleting it is the proper course of action.

In the View Licenses, find the broken license's Fulfillment ID. It will start "FID_", followed by a bunch of random characters.

Use that Fulfillment ID in this manner to delete it from your system:

licenseactivation(LA_DELETE_FULFILLMENT_RECORD, "FID_...");

You'll be prompted to make sure you really want to delete that fulfillment. Once you agree, that broken or disabled activation will be cleared off your system, and the module should work properly.

Comment back with any other questions or problems.

If everything is working, go ahead and hit the Accept link under the main answer above to let the community know this Answer solved your question.

1 Like 1 ·
Laurenz Peleman avatar image Laurenz Peleman Ben Wilson ♦♦ commented ·

HI @Ben Wilson

Works perfectly, thanks a lot!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.