srbeyke

Verified Members
  • Content count

    55
  • Joined

  • Last visited

Community Reputation

1 Neutral

About srbeyke

  • Rank
    Member
  • Birthday 10/26/1954

Recent Profile Visitors

333 profile views
  1. srbeyke

    Script examples needed

    Thanks for all your efforts. Perhaps some others will offer some more solutions. I am still looking, digging, and learning. Steven
  2. srbeyke

    Script examples needed

    Jeff, I have been doing some digging as well. I am getting some ideas from something called "modelessdialog" . You might take a look and see if you get any ideas as well. "dialogresultok" Steven
  3. srbeyke

    Script examples needed

    Jeff, That is exactly what I am doing. The result is that the surfaces are created, but awaits a prompt to move on. Any ideas? Steven
  4. srbeyke

    Script examples needed

    Can you give me your reasons? Is C# better at what I am tying to do? Thanks
  5. srbeyke

    Script examples needed

    Hello all, Thanks to everyone who has provided any assistance to me. I have been making progress (believe it, or not) and I am starting to grasp some of the more simple concepts of Visual Basics and the Masteram API. I am trying to create surfaces from a single solid that has been selected. The surfaces are created, but a prompt appears on the screen "Set options, press <ENTER>, Apply, or OK". I wish for my project to enter the appropriate response and keep moving. Can someone point me in the direction I need to go? Again, all help and advice is much appreciated. Steven
  6. srbeyke

    Script examples needed

    Jeff, I made a few additions to allow me to test the operation. I compiled it and tested it. WORKS GREAT! I can now expand on this and hopefully get a few of my scripts translated. Many, Many, thanks for your efforts. Steven
  7. srbeyke

    Script examples needed

    Jeff, I deleted my code to make way for your code. I cut and pasted your example. I still had an error in the "For Each" line. So I added an "imports mastercam.database" and it seems to have cleared the problem. I think the "imports" statement in VB is similar to the "Using" statement in C#. I will test this as it is, and then start the process of tweaking it to do what I hope to do. You have been a great mentor and I appreciate the help. regards, Steven
  8. srbeyke

    Script examples needed

    Jeff, Here is a short and clean version of the code I am working on: Dim WireFrameMask = New GeometryMask(True, True, True, True, True, False, False) Dim allWireframeEntities = SearchManager.GetGeometry(WireFrameMask) For Each (Dim wireframeEntity In allWireframeEntities()) Select Case wireframeEntity Case PointGeometry point ' Do something with the point geometry Case ArcGeometry arc ' Do something with the arc geometry Case LineGeometry line ' Do something with the line geometry End Select Next The first and second lines seem to be correct. No errors shown. The third line containing the "For Each" statement returns several errors including : "expression expected" "')' expected" "number of indices less than the number of dimension in indexed array." My guess is that the WireFrameEntity is not properly dimensioned or something. I tried to use your example as a guide, but I have obviously missed something . Thank you for taking the time to assist., me Steven
  9. srbeyke

    Script examples needed

    Jeff, I would be glad to post what I have, but Give me just a little time to clean up my mess so don't look like the total idiot that I probably am. Steven
  10. srbeyke

    Script examples needed

    Jeff, I must be as dense as a block of lead. I cannot get my system to allow me to enter the code without producing errors. I am sure this is due to my inexperience with both the MASTERCAM API and the VISUAL BASIC 2015 that I am using. I am attempting to take VBSCRIPTS that have been working well and translate them into nethooks. I initially thought it would not be as difficult to translate scripts that were proven to work. If there Is anything additional you can add It would be very helpful. best regards, Steven
  11. srbeyke

    Script examples needed

    Thank you for the example. I will work with it and see what I can do. If anyone else has something to share also, I would very much appreciate it. So much to learn... Steven
  12. srbeyke

    Script examples needed

    Hello all, I am progressing with converting from VBSCRIPT to using VISUAL STUDIO to create nethooks. I am currently trying to convert one of my scripts to a nethook. Since the script has been working well, I thought it a good project to start with. Can someone please pass along a project that shows how to do the equivalent in visual basic as the "Startdbsearch" / "Nextdbsearch" routine did in VBSCRIPT? I would like to select all existing geometry and sort it out. I am still trying to get an understanding of the the API. Thanks for any help provided. Steven
  13. srbeyke

    Script examples needed

    Jeff, I finally got the download. I logged on, but did not find the files. I contacted my retailer and he had the same issue until he "jiggled the handle"\ by refreshing the "Mastercam Version" window a few times. Thanks again, will make for some interesting reading. Steven
  14. srbeyke

    Script examples needed

    Jeff, Could you please post a link to where you found the API REFERENCE? I have been searching for the past half hour and have not found it. Thank you Steven
  15. srbeyke

    Script examples needed

    Jeff, Thank you for following up. I did locate the sample files on the website. The issue may have been that I didn't log in, or something. I did get VISUAL STUDIO up and running, and was able to install the sample project. As I mentioned to my retailer, this must have been a training exercise in itself because the projects were from a previous version and all the data paths had to be changed as well as some other references. I did get a project to compile and copy the files into the chook folder. I still get a "COM" error when trying to DEBUG. I am looking into that as time permits. The project compiled with no errors or warnings so I take that as a good sign. I will go and try to find the API reference you mentioned. I believe that may be my key. After kicking the curb for so long, I may now have a toe-hold. Thanks again. Steven

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