hexagon logo

Making .bas executable, is it possible?

I recently read a post on how to create toolbar items, thanks by the way Josh Carpenter. After doing so, I created a .bas file and attached it to one of these buttons. Now, when I press this button, the code compiles in the edit window but I want it to execute automatically. Is there a way to do this?
  • Starting a program through automation like the one above have been acting funky for me in all PC-DMIS versions.
    It behaves just like GenerallyConfused says, it starts PC-DMIS - but does not open the program in question.

    You can open the partprogram through scripting as well - I think I have posted some code for this here somewhere.
    A user wanted to open a program, execute it, close and then open a new program.

    So... the code is in here somewhere.


    Yes, I had stumbled across code that you posted to run multiple programs sequentially in the past. I tried it under my profile and it would not work, tried it under my co-workers profile today just by chance and it worked. Must have different permissions assigned to each profile, will have to have IT fix it. Thank you for your code and for your helpful suggestions. Things are finally working. Slight smile