-
Posts
122 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by eltklas
-
-
I have added the reference for winforms, but I have errors when I try to show It. Can you write to me an example code for show a windows form?, and where I have to put that code?.
In C# is easiest for me. I don't know C++.
Thanks
-
I dont understand. Why are you asking here if you dont use mastercam?. What are you looking for?
-
I have 2 Robofil 290 with automatic thread. Mastercam have 2 types of post for that machine. the first make a CMD file and several ISO files, and the second is a only ISO file. I use the second option. In the Tech Exchange page in Mastercam. com (HERE) you have those posts for free. But you will have to change some things to work well. You have to be registered of course:
- 1
-
But I have errors when I define the windows form
FrmOffset FrmOF = new FrmOffset();
How and where Can I define de new Windows Forms?
Thanks
-
I never used C++, sorry if I ask a lot.
I have already added the reference and the windows form.
Could you tell me how I show it?
my code works in C#
//creamos la copia del formulario
FrmOffset FrmOF = new FrmOffset();
//hacemos dialog
FrmOF.ShowDialog();Thanks
-
I think I understand that it is a mixture of C# and C++. is it like that? Can Windows Forms be added to it? How can I start them? thanks for your help
-
I have requested access to that forum, I am waiting for It.
Thanks for answer. Must the list have only arcs? Can I have more type of entities?
Thans again.
-
I'm checking that this forum has little movement.
There are several unanswered questions of mine. I imagine the same thing would happen with this one, but just in case here's the question.
Is there a way to create groups or lists of entities (arcs, lines, points...) and be able to call them to use them when needed? in case I want to move or copy them.
Thank you all for the answers.
-
I have found this in C# documentation:
Mastercam.Support.UI.MastercamRibbon.InsertThirdPartyRibbonTabs(string);
String is a ribbonXml file. The XML that defines the Tab and its contents. Can someone give information on how this file is created or where to look for that information? In the examples there is one but there is only one XML file and it is not explained. Can someone explain it ?
Thanks
-
I want to select a chain, make offset of it, change the color to result and translate in Z, ut with the following code what istranslated is the original chain and not the offset one.
Can you help me please
Why the translated is the original chain?
Can I change the settings of the selecction to always select a clockwise chain?
How can I know the nurber assigned to colors?
Thanks
///code used for the C# C-Hook
//Select a chain
var CadOriginal = ChainManager.GetOneChain("Select a Closed Chain.\n\n");//only continue if it is a closed chain
do
if (CadOriginal.IsClosed == false)
{
//If not closed, show message and reselect
MessageBox.Show("The chain is not Closed", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
CadOriginal = ChainManager.GetOneChain("Select a Closed Chain.\n\n");
}
while (CadOriginal.IsClosed == false);//offset chain
var CadTemp1 = CadOriginal.OffsetChain2D(OffsetSideType.Left, 0.2, OffsetRollCornerType.None, 0, false, 0.005, true);
//convert to geometries the chain
var CadDef1 = ChainManager.GetGeometryInChain(CadTemp1);
//point origin
var origin = new Point3D(0, 0, 0);
//point to transalate
var PuntoZ = new Point3D(0, 0, 14.8);
//using the chains
foreach (var Chain in CadDef1)
{
//change color
Chain.Color = 9;
//translate
Chain.Translate(origin, PuntoZ, ViewManager.CPlane, ViewManager.CPlane);
//validate
Chain.Validate();
Chain.Commit();
} -
I know we can use C++ libraries in C#. If I want to create a chain offset is it possible on C#? OR Do I have to use C++ for that? Can you help me?. Thanks
-
Could someone explain to me what differences there are between the different templates?
Thanks
-
With the app Mastercam 2023 Closed The errors are the same. The Paths are in "MastercamSDK.props" and they are correct.
Thanks
-
After follow your instructions the errors ar ok. But I dont Know what is the problem with the new errors. The folders are correct, but it doesnt work. The vs app is in administrator mode. How can I fix the new errors?
Thanks for your help
-
Thanks, I will try to check if all is ok.
Thanks
-
-
-
Tbank you. I will send a mail to.
-
I cannot understand that the information page about chooks does not have access to information in C++ but it does have access to C# and .Net. Is it payment information? How can I access it?
Thanks for answer.
-
On 6/24/2004 at 6:34 PM, Girus said:
Here is a quick and dirty routine that I created to handle this. It does not have all of the protection code that I would like to see.
code:
static void make_manual_entry(
char *szString ){boolean succf;operation op_me_note; // manual entry operation.db_ptr_type d_ptr;memset( &op_me_note,0,sizeof(operation));//op_me_note.op_idn = 1;//op_me_note.slot = 1;op_me_note.opcode = TP_MANUAL_ENTRY;operation_manager (&op_me_note, // IO: pointer to operationOPMGR_INIT, // I: OPMGR_ADD, OPMGR_EDIT, etc&d_ptr, // O: db pointer to operation entity&succf); // O: operation manager successfull// the following operation is necessary because when a second call to// opereation_manager is made with the OPMGR_INIT it atomatically picks up the// previous manual entry text. And if the current text has shorter text it will// end up over the old text and part of the old text will still show in the NC code.memset( &op_me_note.u.manual_entry.comment,0,sizeof(op_me_note.u.manual_entry.comment));strncpy (op_me_note.u.manual_entry.comment, szString, strlen(szString));op_me_note.u.manual_entry.source = 0;op_me_note.u.manual_entry.save = 0;op_me_note.u.manual_entry.gcode = 1006;operation_manager (&op_me_note, // IO: pointer to operationOPMGR_ADD, // I: OPMGR_ADD, OPMGR_EDIT, etc&d_ptr, // O: db pointer to operation entity&succf); // O: operation manager successfull}
I placed this here for anyone who may want to do something similar.
Girus
Hello, I am searching to create a Manual Entry Operation. I have tried this code and it doesnt work, Is it for C# or C++.
I am using C# and I need the code for create a Manual entry Operation.
Can you help me. Peease.
-
I want to create a new Manual Entry operation with only text to insrt in the NC, I'am using C#, can you help me to create one?
I am tryng but my Mastercam sdk level not is good, I,m starting. If you help me I will be grateful.
There should be a book or some information with examples of each part of the SDK, the examples only come with very few things.
Thank you
-
I have been searching about this topic, I need change de number of drill list item. If it is the first index, change to the second one or other. How can I access to that part of the drill operation data?
Sorry for my English
Thanks
-
I'm starting with chooks so I'm very lost. I have downloaded the examples but I can't do what I want. I can now go through all the operations, detect which are drills, but I don't know how to access the drill type (position in the list of drills) and if it can be changed.
Another problem is that I have two forms and I cannot call the second form from the first and return to it when I finish what I do.
Thanks and greetings -
I have a question about the numeric parameters. Can I asign a value or I only can read It?. Thank you
Programmatically Create A WinForm Gui With C++/Cli
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
I am starting on C++/Cli. I have referenced the system windows form, but I dont know how to show a specific winform that I have created. Can you help me please?. I have open the template that create a line. But I dont konw where and how to call it. Thanks for your help.