Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

ThRaSH

Verified Members
  • Posts

    78
  • Joined

  • Last visited

Recent Profile Visitors

991 profile views

ThRaSH's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Oh...you want the actual NC code that's posted to be output with the report then? I thought you were talking about the NC file name. Well they say anything's possible. I'm sure the actual NC code could be added to the report in an automated way with some C# coding. How are you manually inserting the NC code now? What format do you save your report...pdf, html? Then you insert the NC code and print out? It should be possible to post out the NC file, then run your Active Report and AR will import the NC file and include it in the report. Your IT guys could code it, or given enough time I might be able to come up with something.
  2. I can't find anything for a NC File name either. Just NCI file name. More than likely it's like this because you can have multiple NC files output, but only 1 NCI file is created AFAIK. You could add the NC file names to the Setup Sheet dialog box and have them included in your report. Just add DIALOG1 thru DIALOG8 as a DataField in your report template. Search Help for Update the ActiveReports Template to see how it's used. Another thing you could do is have Active Reports prompt you for input to be used in the report when it's run. This can be done with a little C# code. I've done this in the past. Only other thing I can think of is to create a blank spot in the report and write the file name in manually. Probably what your doing now...
  3. Sorted Tool List...Sorted by what? You guys are aware that you can right-click in the Tool Manager choose Arrange Tools > by Number, by Type, by Name, or by Diameter and then right-click choose import/export - detailed report or report. This will give you a report in the way that you chose to arrange them. Is that what you guys are looking for?
  4. Here you go. You just need to change the code so it points to the Name of your TextBox. I used a TextBox named txtStockSize in example below. If you have any problems\questions, let me know. using System; using System.Windows.Forms; public void Detail_Format() { // Load s_stocksize variable with the TextBox.Text from your SZ/STOCK-XYZ datafield. // This example uses a TextBox that has the Name txtStockSize string s_stocksize = ((TextBox) rpt.Sections["Detail"].Controls["txtStockSize"]).Text; // If Then to check that the SZ/STOCK-XYZ datafield is not empty if (!String.IsNullOrEmpty(s_stocksize)) { string[] szArray = s_stocksize.Split(','); string s_NewString = System.String.Empty; double[] dNumArray = new double[szArray.Length]; for(int i = 0; i < szArray.Length; i++) { dNumArray[i] = double.Parse(szArray[i]); szArray[i] = String.Format("{0:0.00}", dNumArray[i]); //MessageBox.Show(szArray[i]); } s_NewString = String.Join(", ",szArray); ((TextBox) rpt.Sections["Detail"].Controls["txtStockSize"]).Text = s_NewString; } }
  5. It could be they just missed this one parameter. If you want you could always send a request into QC and include a link to this thread so they have something to reference.
  6. The XML Datasource for a mill report is SSM.xml. If you open that file up you'll find the MAXSTEP tag. Now you could add one named STEPDOWN, but Mastercam won't know what do with it because it's not tied or bound to a datafield within Mastercam. (It's possible they have added this for X6 - not sure?) Bottom line is you want to output the STEPDOWN value for Surface High Speed Area Clearance, Core Roughing and a few other toolpaths right? It's possible to write some code\script that will execute just for these toolpaths when your report is run. So as your report is being generated in Mastercam, if it comes across one of these toolpaths then you will be prompted to input a STEPDOWN value and that will be included for that toolpath in your report. It would be a work around until they build the STEPDOWN tag into Mastercam...I've actually done something like this in the past.
  7. You can create additional XML tags. Look in the help file for "Creating custom XML tags".
  8. It's possible to format the stock size with C# code. As you already found out you can't format "SZ/STOCK-XYZ" as a number, because it's actually a "string" of numbers. So you would need to convert that string into numbers, then format the numbers for 2 place decimal, and then convert again back into a string to display in your report. If you want I could work out some code for you.
  9. http://www.nvidia.com/object/product-geforce-gtx-460-us.html According to those specs it looks like it's the GTX 460 SE card. Should get slightly better times with the GTX 460 1GB card Who manufactures your card EVGA, MSI, PNY? Too bad there isn't a video card\verify benchmark thread...
  10. Good deal Brendan, I'm glad you got it sorted.
  11. Active Reports can get Tool data from two places within the XML data source. When Active Reports runs your template every time it finds the DESCRIPTION tag for example it will output it in your report. I've had this problem before and you have to define the areas of your report a little better. From your image it looks like the first part is a tool list so you would want tool data from the <TOOLS> node of the XML data source. The second part looks like an operations list that you would want to get tool data from the <OPERATION> node of the XML data source. Do you have a subreport for both the Tools list and the Operations list? XML Data Source <SETUPSHEET> <NCFILE> <OPERATION> <TOOL> ...Tool Data Fields <DESCRIPTION> T0101: General Turning Tool-55 Degree Roughing </DESCRIPTION> </TOOL> </OPERATION> <TOOLS> <TOOL> ...Tool Data Fields <DESCRIPTION> T0101: General Turning Tool-55 Degree Roughing </DESCRIPTION> <TOOL> </TOOLS> </NCFILE> </SETUPSHEET>
  12. ftp://mastercam:[email protected]/Mastercam_forum/Setup_Sheets/Tool+Crib+List.zip File: Tool+Crib+List.zip I looked into this a little more and found out that it's not possible to export an excel file with script thru the End User Designer (Active Reports Designer). So the only solution at this time is to have a separate report for the Tool Room. I have this "Tool Crib List" Report that you can download from the ftp. When you run a report save it as an excel file and the Tool Room person will have something to work with. The Tool Room person will have to double-click the cell and hi-light the function and hit the enter key in order to set the function. Here's a screen shot that kinda demonstrates that. The function is just an example - your going to want to use your own function which you can change on the reports Script page. The function as it is takes a toolpaths "Cut Length" and multiplies it by a number I just came up with off the top of my head. Like I said it's just an example - we can tweak it to get what your looking for.
  13. http://technet.microsoft.com/en-us/sysinternals/bb842062 Have you ever used Process Monitor from Sysinternals? Using Process Monitor it appears Mastercam creates a temporary x_t and x_b file when opening\importing a x_b file. You could try cleaning out this temp folder that Mastercam uses. I'm kinda reaching here...not really sure what the problem would be. Process Monitor might give you an idea of where it's hanging though. Is it just solid files or is it any file you open in X5MU1?
  14. Ok...I think I have a better understanding of what your after. I haven't done anything with excel within Active Reports before, so I just did a quick search at http://www.datadynamics.com/ These are the guys that are behind Active Reports in Mastercam. I did a search for "excel formula" and from the results it's unclear to me if a formula can be exported. Here's a link that details creating a basic spreadsheet and saving it as an .xls file. The C# code looks straight forward. If you want play around with it a little - I will too and we'll see what we can come up with. http://www.datadynamics.com/Help/ActiveReports6/arWLKBasicSpreadsheetWithSpreadBuilder.html
  15. I think it's just the way it is. I've got the same post with the / forward slash in the name and get the same error too.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...