<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: job-notes- output to the post processor in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618963#M154550</link>
    <description>&lt;LI-CODE lang="general"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1 BLK FORM 0.1 Z X-232 Y-15 Z-12
2 BLK FORM 0.2 X+2 Y+15 Z+0
3 CYCL DEF 32.0 TOLERANCE
4 CYCL DEF 32.1 T0.02
5 *-material:11523                   'job-notes' 1 line
6 *-zmena:A                          'job-notes' 2 line
7 *-poznamka:                         Program Comment
8 *-datum: streda, 6. brezna 2024     date of generation of the program with the name of the day
9 ; 
10 *- zarovnat z prava X+0            'operation-comment'    
11 ; 
12 TOOL CALL 1 Z S2200; monolit 16
13 L M6 
14 M3
15 L X+11.3 Y+20 R0 FMAX
16 M8
17 L Z+50 R0 FMAX&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I need to get some data into the program - material - for example duralumin, stainless steel, etc... and the current change in the drawing.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Fusion does not provide any global parameters that the postprocessor would write to the program.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Our practice is that these data are in the program for various reasons - at a glance I can see if the program is up-to-date, what the material is.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And this is the option to display this data in the program in the place that I want.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Any idea how to get this data from Fusion other than writing it in this note?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And what is * - or ;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It's just that the output in this part of the program was like this before.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And that's how we like it.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Other comments on operations are already with ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;the data "* -" is displayed in the right part of the screen of heidenhain 530 CNC machines - it is easy for the operator to quickly get to the desired place, because the operation lists are also with "* -"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 06:41:25 GMT</pubDate>
    <dc:creator>Tomas_V_cz</dc:creator>
    <dc:date>2024-03-06T06:41:25Z</dc:date>
    <item>
      <title>job-notes- output to the post processor</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12617018#M154504</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hello, I would like to get some data into the program and it occurred to me that "job-notes" (according to the picture) is a good option.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I need to get the data into two lines (it's in the code), but as shown in the picture.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The current form is repeated 2 times for me, and I would have to remove 2 lines.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The code is as follows:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt; if (hasGlobalParameter("job-notes")) {
    var notes = getGlobalParameter("job-notes"); 
    if (notes) { 
      var lines = String(notes).split("\n"); 
      for (line in lines) { 
        var comment = lines[line].replace(/^\s+|\s+$/gm,''); 
        if (comment) { 
          writeBlock("*-material:" + (comment))
          writeBlock("*-zmena:" + (comment))
        }
      }
    }
  }
if (programComment) {
   writeBlock("*-poznamka:" + (programComment))
 } else {
    writeBlock("*-poznamka:");
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The current output is like this (it's wrong)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1 BLK FORM 0.1 Z X-24 Y-24 Z-150
2 BLK FORM 0.2 X+24 Y+24 Z+0
3 CYCL DEF 32.0 TOLERANCE
4 CYCL DEF 32.1 T0.02
5 *-material:11523
6 *-zmena:11523
7 *-material:A
8 *-zmena:A
9 *-poznamka:
10 *-datum: utery, 5. brezna 2024&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The output should be like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1 BLK FORM 0.1 Z X-24 Y-24 Z-150
2 BLK FORM 0.2 X+24 Y+24 Z+0
3 CYCL DEF 32.0 TOLERANCE
4 CYCL DEF 32.1 T0.02
5 *-material:11523
6 *-zmena:A
7 *-poznamka:
8 *-datum: utery, 5. brezna 2024&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I don't enter any data in the notes, the output should be like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1 BLK FORM 0.1 Z X-24 Y-24 Z-150
2 BLK FORM 0.2 X+24 Y+24 Z+0
3 CYCL DEF 32.0 TOLERANCE
4 CYCL DEF 32.1 T0.02
5 *-material:
6 *-zmena:
7 *-poznamka:
8 *-datum: utery, 5. brezna 2024&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I enter the data h&lt;/SPAN&gt;&lt;SPAN&gt;ere:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Notes1.png" style="width: 274px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1333445i58BD1A8902576410/image-size/large?v=v2&amp;amp;px=999" role="button" title="Notes1.png" alt="Notes1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Notes2.png" style="width: 253px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1333444iC363A31D96C88051/image-size/large?v=v2&amp;amp;px=999" role="button" title="Notes2.png" alt="Notes2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:55:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12617018#M154504</guid>
      <dc:creator>Tomas_V_cz</dc:creator>
      <dc:date>2024-03-05T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: job-notes- output to the post processor</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618927#M154546</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I already solved it myself... If anyone is interested, the code is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var material = "";
var zmena = "";

if (hasGlobalParameter("job-notes")) {
    var notes = getGlobalParameter("job-notes"); 
    if (notes) { 
      var lines = String(notes).split("\n"); 
      material = lines[0].replace(/^\s+|\s+$/gm,'');
      zmena = lines[1].replace(/^\s+|\s+$/gm,'');
    }
}

writeBlock("*-material:" + material);
writeBlock("*-zmena:" + zmena);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Mar 2024 05:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618927#M154546</guid>
      <dc:creator>Tomas_V_cz</dc:creator>
      <dc:date>2024-03-06T05:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: job-notes- output to the post processor</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618941#M154549</link>
      <description>&lt;P&gt;I'm Curious&lt;/P&gt;&lt;P&gt;What is the reason these notes are being output as Section Comments(* -), Rather than normal comments(;)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem like the correct usage, but I am probably missing something.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 06:04:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618941#M154549</guid>
      <dc:creator>a.laasW8M6T</dc:creator>
      <dc:date>2024-03-06T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: job-notes- output to the post processor</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618963#M154550</link>
      <description>&lt;LI-CODE lang="general"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;1 BLK FORM 0.1 Z X-232 Y-15 Z-12
2 BLK FORM 0.2 X+2 Y+15 Z+0
3 CYCL DEF 32.0 TOLERANCE
4 CYCL DEF 32.1 T0.02
5 *-material:11523                   'job-notes' 1 line
6 *-zmena:A                          'job-notes' 2 line
7 *-poznamka:                         Program Comment
8 *-datum: streda, 6. brezna 2024     date of generation of the program with the name of the day
9 ; 
10 *- zarovnat z prava X+0            'operation-comment'    
11 ; 
12 TOOL CALL 1 Z S2200; monolit 16
13 L M6 
14 M3
15 L X+11.3 Y+20 R0 FMAX
16 M8
17 L Z+50 R0 FMAX&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I need to get some data into the program - material - for example duralumin, stainless steel, etc... and the current change in the drawing.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Fusion does not provide any global parameters that the postprocessor would write to the program.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Our practice is that these data are in the program for various reasons - at a glance I can see if the program is up-to-date, what the material is.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And this is the option to display this data in the program in the place that I want.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Any idea how to get this data from Fusion other than writing it in this note?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And what is * - or ;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It's just that the output in this part of the program was like this before.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And that's how we like it.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Other comments on operations are already with ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;the data "* -" is displayed in the right part of the screen of heidenhain 530 CNC machines - it is easy for the operator to quickly get to the desired place, because the operation lists are also with "* -"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 06:41:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12618963#M154550</guid>
      <dc:creator>Tomas_V_cz</dc:creator>
      <dc:date>2024-03-06T06:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: job-notes- output to the post processor</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12619179#M154552</link>
      <description>&lt;P&gt;OK, that makes sense if you want to see the information in the Sections window on the controller, rather than just in the program header.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 07:30:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/job-notes-output-to-the-post-processor/m-p/12619179#M154552</guid>
      <dc:creator>a.laasW8M6T</dc:creator>
      <dc:date>2024-03-06T07:30:55Z</dc:date>
    </item>
  </channel>
</rss>

