Hi!I want to automatically generate ComponentGroup with proximity.CommandContextMenu in Assembly Navigator
First i have tried to create a normal ComponentGroup with: (C#)
NXOpen.Assemblies.ComponentGroup cg = theSession.Parts.Work.ComponentGroups.CreateComponentGroup("TestName");
That is working really fine for me, but i can´t find any information for this Proximity option except of the Class Library.
SearchResultElement sre = new SearchResultElement;
SubsetBuilder sb = theSession.Parts.Work.ComponentAssembly.Subsets.CreateSubsetBuilder(new Subset());
ProximitySearchTerm pst = sb.Recipe.CreateProximitySearchTerm(SearchTerm.SearchTermLogicType.Include, sre, add.ProximityValue, true);
That is all what i have found out, but i have no idea if I am right or if that is completely the wrong direction.I also thought i could execute the command itself but i also found no information about that.Can anyone hook me up with some example code or some documentation about this topic? I also tried out do it via Journaling but the Assembly Navigator is not supported, no recording there and the command is only displayed via comment.
Have you searched the Solutions database?
(maybe search on "ComponentGroups")
Also search the examples included with NX install:%UGII_BASE_DIR%\UGOPEN\SampleNXOpenApplications
Hope you find something...
Production: NX10.0.3.5 MP16/TC11.2I'd rather be e-steamed than e-diseaseled