×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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.

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

By default all the components in your assembly are put into a reference set named Model.
Will that suit your needs ?

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

(OP)
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

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

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.

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

(OP)
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.

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

If you want ALL the components in this new reference set, why not use the existing "Entire Part" reference set?

www.nxjournaling.com

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

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.

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

(OP)
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

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

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.

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

(OP)
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

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

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.

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

(OP)
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

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

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.

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

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.

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

(OP)
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

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

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.

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

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.


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

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.

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

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

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

Hi Ben Loosli and John,

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

HAve you ever had a training class on using NX? If you are trying to learn it on your own, your company is wasting money by NOT training you to use the software properly. Traing is too often condsidered an expense when it should be considered an investment. Your company invetsed thousands of dollars in each seat of NX, training is a small amount to pay to get the most from that investment.

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

Thanks for your suggestion,

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

If NX is set up properly, there is a default reference set in every model that contains all features. I am pretty sure it also contains all components of an assembly. Why create something that the software already does for you?

"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

By default, Components are NOT automatically added to the Model Reference Set (since it's not recommended), however, you can set an option in Customer Defaults which will override this.

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

Yes John,
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

I understand WHAT you WANT to do, I just can't understand WHY you WANT to do this. You've never answered the question, "What is it that you think using Reference Sets will give you that you can't get using Arrangements?" Until you can answer that question... And don't come back with something related to the notion that since you've never worked with Arrangements before you're going to have to use Reference Sets which you seem to somehow be in love with, which I can't really understand how that can be since you've already admitted that you're not all that familiar with NX to start with. SO, are we going to get an answer to WHY?

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

Again you started about arrangements.

Thanks & Regards,
Sam

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

And again, you avoided the question...

www.nxjournaling.com

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

Ok john,

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

Company standards based on what NX was capable of '6 to 8 years' ago should be updated to account for changes in the way the software works. Every release of NX should see a revision to your standards and procedures to take advantage of the power being given by that newer version of software.

"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

Hi,
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources