Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

macro question

hrh46
Advocate

macro question

hrh46
Advocate
Advocate

I have a macro (importing vise) which runs in the 1st opened powermill session even if it is run from another sesstion.

there may be a a macro command to correct this. let me know if there is something. thanks

0 Likes
Reply
610 Views
7 Replies
Replies (7)

ondrej.mikulec
Advocate
Advocate

Hi,

With this bit of information, all I can say is that the vise import macro may actually be an external exe application and the macro only serves to launch that application from the Powermill panel button. In this case, the external application does not know which instance to import the vise into.

kevin.hammond3WX4X
Advocate
Advocate
You may get a better response if you share the macro on here.
0 Likes

Sean571
Advocate
Advocate

That sounds like the import vise app that was made awhile back. If it looks like this, then there is no way around the issue.

Sean571_0-1689966909886.png

 


Unfortunately, the app was made on a version of the PowerMill API which didn't have a means to detect which session of PowerMill you wanted to use, and could only use the first session of PowerMill. There is no way around this if you are using that application.

That said, they did update the API to allow someone to connect to different sessions of PowerMill, but I don't imagine Autodesk will ever update the app. Someone could technically update the app themselves by doing some shady stuff, but that's outside most people's skill level and Autodesk probably wouldn't like it.

Sean Wroblewski
Applications Engineer

0 Likes

hrh46
Advocate
Advocate

Yes. Thats correct. and I didn't know about its API. So, Do you know another Vise app without this problem for PowerMill? I hear FeatureCam has its own vise.

by the way, I call the vise app from a macro and maybe there is a command to find out if there is more than 1 session opened and warn before line of calling vise? 

0 Likes

ondrej.mikulec
Advocate
Advocate

I can bet that there are heaps of applications for importing vise and parts nesting for Powermill. But they are programmed in-house or developed by custom app providers. The vise importing and positioning is nothing special. Theoretically, everything for a part or a vise nesting you need you can do via Powermill macros by using the command for model transformations.

0 Likes

Sean571
Advocate
Advocate

There is not another official Autodesk app for importing vises. As others have said there are likely countless apps/plugins/macros people have made in-house and not readily accessible to other companies. 

That featureCAM app is actually the exact same app used for PowerMill. It works with both software.  

Lastly there is not macro command or anything we can do to fix the vise app short of decompiling it and fixing the issue in the source code of the app, which would almost certainly break any license agreement with Autodesk.

As others have said, I would just recommend crating a macro or finding a macro on here to try and do post of the same stuff. It won't be as powerful as the app though. 

Sean Wroblewski
Applications Engineer

0 Likes

Type a product name