Message 1 of 7

Not applicable
10-07-2019
10:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When using an existing instance of powermill, how can I ensure that the session I want is selected when multiple sessions of Powermill are currently open?
Dim PowerMill as PMAutomation = New PMAutomation(Autodesk.ProductInterface.InstanceReuse.UseExistingInstance) Dim Session as PMProject = PowerMill.ActiveProject
I have assumed that the code above will link to the Currently active (Has focus) session of Powermill. However, this doesn't appear to be the case.
How is the PMAutomation project selected? From my testing it appears to be the first created session of powermill? If so, how do I choose which session is selected?
Any help would be much appreciated!
Solved! Go to Solution.