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:

oihannah

Verified Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

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

oihannah's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Fresh eyes in the morning sorted it. I was iterating over the list of drill points and adding them to the next operation. Seems my error was adding them as references. Creating new drill point objects using the ArcData or PointData from the points in the first operation cleared it right up. Thanks again.
  2. I will asap, currently on mobile and the shop computers are local network only. Thank you for the incredibly quick response
  3. About done with a "hook" that allows me to pick drill points once and generate spot, drill, and tap cycles in one shot. I have it all working except this last bit. Currently copy drill points from first generated operation for the other two, but this is resulting in the locking of the depth field within Mastercam's toolpath manager window. The values set via code are correct, but greyed out and always post as if the depth was Z0. Have fiddled around quite a bit but I cannot get this solved. I appreciate the time and advise.
  4. I want to move them to another level and or plane as part of a larger 'Hook' that will sort all entities in a cad file. The normal geometry isnt an issue, and can be sorted with a wide range of filters. I can easily leverage my old vbscript to handle grabbing all the drafting entities and shifting all of them to another level. I was just hoping there was an updated way to perform the same task, with the possibility of doing aome filtering along the way. Do drafting entities have any kind of recognizable type? Is there currently any way to get the underlying integer value of "EntityType" on a given entity? Perhaps I can implement or override a method to pre filter entities. Currently any method that implements the 'Typecaster' will throw an exception upon finding unknown geometry types. Solution for now seems to be isolating draft entities first, then filtering remaining entities to avoid this.
  5. When using VBScript, more precisely the 'StartDBSearch' function, I can easily find draft entities by isolating entites by looking for entities where GetEntityType = 64. I cannot find similar functionality using the new C# NetHook API. Is there a way more similar to the referenced VBScript to locate and select only drafting entities. Am I missing something simple? I attempted to circumvent the problem by firing an FT command using the ExternalAppsManager class to "QuickMaskAllDraftingAll" This works to select all drafting entities, but attempting to move them or work with them as normal geometry results in the following error message. Box Title - "Error: Typecaster::GeometryCaster" Box Text - "One or more of the geometry entities could not be added - Typecaster encountered an unknown geometry type I dont see (I could be missing it) any other entity types in the API, nor do I see any methods for dealing with drafting entities directly. Thank you again for your time.
  6. Excellent, thanks Roger. If it works like it did in vbscript, and it sounds like it does, I should be almost home free. Thank you both again for your time.
  7. Thanks for the reply Mick. I have found the more updated project file on the VS marketplace, I had already pointed to the new dll in mcam2017 so all is well there. Still having trouble with isolating drafting entities via selection mask, but I could be missing something simple in that regard. Is there a method for running function table commands like there was in vbscript? I also appreciate your looking into access for the docs as well. Until then, I will keep rooting through the dll from within visual studio to expose what I need.
  8. Greetings all, find myself here often when looking for answers, first time posting. Questions follow my short rambling below. After altering many posts and cobbling together a functional aggregate head post I started looking into writing vbscripts. I accoplished what I set out to, digging through swaths of this site in particular to learn what was available to me. During that time it became more and more clear that vbscripts were on their way out, while Net-Hooks using c# or vb.net seem to be the way of the future. Throughout all these projects, documentation has been very sparse. Usually requiring 3rd party documents or in the case of writing Net-Hooks with c#, digging through the dll files included with the project to decode functionallity. I do not own my own mastercam license seat. As far as I can tell, all the real documentation sits behind the mastercam.com paywall. I have regiatered an accout, without linking a product, and still get re-routed when attempting to access any documentation. Questions: 1) Is there any alternative method to accessing the Net-Hook documentation? (Biggest sticking point is being unable to isolate drafting entities. I was able to accomplish this using a vbscript after some fiddling. Essentially ran the quickmaskall for drafting entities then searched for all selected entities) 2)Stumbled onto Mick's GitHub through my searching. Are the examples available there what falls under the open source license? (Cant imagine it is the NetHook Api.) 3) The most current project file available to download for visual studio says it has beem updated for X8, am i to understand we have not yet reached compatability with mc2017? Thank you all for your time. Any example projects would be most helpful and I am happy to return the favor.

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