How to create reference sets(Name: MODEL)for all the assemblies, sub-assemblies and parts in NX7.5?
How to create reference sets(Name: MODEL)for all the assemblies, sub-assemblies and parts in NX7.5?
(OP)
Please help me with a journal to create reference sets in the name "MODEL" for all the assemblies , sub-assemblies and components in NX-7.5.





RE: How to create reference sets(Name: MODEL)for all the assemblies, sub-assemblies and parts in NX7.5?
using System;
using NXOpen;
public class NXJournal
{
public static void Main(string[] args)
{
Session theSession = Session.GetSession();
Part workPart = theSession.Parts.Work;
Part displayPart = theSession.Parts.Display;
// ----------------------------------------------
// Menu: Format->Reference Sets...
// ----------------------------------------------
foreach (var eachPart in theSession.Parts.ToArray())
{
Session.UndoMarkId markId4 = theSession.SetUndoMark(NXOpen.Session.MarkVisibility.Visible, "Edit Name of Reference Set");
ReferenceSet referenceSet1 = eachPart.CreateReferenceSet();
referenceSet1.SetName("MODEL");
int nErrs2 = theSession.UpdateManager.DoUpdate(markId4);
theSession.DeleteUndoMarksUpToMark(markId4, null, false);
}
// ----------------------------------------------
// Menu: Tools->Journal->Stop Recording
// ----------------------------------------------
}
public static int GetUnloadOption(string dummy) { return (int)Session.LibraryUnloadOption.Immediately; }
}
Mukundh
RE: How to create reference sets(Name: MODEL)for all the assemblies, sub-assemblies and parts in NX7.5?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.