Shopmill 840D Subprogramm call in PP

Shopmill 840D Subprogramm call in PP

siekmann.dennis
Explorer Explorer
414 Views
1 Reply
Message 1 of 2

Shopmill 840D Subprogramm call in PP

siekmann.dennis
Explorer
Explorer

Hey Guys,

 

i need a bit help right now, i want to work with subprogramms and its working well. But i need to get this " before and after the programm name. Like: "roughing" and not : roughing.

 

This line: writeBlock("EXTCALL " + subprogram + " ;", callType); // call subprogram

 

I need to get "subprogram" how do i do that? So he writes "programname"

 

sorry for my bad english

 

and thanks for the help! 😄

 

0 Likes
415 Views
1 Reply
Reply (1)
Message 2 of 2

serge.quiblier
Autodesk
Autodesk

Hello @siekmann.dennis 

 

Ah, dealing with the subtlety of quote and double quote in javascript.

Try that code :

writeBlock("EXTCALL \"" + subprogram + "\" ;", callType); // call subprogram

 

Use the escape version for the desired double quote. (i.e \" )

 

Regards


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!

 



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes