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:

DoIT

Members
  • Posts

    3
  • Joined

  • Last visited

DoIT's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you very much for the information. It works fine. I'm going to write some extensions for MasterCAM using WPF GUI + .NET libraries. NETHook2_0.dll is the way to start but as it doesn't provide all the necessary information I need to wrap some low-level c-functions in order to obtain necessary data (such as to get the object ID after it has been built). Could you please give me some hints: 1. how to wrap c-functions correctly in order to call them from .NET code (should I create COM-objects for the low-level functionality provided by CHook SDK and then call them from my .NET code)? 2. will it be easy to do? 3. any traps? Thanks.
  2. It's clear, thanks for the reply. Roger, Could you please send me the pdf document which describes how to set up a C-Hook project in Visual Studio 2010? Unfortunately, my local dealer just gave me the SDK and he knows nothing about additional documentation on how "to prepare" C-Hooks. It would be nice to have any example C-Hook code (Generally I need a guide that could give me clear answers from the stage of setting up a project to the stage of working dll feature). Thanks.
  3. Hello, Could anyone point me please how I could tell one solid from another in .NET code? I have a part file with several block solids which have different names. I'm trying to manipulate with these solids through NET-Hook, but I could not tell one solid from another (I didn't find "name" or "database id" properties in SolidGeometry class or it's base classes). // Get all solids in the part file SolidGeometry[] parts = SearchManager.GetSolidGeometry(); // Loop through all solids foreach (SolidGeometry part in parts) { BlockSolid block = part as BlockSolid; // Here I want to find a solid with the special name, but how? // I would like to have something, like: // if (block.name == "some_name") // { // do something! // } }

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