Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creation of Reference set and Moving components to that reference set by using Journal

Status
Not open for further replies.

Pravi6

Mechanical
Mar 1, 2013
9
Hi,
This is Praveen. I am new to NX 7.5. I need a journal in which a reference set should be created and all the components in my assembly should move into that reference set. Can u please help me in this issue.

Thanks in Advance

Regards,
Praveen.
 
Replies continue below

Recommended for you

By default all the components in your assembly are put into a reference set named Model.
Will that suit your needs ?
 
Using reference sets to manage assembly components is NOT a recommended approach. Here are two threads (of many) that discuss the "why".

thread561-307788
thread561-308516

www.nxjournaling.com
 
Thanks for your reply Jerry.

I need a new reference set other than model. Let's say i need a reference set named "ASSY" and all the components should move or included in that reference set. Can we create a journal in which the reference set has to be created and all the components should included in that reference set automatically? If it is possible, please suggest me.

Thanks in Advance

Regards,
Praveen
 
WHY are you attempting to create a Reference Set at the Assembly level? What purpose or benefit do you feel that you will gain by doing this?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi john,

I want to create those reference sets in sub-assembly levels. So that, i can easily call those into my major assembly. So, i need those reference sets.
 
That still doesn't tell us anything. WHAT is it that you THINK you will be gaining by doing this versus NOT having Reference Sets in your sub-assemblies? Note that while there is NOTHING preventing you from creating Reference Sets in an Assembly, there is also very little that you can do with these Reference Sets that cannot already be done using fully supported functionality that does NOT involve creating Reference Sets in an Assembly/Sub-Assembly.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi,

I have developed a journal by which desired reference set (Let's say "ASSY") can be created. But i am unable to move the components into this reference set using a journal.


Option Strict Off
Imports System
Imports NXOpen

Module NXJournal
Sub Main

Dim theSession As Session = Session.GetSession()
Dim workPart As Part = theSession.Parts.Work

Dim displayPart As Part = theSession.Parts.Display


Dim markId1 As Session.UndoMarkId
markId1 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Start")

theSession.SetUndoMarkName(markId1, "Reference Sets Dialog")

Dim markId2 As Session.UndoMarkId
markId2 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Create New Reference Set")

Dim referenceSet1 As ReferenceSet
referenceSet1 = workPart.CreateReferenceSet()

Dim markId3 As Session.UndoMarkId
markId3 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Add Components to Reference Set")

Dim nErrs1 As Integer
nErrs1 = theSession.UpdateManager.DoUpdate(markId2)

theSession.DeleteUndoMarksUpToMark(markId3, Nothing, False)

Dim markId4 As Session.UndoMarkId
markId4 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Edit Name of Reference Set")

referenceSet1.SetName("ASSY")

Dim nErrs2 As Integer
nErrs2 = theSession.UpdateManager.DoUpdate(markId4)

theSession.SetUndoMarkName(markId1, "Reference Sets")

theSession.DeleteUndoMark(markId1, Nothing)

End Sub
End Module
___________________________________________________________________________________________
Can u please help me in this issue.

Thanks in Advance

Regards,
Praveen
 
You are still NOT providing any insight into exactly WHAT it is that you've attempting to GAIN by do this. If you give us some idea what it is that you're trying to do, and I DON'T MEAN CREATING A JOURNAL TO MOVE COMPONENTS INTO A REFERENCE SET, then we just MIGHT be able to point you in a direction which will give you want you want without a lot of additional work.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I have one Sub-Assembly. I want to use this sub-assembly in two different assemblies. In the first assembly, i will use the total sub-assembly. In the second assembly, i will use only some of the components of this sub-assembly. So, i want to create two Reference sets "ASSY" and "ASSY1". I want to include all the components in "ASSY" and Some of the components in "ASSY1". That's why i am searching for a journal to create and move the components into a desired reference set. Is it Possible? If so, please advice me.

Regards,
Praveen
 
Why are you NOT using Arrangements in your sub-assembly? You can create as many Arrangements as you wish in an Assembly and these Arrangements can control both the content (what Components are included) as well as how they are positioned (the same Components can be shown in different positions in the same assembly by using different Arrangements).

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Thanks for your suggestion. But, i think it will be easier for me if i use reference sets. That's the main reason for searching that journal which creates a reference set and include the components in it.

Thank u

Regards,
Praveen
 
WHY DO YOU THINK IT WILL BE EASIER TO USE REFERENCE SETS???????

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Have you ever actually attempted to use Arrangements to accomplish what you describe as your desired behavior?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I have used the Entire Part reference set. But, while i am calling that sub-assembly into my major assembly, that sub-assembly part is coming along with datums and curves. But i don't want those datums and curves. This makes me to search for a journal by which a reference set is created and the all the components(only) should include in it automatically.

Regards,
Praveen
 
Why are you insisting on this insanity of using Reference Sets to perform a task for which they were NOT designed and then bitching about how they're not working the was you want them to, when there is a fully supported scheme which WAS designed for that very task?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi John,

Thanks for your reply.

I am also searching for same type of help which (pravi 6) asked you. In my view, it is right what you said. But, I have seen some organisation which is there requirement for what (pravi6) question. May he is asking about is requirement. I will try to explain you what is the requirement ?

See, generally we no need to create any reference sets, by default it will contain (Model and Entire Part). But, In some organisations they will create another reference set as per there standards and decline all datum`s and curves from that reference set and include only objects and components. I think he is also asking, how to make these procedure automatic using journal. John if you can please help us in creating journal which creates new reference set and to include all sub level components and objects or bodies to that reference set.

Thank you john for your patience.


 
I'm sorry but I've already wasted all the time that I'm going to with this thread. If someone else wants to help these guys, be my guest but I've got more important things that requires my time.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Pravi and Shanmuk,
You obviously have no idea of the limitations that using reference sets can cause. Arrangements was designed to overcome some of those limitations and is the preferred method of doing what you want in moving forward with NX. I used to do a lot with reference sets to get ny assembly to have what I wanted, but that was pre-UG V10 whihc was 20 years ago. Since V10, UG and NX have been enhanced to reduse the need for any reference sets at any assembly level. Reference sets were never intended to be component filters w2hich is why the introduction of arrangements was a big jump forward in using pieces of an assembly. To be honest, I don't see how you can use only 3/4 of a sub-assembly as 1 component in 1 assembly and use the whol;e sub-assembly in another assembly. To me, that should be 2 unique sub-assemblies with different part numbers.

As a side note, I have known John for almost 30 years and no one knows how to do things in NX beter than he does. If he tells you that your approach is wrong, you really should listen. I think this is the first time he has told anyone in this forum he would not help, but you guys were not listening and I would be frustrated, too.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor