Toolpath description output via PMpost

Toolpath description output via PMpost

5axes
Advisor Advisor
570 Views
2 Replies
Message 1 of 3

Toolpath description output via PMpost

5axes
Advisor
Advisor

Hello,

 

I'm wondering if there is a solution to export the toolpath description as comment in the final NCcode via the postprocessor (PMPost).

 

 Description.jpg

 

I have made some test by using the function GetParameter  but the parameter "Description" doesn't seems to exist

 

Best regards,

 

Cuq

 

0 Likes
571 Views
2 Replies
Replies (2)
Message 2 of 3

cfastM58RS
Advocate
Advocate

We put any information for the toolpath in the 'Notes' section and post all of our programs with a macro that makes sure the notes get into the posted file. Here is part of the macro code: 

 

  STRING $TPNote = "/{Notes}"
  INT ComCount = 0
  INT ItemCount = 0
  // Then loop through the items within each of the ncprogram folder items (toolpaths)
  FOREACH $ncitem IN components(entity('ncprogram','')) {
    // Check that this item is an 'nctoolpath'
       IF $ncitem.RootType == "nctoolpath" {
      $ComCount = ($ItemCount + 0) * 1000
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount COMMANDS $TPNote
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount MESSAGES OFF
      EDIT NCPROGRAM # ITEM $ItemCount COMPONENT $ComCount COMMANDS BEFORE
    }
    $ItemCount = ItemCount + 1
    //macro pause "here 1"
  }
Message 3 of 3

rafael.sansao
Advisor
Advisor

Hello,

You must use a udp_ variable in Postprocessor.
Check the link:

https://forums.autodesk.com/t5/powermill-forum/replace-a-character-in-file-with-a-macro/m-p/6774411#...

 

Rafael

Rafael Sansão

OptiNC - www.optinc.tech

EESignature