UseExistingInstance in Powershape API bug

UseExistingInstance in Powershape API bug

l.ponsaerts
Advocate Advocate
590 Views
5 Replies
Message 1 of 6

UseExistingInstance in Powershape API bug

l.ponsaerts
Advocate
Advocate

PowerShape = New PSAutomation(Autodesk.ProductInterface.InstanceReuse.UseExistingInstance)

will use an existing Powershape or start a new Powershape if no Powershape is running. 

This  worked until I installed an old Powermill version (Powermill 2012R2 SP7). Now, if no Powershape is running, our software exits because no Powershape is found. Uninstalling PM2012 doesn't help.

The "InstanceReuse.UseExistingInstance" description says that it will start an existing instance, or start the "last installed" version of Powershape. I am afraid that the installation of PM2012R2 changed somerhing in the registry?

0 Likes
591 Views
5 Replies
Replies (5)
Message 2 of 6

l.ponsaerts
Advocate
Advocate

We are using the Autodesk.ProductInterface.Powershape v1.1.1beta. Should we use v1.1.33-alpha instead?

0 Likes
Message 3 of 6

luke.edwards.autodesk
Community Manager
Community Manager

You should always be using the latest version of the API.

For this issue, I suggest you run the older version of PowerMill as administrator (Right click\Run as Administrator).  Then try again.

Alternatively you should be able to specify the version of PowerMill as a parameter to the constructor.

Luke


Luke Edwards
Consulting Services Manager
0 Likes
Message 4 of 6

l.ponsaerts
Advocate
Advocate

HI Luke,

 

Slight misunderstanding I think.

I am not using Powermill in this application (I had to install Powermill 2012R2 for another reason). My app only uses Powershape 2020. I uninstalled PM2012R2, but the problem remains : if Powershape is not running before I start my app, The app exits because no Powershape is running. 

As it should start the latest installed version of Powershape, I think that the installation of an old Powermill messed up something in the windows registry or in the API.

0 Likes
Message 5 of 6

l.ponsaerts
Advocate
Advocate

latest version of the API : it is an alpha version : is that safe?

0 Likes
Message 6 of 6

luke.edwards.autodesk
Community Manager
Community Manager

Yes, they are mostly all built as alpha.  I used to build a customer release one periodically but haven't done this for a while.


Luke Edwards
Consulting Services Manager
0 Likes