Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX1973 Journal Quest

Status
Not open for further replies.

Kenja824

Automotive
Nov 5, 2014
949
I apologize if this is asking for a difficult one to make. I am hoping if it is a tough one that someone will take it as a challenge. lol I am also hoping someone already has something similar.

We have what is called a Datum File that has multiple files together. There are around 6,000 spheres that are attributed. We need a way to hide and show bodies according to attributes they might have.

This is a list of attributes these bodies might have....

USAGE_BT1CX_FRT_FLR
USAGE_BT1CC_FRT_FLR
USAGE_BT1FG_UBODY
USAGE_BT1UG_UBODY
USAGE_BT1UG_FRT_FLR
USAGE_BT1FG_FRT_FLR
USAGE_BT1CX_FRT_COMPT
USAGE_BT1XX_FRT_COMPT
USAGE_BT1CX_UBODY
USAGE_BT1CC_INR_FRM_REFINE
USAGE_BT1CC_INR_FRM_VALUE
USAGE_BT1FG_OTR_FRM
USAGE_BT1FG_INR_FRM

The bodies might have one of these attributes or multiples of them.

When they have the attribute, they seem to always have the value "TRUE". I think it would work if the journal just looked for the attribute itself, but it is possible the value is important.

They would like to have a way to hide all but the ones they want to use, according to these attributes. I would picture having a pop up with this list of attributes and a check box in front of them, so they can just check the ones they want to see, and all others would be hidden.

However, if that is too difficult, if they could even have a drop down list and select only one to show and hide all others, that would work. Check boxes would be awesome, but either would make them happy.


NOTE: This would need to blank bodies in either the current work part or other parts in the assembly.

It would also help if there was an "All" option in case they want to turn them all back on. This is not necessary though, because they can use SHOW ALL. I could just see a time in the future where they might have other things hidden like product or something and they wouldnt want to unhide all.

This list is the attributes the journal would need to search for, but in the check list or drop down, it might be better on their eyes if "USAGE_" would not be there. Just so long as it looked for the correct attributes.



Hope everyone is staying healthy and doing well.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Replies continue below

Recommended for you

Hi
Are all the solid bodies in one single part file (or) Is it an assembly having different parts with these solid bodies?
 
Hi Ram K;

Thanks for asking. I was under the wrong impression and your asking made me go double check. I am told that they all reside in the same file. A file called the Total Vehicle Datum File. All the separate files are synced to this one file.

So yes, they all reside in one single file.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
You gotta love when someone doesnt fully explain what they want huh?

Just learned that the list I added is only an example list. There are like 48 different Usages, plus they will be adding more in the future.

If possible, I would ask for room for 60+ or directions how to add more when needed. I will not ask you to type out all the usages. If someone can make the journal so it simply has USAGE-1 USAGE-2 etc... I will go in and change them all.

ALSO...

I think I am seeing how to create this using macros. So if this is a problem, do not worry too much on it. I would much prefer to have a journal version over a macro, but it looks like I can give them something on my own that will at least do the job, if not as nicely done.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Just an update. We had an old file using a UTD file with macros. I was able to manipulate this to do the job. It is not perfect. It pops up a window with 48 icons in it and they can pick the one they want.

The macros will first Hide all solids and then Show any solids with specific attributes.

The problem is if they hit a button for an area that there are no bodies with that attribute, it will leave the selection window open. When you close it, all bodies will stay hidden and it will not work right again until you unhide at least one body for the macro to have something to hide again.

I am not a fan of Macros as I fear the next update could always break it, but it gets the job done.

A Journal version with a drop down list or check boxes would definitely be cleaner and more trust worthy, but only do it if you want to and have the time, as we do have something that seems to work for now.

Thanks.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Hi
It requires usage of block UIStyler dialog (Attached image) box with NXOpen combination to solve the requirement. Please create a dialog box as per attached image. I am able to solve the requirement with NXOpen C# API.
In case of questions
Ram K
ramkan8@yahoo.com


ShowOnly_zk2crw.jpg
 
To be honest, I have no idea how to create a dialog box. I will have to look into that.

Looking at the one in the image, it makes me wonder how long it would be if it had 50+ options. Would something like this be hard to create with multiple columns? Likely if I figure out how to make the box I will answer that myself. lol

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
I found how to create a dialogue box through the developer tab. However it does not seem we have a license that I can save it or anything.

Also, I messed with it some just for the experience and knowledge and I could not figure out how to do something particular. Because we currently have 48 options and more will be added in the near future, I was curious to create a dialogue box that would give a list of programs (BT1CC, BTIFG, etc...) that will show up collapsed and if you expand them you would get all the options with the check boxes. I could not find a way to create a collapsible list much less how to place toggles inside another option.

But in the end, it wont matter if we dont have the license.

Like I said, what I created does seem to get the job done. It is not optimal, but it works at least. For now. lol

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Ken, I am not able export .dlx file (Dialogue box in the image) from my office network. In case if you want me teach pls contact ramkan8@yahoo.com.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor