Announcements

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

Run macro after import model

Anonymous

Run macro after import model

Anonymous
Not applicable

Hi,

how to run macro automatically after model import is completed ?

i think capture any signal or event handler solve this, any another solution is appreciated.

Thanks

0 Likes
Reply
Accepted solutions (1)
656 Views
4 Replies
Replies (4)

LasseFred
Collaborator
Collaborator

U can't automatically run a macro from a event.

 

But u can make a macro that imports your model.

 

IMPORT MODEL FILEOPEN

//The rest of your macro

 

______________________
Lasse F.

Sean570
Advocate
Advocate

You would need to make a plugin to do this. That's a lot of work for little gain though.

Anonymous
Not applicable

Hi

Yes i know i have to do plugin. But I need help, what the name of the of event_handler ?

I think start plugin automatically and this plugin running in background listening for this event_handler, when found it

run macro or macros and finalize plugin. 

Sorry I'm new to plugin programming.

Thanks

 

0 Likes

Sean570
Advocate
Advocate
Accepted solution

so you already have a plugin started? is it written in C# or Visual Basic? Do you know how to subscribe to powermill events at all?