-
Posts
31 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by Sebcloutier
-
-
I found another way I will remove lead in lead out for this operation it should be ok thanks for your help
-
-
Could you also post the code for the contour and contourchain methods rather than us make assumptions. If you would rather not, zip the project and mail it to me.
I send you private message with zip file
-
here is my code
private void mm3deg3_Click(object sender, EventArgs e) { { //1/8-3DEG Chain[] Uchain = ChainManager.GetMultipleChains("Selection du parcours a machiné", true); Chain rchain; string ncname = ""; string opname = "1/8-3DEG-1"; double depthdiff; double mindepth; bool result; depthdiff = System.Convert.ToDouble(label2.Text); mindepth = System.Convert.ToDouble(label1.Text); { Mastercam.Operations.ContourOperation op = contour(opname); int count = contourchain(op, depthdiff, false, mindepth, ncname, "", Uchain); if (count > 0) { result = op.Regenerate(); } } opname = "1/8-3DEG-2"; Mastercam.Operations.ContourOperation op2 = contour(opname); int count2 = contourchain(op2, depthdiff, true, mindepth, ncname, "", Uchain); if (count2 > 0) { result = op2.Regenerate(); } opname = "FC 1/8-3DEG"; Mastercam.Operations.ContourOperation op3 = contour(opname); int count3 = contourchain(op3, depthdiff, true, mindepth, ncname, "", Uchain); foreach (Mastercam.Database.Chain nchain in Uchain) { ChainDirectionType rev = ChainDirectionType.Clockwise; nchain.Direction = rev; // here I want to remove chain point } op3.Commit(); op3.Regenerate(); mm4deg5.Focus(); } }
-
Thanks i forgot to commit but now I have another problem I try to delete the chain point in Chain.
-
Hi guys, I try to reverse chain. For the first operation the user select counter clockwise chain but the second operation it the same chain but clockwise. I try to reverse or change Direction but it doesn't works.
Chain[] Uchain = ChainManager.GetMultipleChains("Selection du parcours a machiné", true); Chain rchain; foreach (Mastercam.Database.Chain nchain in Uchain) { ChainDirectionType rev = ChainDirectionType.Clockwise; nchain.Direction = rev; }
It's contour operation. I have MX6 and I use VS 2010
Thanks
-
Hi guys, I a project I have this error I don't know why my other dll work great and I don't have this error why ?? I use MAstercam x6 and visual studio ultimate 2010.Warning 1 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "NETHook2_0, Version=1.0.4367.6328, Culture=neutral, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. backmillThanks
-
Hi guys, I use nethook 2.0 in mcx6 and I want to know if it's possible to change the program number in the nethook.
Thanks
-
HI me again, I have 2 sames tools but diffrent lenght. My first operation it's a pocket I use the smallest tool. My second operation it's a pocket and I use the other one. I when I import the first operation the tools was ok but when I import the second operation the tools was the same of first operation and it'S bad. What can I do to avoid this. I try to make 2 operation library but it do the same. If doesn't works i'm think I will be obliged to changet ool in the c# program. Do you have better idea ???
Mastercam x6
nethook 2.0
visual studio 2010
-
I find to create machine group but in this machine group I want to create toolpath group I only found this
public
bool IsToolpathGroup() in support.group in support.defmanager I only found to create new machine group
-
Hi, It's possible to make new toolpath group with nethook 2.0 ??. I make my net-hook with visual studio 2010 et I use mastercam X6. If not can I change machine with net-hook???
Thanks
-
Now it's ok the macro was name like that "cercle_125" I change the name for "cercle125" and now it'S ok
-
I make my macro with visual studio ultimate 2010 for my mastercam x6. My macro was a net-hook and the small icon was 16x16. I don't understand when you say :
For all versions of Mastercam prior to X8Thanks.
-
-
Sorry I speak french so I'm not always clear in my question. So I want to choose point and make circle and do again only press escape when I finish. Thanks Roger
-
I want to do the code again and again stop just when user hit escape. Here is my code
string lvlname125 = "072 - BEARING 3.18 HOLE"; int LVL = LevelsManager.GetLevelNumber(lvlname125); if (LVL < 0) { bool rest = LevelsManager.SetLevelName(125, lvlname125); } Point3D pt = new Point3D(0, 0, 0); int LVL1 = LevelsManager.GetLevelNumber(lvlname125); bool res=SelectionManager.AskForPoint("test",PointMask.EndPoint,ref pt); ArcGeometry cir = new ArcGeometry(1, pt, 10, 360, 0); cir.Level = LVL1; cir.Color = 75; cir.Commit();
Thanks
-
I want to do the code again and again stop just when user hit escape. Here is my code
string lvlname125 = "072 - BEARING 3.18 HOLE"; int LVL = LevelsManager.GetLevelNumber(lvlname125); if (LVL < 0) { bool rest = LevelsManager.SetLevelName(125, lvlname125); } Point3D pt = new Point3D(0, 0, 0); int LVL1 = LevelsManager.GetLevelNumber(lvlname125); bool res=SelectionManager.AskForPoint("test",PointMask.EndPoint,ref pt); ArcGeometry cir = new ArcGeometry(1, pt, 10, 360, 0); cir.Level = LVL1; cir.Color = 75; cir.Commit();
Thanks
-
It'S work but I have the same problem when i create circle in wsc bottom, c/tplane bottom. When I select them for drill operation the drill was mirror example ; circle was x10. y10 z-10. finish a x-10 y-10 z10. I try many thing but nothing works. Can you help me
-
THanks works great
-
I use vs 2010 ultimate
-
I want to make point on center arc in c-hook like drillpt.dll . I use mastercam x6.
-
Hi, I have a problem. When I'm use hst operation the first one it's ok the second one show alarm enable to determine valid toolpath but I only copy the operation and change the depth. I try with anothwr computer and it<s work which paramater or tolerance can affect that.
Thanks
-
Where Can I find guide to help me to go through make simple net-hook. I want to make translate but I does'nt works.
string lvlname = "testa";
short mcview = 1;
Point3D point1 =new Point3D (0,0,0);
Point3D point2 = new Point3D(0,0,1);
GraphicsManager.FitScreen();
GraphicsManager.Repaint();
int lvl = Mastercam.IO.LevelsManager.GetLevelNumber(lvlname);
Geometry[] newChains= SearchManager.GetGeometry(lvl);
newChains.Translate(point1,point2,mcview,mcview);
-
In drill operation I can't I select all geometry on specific layer. Where can I find a guide to help me to make nethook.
Reverse chain
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
Yes it'S works thanks