Search the Community
Showing results for tags 'csharp'.
-
We have published new CNC Software official Visual Studio project templates for Mastercam. You can download and install via the links below or from withing Visual Studio search online extensions for "Mastercam". VB.NET NET-Hook Visual Studio 2017 and 2019 project templates C# NET-Hook Visual Studio 2017 and 2019 project templates C++ C-Hook Visual Studio 2017 and 2019 project templates Each .NET project template contains a Wizard interface to allow you to target any installed version of Mastercam and optionally add additional Mastercam API's (ToolNetApi, SimAccessManaged, etc) The C-Hook project templates allow you to select from 3 different C-Hook project types and target any installed C-Hook SDK kit. If you have any questions or suggestions please let us know.
- 10 replies
-
- 1
-
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.
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.