Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've managed to suppress machinings in a weld assembly. How do i unsupress these features again ??
Our milling machine operator wants a simpliefied part of the assembly with AND without the machinings(supressed). It's the intention to make 2 simplified parts of the weld assy ( one with and one without the machinings).
if (_inventordataService.oInvDoc.DocumentType == DocumentTypeEnum.kAssemblyDocumentObject)
{
if (_inventordataService.oInvDoc.SubType == CLSID_InventorWeldAssembly_RegGUID )
{
Inventor.CommandManager cm = _inventordataService.invApp.CommandManager;
ControlDefinitions cds = cm.ControlDefinitions;
BrowserPane oPane = _inventordataService.oInvDoc.BrowserPanes["AmBrowserArrangement"];
foreach (BrowserNode oWNode in oPane.TopNode.BrowserNodes)
{
if (oWNode.BrowserNodeDefinition.Label == "Machining")
{
foreach (BrowserNode oMNode in oWNode.BrowserNodes)
{
oMNode.DoSelect();
_inventordataService.invApp.SilentOperation = true;
cds["AssemblySuppressFeatureCtxCmd"].Execute2(true);
_inventordataService.invApp.SilentOperation = false;
}
}
}
}
Kind Regards
Johan
Solved! Go to Solution.