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:

DeuceNumeroUno

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

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

DeuceNumeroUno's Achievements

Newbie

Newbie (1/14)

  • One Month Later
  • Week One Done
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. If I'm thinking correctly, the Mastercam.IO.Interop.SelectionManager.TranslateSelectedGeometry is using the translate_silent function. bool SelectionManager::TranslateSelectedGeometry (int geometryId) { auto spEntity = std::make_unique <ent> (); bool succ = false; GetEntityByID (geometryId, *spEntity, &succ); if (succ) succ = MoveEntity (spEntity.get ()); return succ; } bool SelectionManager::MoveEntity (ent *entity) { bool succf = false; p_3d fpt = entity->u.sld.min; p_3d tpt; tpt.Set (fpt[0], fpt[1], fpt[2] + 1); translate_silent (&entity->eptr, true, 0, fpt, tpt, 1, 1, &succf, true); return succf; } #pragma endregion }
  2. Seem to still be having the same issue using this method. Unified morph op says the translated geometry is not a surface and going into the parameters and then regenerating the op places the cuts where the geometry was originally. Here is my code: var geometryFound = SearchManager.GetGeometry(); var geoIDs = new List<int>(); foreach (var entity in geometryFound) { geoIDs.Add(entity.GetEntityID()); } foreach(var geo in geoIDs) { Mastercam.IO.Interop.SelectionManager.TranslateSelectedGeometry(geo); }
  3. Sounds like that could help! Do I need access to the c-hook SDK to be able to view that example? Looks like I don't have permission to view the C++ downloads page on the mastercam website.
  4. I am making a c-hook using c# that includes translating the part along the z axis. After translating it, it shows an error when trying to regenerate the ops that use a surface as geometry. This is using SelectionManager.SelectAllGeometry and GeometryManipulationManager.TranslateGeometry

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