Deflandre JY
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by Deflandre JY
-
-
Hi,
We are using Mastercam 2021, we have the same with Mastercam 2020 .We see this problem by running only the code below. Otherwise, the goal is to retrieve for each operation information such as Tools used, planes and axis.
Group[] aGroups = SearchManager.GetGroups();
foreach (Group oGroup in aGroups)
{
if (oGroup.GetParentGroup() != null)
{
if (oGroup.IsToolpathGroup())
{
if (oGroup.Name != null)
{
List<Operation> aOperations = new List<Operation>();
if (SearchManager.IsAnyOperations(oGroup.ID))
{
Operation[] aOperations1 = SearchManager.GetOperations(oGroup.ID);
foreach (Operation oOp in aOperations1)
aOperations.Add(oOp);
}
}
}
}
} -
Hi.
The interface we are developing requires retrieving information from mastercam operations.
We use SearchManager.GetOperations() but that seems to disable some operations.
However, our interface must not modify the model.
Is this normal? The SearchManager.GetOperations() function is it not supposed not to modify the model?
Do you have a solution to avoid this issue?
Thanks !
SearchManager.GetOperations disable some operations. Is this normal?
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
Hi.
Thank you for your answers, but that was not really the subject of my question.
I've minimized my code as below. Only one call to GetOperations(). And this disables an operation. I just wanted to know if it's normal for a "Get..." function to do this and how to find out why my operation is disabled.
public override MCamReturn Run(int param)
{
var List = Mastercam.Support.SearchManager.GetOperations();
return MCamReturn.NoErrors;
}
Thanks.