The activatePK function is used to activate a MIPAR API license key using the command line.


productKey: MIPAR API product key formatted as raw string.

errorStatus: dictionary that contains the errorFlag and errorMessage
errorFlag: 0 - no error, 1 - an error occurred
errorMessage: error string of error that occurred during activation 


errorStatus = mipar.activatePK(productKey)


# initialize engine and licence manager
import miparAPI
mipar = miparAPI.initialize()
productKey = r'12345678-abcd-1234-abcd-123456789101'  
errorStatus = mipar.activatePK(productKey)

Need more help with this?
Chat with an expert now ››

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.