Search the Community
Showing results for tags 'entities'.
Found 4 results
Sps82zgz posted a topic in Mastercam C-Hook, NET-Hook and VBScript DevelopmentHello everybody. I am creating a VBS file (in the X4 version) to be able to export geometry to DXF and automatically select the entities to export, I created a .mask file to filter through and select all / only what I need and it works perfectly, but I don't know If it is possible to use that .mask file (filter) within the VBS programming and if possible I do not know the command that I have to use in the VBS programming. In the same way, in case of not being possible and having to make the selection through orders, I would like to know if it is possible to make the selection through different criteria together at the same time, such as Entities (Lines and arcs), color of the entities, levels or even the name of the level. Thanks in advance
coolsas posted a topic in Mastercam C-Hook, NET-Hook and VBScript DevelopmentHi there, is there a quick and easy way to detect/determine the direction (cw or ccw) of a chained arc, depending of the active cplane with a chook? In this Moment I use Mastercam 2019 an Visual Studio 2017. Thank you for an answer an best wishes Karsten
oihannah posted a topic in Mastercam C-Hook, NET-Hook and VBScript DevelopmentWhen 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.