Cancel
Showing results for 
Search instead for 
Did you mean: 

BlockStyler Select Object Filter Mask for Universal Connection

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi,

 

I have a Select Block in BlockStyler and I need to add a MaskTriple filter to the selection. Generally, I found the object type and subtype value in uf_object_types.h and uf_ui_types.h files.

 

I want the user to be able to select only universal connections (Bolt, Bushing, Kinematic, etc.). Where can I found those constants  for the MaskTriple filter ?

 

Regards,

9 REPLIES 9

Re: BlockStyler Select Object Filter Mask for Universal Connection

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If you really can't find them elsewhere, I'd create a part with them, then a little journal to pick them & report their type/subtype.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: BlockStyler Select Object Filter Mask for Universal Connection

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi Ken,

 

I do an object cycle in my FEM and I found that all universal connections has type = 95 and subtype = 0. But I couldn't find that type/subtype combination in the uf_objects_types.h file or something similar.

 

And it is strange that all have the same sybtype (=0). So Bold, Bushhing, Rivet, etc. have the same subtype, Weird no ?

 

Thanks,

Re: BlockStyler Select Object Filter Mask for Universal Connection

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

doing a quick search in the \ugopen\ folder on "95", it appears this object type does not ahave a #defined equivalent (unless there is a "base" number that is offset, e.g.

#define UF_SOME_OBJECT_TYPE_BASE 90

#define UF_OBJ_TYPE_YOU_WANT (UF_SOME_OBJECT_TYPE_BASE+5)

 

You might want to report that to GTAC.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: BlockStyler Select Object Filter Mask for Universal Connection

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Ken,

 

I tried to add the following filter to my Select block, but nothing happens:

 

Selection.MaskTriple(95, 0, 0)

 

Elias.

Re: BlockStyler Select Object Filter Mask for Universal Connection

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I'm sure you've already seen this (taken from the uf_object_types.h file):

#define UF_extended_displayable_type             95      /* Reused in NX9 */

/* Prior to NX9, there was a limit (UF_max_entity_type) on the total number of object types. This limit has been removed in NX9. UF_extended_displayable_type is a object type that stands for all the displayable object types over UF_max_entity_type (henceforth called extended displayable object types). This is just a dummy type to represent all the extended object types and part files will not have objects of this specific type. Cycling APIs that were written prior to NX9 (UF_OBJ_cycle_objs_in_part and UF_OBJ_cycle_by_name_and_type) will return all the displayable objects of type over UF_max_entity_type (the so called UF_extended_displayable_type) when UF_extended_displayable_type is passed in as input. */

I'm not 100% sure what it means, but I'd guess your universal connection object is an 'extended' type and the API is only returning 95 and not the true type number.

 

Edit:

What version of NX are you using?

Are the objects you are selecting related to CAE or motion simulation? If so, you might need to use the UF_pseudo_object_type.

Re: BlockStyler Select Object Filter Mask for Universal Connection

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

NX1847 IP 2200. It's for CAE (Pre/Post)

 

I need to show the Universal connection only in the selection object filter

Re: BlockStyler Select Object Filter Mask for Universal Connection

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

As for the UF-pseudo_object_type, I see onlt elements, nodes, element face and element edge. No universal connection.

Re: BlockStyler Select Object Filter Mask for Universal Connection

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If this is for NX1847, particularly if this is a new object type for NX1847, you really should be working with GTAC and/or development...

It could be development hasn't implemented everything yet...

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: BlockStyler Select Object Filter Mask for Universal Connection

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Ken,

 

Universal connection already exist in NX12, so its' not new in NX1847

 

Thanks.