Creation of Reference set and Moving components to that reference set by using Journal
Creation of Reference set and Moving components to that reference set by using Journal
(OP)
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.
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.





RE: Creation of Reference set and Moving components to that reference set by using Journal
Will that suit your needs ?
RE: Creation of Reference set and Moving components to that reference set by using Journal
thread561-307788: Use of Model Reference set in assemblies
thread561-308516: Best practice for assembly reference set
www.nxjournaling.com
RE: Creation of Reference set and Moving components to that reference set by using Journal
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
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
www.nxjournaling.com
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
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
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
Regards,
Praveen
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
Thank u
Regards,
Praveen
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
Regards,
Praveen
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
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
RE: Creation of Reference set and Moving components to that reference set by using Journal
I am really sorry for making you feel sad. To be frank I don`t have any idea about arrangements how use in NX 7.5. Thanks for your patience.
Thanks & Regards,
Sam
RE: Creation of Reference set and Moving components to that reference set by using Journal
At the least, don't just dismiss an idea becasue you do not know how to do it. NX help should have an explaination of how it works and what you need to do.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Creation of Reference set and Moving components to that reference set by using Journal
Actually I wont use NX frequently in my company. But I am working on manufacturing side., I am having little knowledge on NX. I have a few ideas to customize nx which helps in time saving. Out of that Reference set creation is one.
In fact I failed to explain you, what is my requirement about reference sets. But, you are giving the alternate solutions. Of course, that is good.
My intention to posting this thread is: I asked to help me, In Creating the journal ( where the action of journal should be like, It should create one new reference set and should add all assembly components to that reference set. This helps me in saving time ). Any way you have given me an idea about arrangements. I will work on that.
Thank you so much,
have a nice day.
Thanks & Regards,
Sam
RE: Creation of Reference set and Moving components to that reference set by using Journal
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Creation of Reference set and Moving components to that reference set by using Journal
But getting back to the original issue, since you've already admitted that you know nothing about Arrangements, by insisting on a Reference Set oriented approach, you're basically working AGAINST the way NX was designed to work in the first place. Even if your use of NX will be occasional, it's still to your and your company's advantage to use the software the way it was intended to be used since that will set the proper precedant for those who will be using it more extensively in the future. Old bad decisions can be very costly in terms of the time and effort needed to undo and correct them, particularly the longer that they are allowed to remain part of your day-to-day operations.
I'm just trying to make sure that you're heading in the right direction, that's all.
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
Now you are talking favorable to my post.
Till now I argued with foolish talk for creating new reference set. I realized to use model reference set. As you said in previous reply, assembly components will not add automatically to model reference set. Yes that`s right I want to make that operation automatic either by using journal or grip (or any of your suggestion). Generally we will add components manually to model reference set right. That`s why I thought to make automatic, For more clarity I have attached few images please have a look. (This is for example only)
Please forget about creation of reference set as I previously asked for. In attachments (Image 3) all sub level components 1 to 5 are included in reference set (T/L which I renamed the model reference set). I want to make this operation as automatic. (i.e by running journal or macro it should add all components to the default model reference set. I hope you can get clarity what actually i need.
Thanks john for understanding my need.
Thanks & Regards,
Sam
RE: Creation of Reference set and Moving components to that reference set by using Journal
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.
RE: Creation of Reference set and Moving components to that reference set by using Journal
Thanks & Regards,
Sam
RE: Creation of Reference set and Moving components to that reference set by using Journal
www.nxjournaling.com
RE: Creation of Reference set and Moving components to that reference set by using Journal
I will try to give answer for your question.
If I use arrangements in my workplace. simply I am crossing my company standards. As of I know from last 6 to 8 years we were following by reference sets only, and we didn`t have any disadvantages by using reference sets.
We deal with large assemblies, That a part may contain 20 sub assemblies and each sub assembly may another 5 to 10 child components and so.on.
After finishing our model, It may contain curves and datum`s and CSYS`s what ever it may be. In order to avoid those things in next assembly. We will create reference set and add only components and bodies and we wont add any datum`s or csys. Again we wont stop here by creating one reference set.
Suppose I have a Resistor: ( A resistor which having coils on both ends )
after finishing modeling I will create one reference set and add bodies excluding datum`s and other stuff.
again I will create another reference set based on my requirement. Now, I will add only main body excluding the coils. So, By doing this when ever I do call this resistor with specific reference set, It only visible me what I added in previous. That is very simple.
The same we cant get through Arrangements. I believe that by using arrangements we can re position the child components in top level. Again I am saying Here it is not the point like which one should use either reference sets or arrangements. May be you have a wonderful experience in arrangements,I think that is the reason you are advising me not to go in wrong way . But it is not my company standards. This is the only reason for not using arrangements.
I hope you got the answer now.
Thanks & Regards,
Sam
RE: Creation of Reference set and Moving components to that reference set by using Journal
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Creation of Reference set and Moving components to that reference set by using Journal
Thanks all for your support..
Finally I got the journal code...for creating reference set and adding components and objects to that reference set....
Thanks & Regards,
Sam