How can i use the macro to get the PowerMILL is Standard or Ultimate version?

How can i use the macro to get the PowerMILL is Standard or Ultimate version?

hx
Advocate Advocate
394 Views
3 Replies
Message 1 of 4

How can i use the macro to get the PowerMILL is Standard or Ultimate version?

hx
Advocate
Advocate

As the image show below.

How can i use the macro to get the PowerMILL is Standard or Ultimate version?

03.png

0 Likes
Accepted solutions (1)
395 Views
3 Replies
Replies (3)
Message 2 of 4

DanielMolloy
Advocate
Advocate

Not sure if there is a way to do this with macros however I used to do this by changing the target of the powermill shortcut. If you right click on the shortcut and then select properties, from there go to the shortcut tab. In the target box if you scroll right to the end the last word is "ultimate", if you swap this out with the word "standard", press ok, then launch powermill from the shortcut it will load into standard mode.

 

This might work however you may run into license issues when it loads, i'm not certain, haven't done this in a while.

0 Likes
Message 3 of 4

hx
Advocate
Advocate

@DanielMolloy 

Thanks for the answer.

I Know this method to run the standard or ultimate version. But I need is the macro to know with version is running now. because some function was limit in PowerMILL standard. The macro needs to warn the user that the correct version needs to be used.

 

 

0 Likes
Message 4 of 4

cfastNJWK6
Advisor
Advisor
Accepted solution

This should do it:

 

//Get info from About widget
STRING $info = $widget("about.label").value
// Split it
STRING LIST $split = tokens($info)
// Get Version, should be one of Viewer, Ultimate, Premium and Standard
//currently the viewer doesn't return information into the $info variable
// Error check for trying to split an emply list
BOOL $err = 0 
$err = ERROR split[2]
STRING $version = ""
IF $err == 0 {
	$version = split[2]
	}
MESSAGE INFO $version