Site Logo
Site Logo
 
It is currently Sun Apr 02, 2017 10:16 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: call Macro from a Macro
PostPosted: Tue May 12, 2015 6:29 am 
Offline
New User
New User

Joined: Tue May 12, 2015 3:49 am
Posts: 5
Dear Staff,
If I need to program the CSC to call another Macro from a Macro, how can I realize this functionality?

I know the VB interface for PowerMILL. Could you please tell me if CSC can replace it?

Thank you. Look forward to your reply.

Best regards,
Sincerely


Top
 Profile  
 
 Post subject: Re: call Macro from a Macro
PostPosted: Tue May 12, 2015 10:40 am 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
Hi

The code you need to use will be something like the following in VB:
powerMILL.RunMacro(new Delcam.FileSystem.File("c:\macros\mymacro.mac"))

where powerMILL is your instance of PMAutomation.

Thanks
Luke


Top
 Profile  
 
 Post subject: Re: call Macro from a Macro
PostPosted: Wed May 13, 2015 1:33 am 
Offline
New User
New User

Joined: Tue May 12, 2015 3:49 am
Posts: 5
Dear Delcam Staff,
Thank you very much for taking precious time to reply. I start programming CSC by C#. Could you please kindly tell me the right syntax in C# to set the path and run a Macro? It may be in a single line, or in two line: one setting path while the other run the Macro. Thank you.

If a subtask is to generate the ABB RAPID code automatically, a requirement of CSC license appeared when running without debug. Shall I have a CSC license?

Thank you very much. Look forward to your reply.


Top
 Profile  
 
 Post subject: Re: call Macro from a Macro
PostPosted: Thu May 14, 2015 9:47 am 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
HelenHou, I believe this question is covered in your other forum post? Are you happy that we combine the answer in there?
viewtopic.php?f=53&t=12211


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB