Community
Interseting..I have the same question...I just recently converted to 2011 Pro, and it appears that the interfernce sections are now a faint clear red...I also need this changed, because you can barely make out the interferences..
Did any of you ever find a solution for this???
This would be extremely helpful, because identifying those interferences are key to my job.
Thanks,
OJ
HII-NNS
Hi,
Ths how I solved this problem :
ObjectCollection oSelectedOccs;
oSelectedOccs = _Inventorapplication.TransientObjects.CreateObjectCollection();
//Perform some operation of
//adding objects to the collection oSelectedOccs.add(componentoccurence)
InterferenceResults oResults = ((AssemblyDocument)_Inventorapplication.ActiveDocument).ComponentDefinition.AnalyzeInterference(oSelectedOccs); if (Highlightset_Collisions == null) { Highlightset_Collisions = _Inventorapplication.ActiveDocument.CreateHighlightSet(); Highlightset_Collisions.Color = _Inventorapplication.TransientObjects.CreateColor(255, 0, 0, 1); //color red } Highlightset_Collisions.Clear(); if (oResults.Count > 0) { string output = "There are interferences between "; for (int i = 1; i <= oResults.Count; i++) { output += oResults[i].OccurrenceOne.Name + " and " + oResults[i].OccurrenceTwo.Name + " + "; Highlightset_Collisions.AddItem(oResults[i].OccurrenceOne); Highlightset_Collisions.AddItem(oResults[i].OccurrenceTwo); } //MessageBox.Show(output); }
The variable oSelectedOccs is an objectcollection of inventorparts that you want to check if they are interfering.
Hopes this helps somewhat.
Cheers,
Mark