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:
Are there different types of "selected" states for entities?
I ask because, other than using "SelectionManager.SelectAllGeometry()", which highlights the selected Geometry like manual selection, any other type of selection thru code does not highlight the entities.
It seems that only the highlighted entities will get erased by hitting the "delete" key. Selecting entities thru code, and verifying that they are selected, will not be erased when hitting the 'delete' key. And it is also the same for code requiring preselected geometry.
Im bringing this up because I need to preselect geometry thru code. Manually selecting beforehand, or using "SelectAllGeometry", works.
Ive tried 'SelectAllGeometryOnLevel', and SearchManager.GetGeometry. Ive then run a loop to debug.writeline geometry.selected, and it comes back TRUE. I can also rerun the loop and use Geometry.selected=False, and debug,writeline tells me the geometry is not selected.
Im trying to translate, and scale, a large amount of entities. The .net version is prohibitively slow, and Ive found that outputting some on-the-fly vbs works well. However, it only works on geometry that is preselected manually, or preselected using SelectAllGeometry, which highlights the geometry. The selection thru VBS "Chaining" fails the same way .... I either have to manually preselect, or use "SelectAll"
Is there another way ?
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.