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:

LMVUICHARD

Verified Members
  • Posts

    21
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LMVUICHARD's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Wow, I hadn't seen these new improvement!! Thank you very munch for your incredibly quick answer!.. Efficient and very helpfull!!! Thanks again!
  2. Sorry, i've send my message before finishing it... One of our customers ask us to have a small application to automatically create lines on the edges of a stock model manually defined, like this: With OperationsManager.JobSetupStockOrigin, and OperationsManager.JobSetupStockSize that's easy to done But one problem remain: if operator change the stock model origin, how it will be possible to retrieve it? Thanks in advance...
  3. Hello, One of our customers ask us to have a small application to automatically create lines on the edges of a stock model m
  4. Wow… thanks for the informations. Roger as asked, i've send you an email. Thanks for all!
  5. I meet some dificulties with the SearchManager.GetOperations Method. It seems that Method run only with milling operations. If i try to run it with a basic lathe machining file, with some turning operations and some drilling, the code below returns only the drillings operations. With a milling file, it's run properly, but impossible with a lathe file (i don't have try with a wire file, but it will be probably the same). I have try with some modifiers, (you can see in comments), but result is the same. What is the way in NetHook to load an array with really all operations, not depending machining technology? i need only access status (get) in the Msbox, and get or set only posting, displayToolpath. Its very easy to test, the code is only to paste in a standard Mastercam vb.net template, and i join the mastercam test lathe file too. Thanks in advance Mastercam version:2020 Code: Private Sub OnOkView(sender As Object, e As EventArgs) Handles buttonOK.Click Dim Tl As Tool = Nothing 'Dim Optp As OperationType = Nothing 'Dim Operationss = SearchManager.GetOperations(-1, -1, True, Tl) 'Dim Operationss = SearchManager.GetOperations(True) Dim Operationss = SearchManager.GetOperations() For IndxBcl = 0 To Operationss.Count - 1 If Operationss(IndxBcl).Selected = True Then MsgBox("Opération ID:" & Operationss(IndxBcl).GetOperationID() & " Name:" & Operationss(IndxBcl).Name & " Tool:" & Operationss(IndxBcl).OperationTool.Number & " Posting:" & Operationss(IndxBcl).Posting & " Display:" & Operationss(IndxBcl).DisplayToolpath & " Dirty:" & Operationss(IndxBcl).Dirty) End If Next End Sub Julien-LMV2.mcam
  6. Thanks for your answers Byte (Peter?)! For the bitmap side, I have already tryed to use the windows graphic management. But there is a big issue with 4K screens (3840x2160). To manage with these, it's mandatory to make some additionnal declarations in the dot.net project (Add a manifest file, make some declarations (Win10 app, Dpi Aware app, etc..). https://docs.microsoft.com/en-us/dotnet/framework/winforms/high-dpi-support-in-windows-forms I have try to do it and that run normally on a stand alone windows form. But when i try to do that inside a NETHook project, and run it inside Mastercam, that's wrong, these declarations have no effect and all cursor position or windows dimensioning refers to a screen resolution with 1920x1080 one quater of the real screen... It's not possible or I have not been able to properly insert the statements. I believe that in any case the app inherits The Windows settings of Mastercam, and I can not change them. That's the reason I want to try with NetHook commands, I hope that will gave a different result. For the other side, sorting of Mastercam entities, for sure, there is many ways to do that, If it's possible to retrieve the view coordinates of user's box, i think it will be easier, i have some ideas to achieve that (most based on arrays, yes...). Thanks for your help!
  7. Thank you for your quick answer. Probably, one again more, I’ve gave you bad explanations, sorry my English isn’t, one again more, very clear… It's a part of a big customer project we have, and to solve it, we are looking for the better solution. Inside this project, it can be a way if it's possible to make somes extractions directly Inside a Mastercam session that's the reason i try to test that. What I want to do: - Ask the user to make a box selection - Letting him to do that on the graphics screen area - After it’s done, retrieve the box corners values the user has done - With these values, launch the two treatments I need, on Entities and on bitmap image. I think I have the ability to do that. I have seen the SelectionManager.WindowSelect method, but it’s not what I want. With that I must give the corners coordinate, not retrieve the user's one, it’s exactly the reverse… As asked, I've send an e-mail at [email protected] with more explanations. Thanks
  8. Hello, Is it possible to retrieve the corners coordinates of a user box selection ? (in view coordinates AND screen coordinate, for a projected application, i will need the both...) For example, after a line like this : SelectionManager.BoxSelectGeometry("Select the holes", New GeometryMask(True), 1) How is it possible to know the corner position of the user selection box? I have try to use and understand the "McUIEvent.GetEvent Method", without success. I don't understand how i must use the UIEventData Class, Is it possible to give me some example with this Method and this class? Thanks in advance! I use VS2019 Vb.net, with Mastercam 2020
  9. Hello, I use Mcam 2020 Version, and try to make some applications with Vb.net and VS2019. I have try to create a multi-lingual application, with separated language files. First i have try to make a basic application with a simply windows form: i have add to my project three resources files: On each, two values: AppMess.resx: Button1 | Button1 Label1 | Label1 AppMess.en.resx: Button1 | French Label1 | TITLE AppMess.fr.resx: Button1 | Anglais Label1 | TITRE I have add a very simple Form (Form1) to my project, with only one Label and one button, and write this code: Imports MultilingualAPP.My.Resources Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load My.Application.ChangeUICulture("en-US") My.Application.ChangeCulture("en-US") Call actualize() End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim RM As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1)) If My.Application.UICulture.Name = "en-US" Then My.Application.ChangeUICulture("fr-FR") My.Application.ChangeCulture("fr-FR") Call actualize() Else My.Application.ChangeUICulture("en-US") My.Application.ChangeCulture("en-US") Call actualize() End If End Sub Private Sub actualize() Label1.Text = AppMess.Label1 Button1.Text = AppMess.Button1 End Sub End Class That's ok, each click on the button changed the form text language. I have try to do exactly the same thing in a NET-Hooks C# and VB.NET project examples. But in this project, no text change, that's only the default text (AppMess.resx) who is called... What is wrong? Is there some modifications to make to the project? What is the way to create a Multilingual application in a MC NET-Hook project? I try to join my two trials, hope that will be usable... Thantk's in advance! MC_MultilingualAPP.zip MultilingualAPP.zip
  10. Thanks for your answer! I work on Mcam2020. Never had try to code in C++ and neither used the SDK package. i only try to code on vb.net with Net-HOOK, unfortunately... Do you think it would be easy to create a C++ dll called by a vb.net program to do that? Do you think that would be possible for a beginner like me? C++ is it a part of Visual Studio or another standalone software (sorry, I don't have made any search, it's only to know if it's easy to make some tests)? is existing some programming examples arround geometry manipulation and groups in C++?
  11. Hello, I have a question about geometry groups: With Net-Hook, is it possible and what is the way to create a geometry group, add and remove entitys on it, name it or rename it? I need to manipulate many entitys, (points, lines arcs splines, surfaces, solids, meshes...) and it would be easier to group them through a group. These entitys can be selected by the user or come from the result group. In fact, i need to do with Net-HOOK, what the geometry group manager does (New, name a new group, and add some entitys on it). In the on line documentation, i have found many information about toolpath an tool groups, but nearly nothing about geometry group... And nothing too in the on-line examples... Thanks in advance for your help!
  12. Big thank you for your contribution Peter! For the moment, i'm just in exploration of the NetHook capabilities. But what you write, and other tips you've posted gave me want to explore in addition on sdk and Chook... I'm more used to Vb (Sorry…). But i hope i can understood quickly the C (++ and #) basics keys... at least i can try! Now the problem for me is to find enough time to read, write and test between possibilities... Thanks to you!
  13. Yes, i know this option, but it create ALL edges in the model, for only few needed... Cleaning and sorting after is not shorter compared to create some. Create some edges it's not really a big deal, but it's make the application less "Fully native solid integrated"... Many users, coming from CAD solid world, don't understand it be needed to create wireframe geometry before all... But thank you for your proposal!!
  14. Thank you very much for your quick answer, despite its content... decidedly, i'm a little bit unlucky with Net-Hook projects! Have a nice day!

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...