Cancel
Showing results for 
Search instead for 
Did you mean: 

Constraints with name attribute

Experimenter
Experimenter

I'm trying to figure out how can I possibly make NX10 change automatically the constraints in an assembly as I replace a part for another.

First thing I tried is to define constraints with name attributes. In a very simple exemple I define contraints relative to the absolute CSYS of the assembly.

First constraint: align axis 

Second constraint: face and datum touch

1.png

When I create another part and define axis and face for the constrains with the exact same name the program recognize the change and adapt the constraints but there's an error that I can't explain. It looks like both constraints can work fine separately but not together. Does anyone has an idea of what to do to make it work?

 

All files are there so you can take a look of what I'm trying to achieve.

Thanks you.

4 REPLIES

Re: Constraints with name attribute

Siemens Phenom Siemens Phenom
Siemens Phenom

While aligning the axes, use orientation as 'Infer Center/Axis'.

 

asmcons1.PNG

 

 

asmcons.PNG

 

Is this what you are trying to achieve?

 

Re: Constraints with name attribute

Experimenter
Experimenter

What I try to do is to use the "replace component" function select a randum part and that the program automatically update the constraints following the name attribute.

In this particular case I want the axis of the part named "ROT_AXIS" and the Z axis of the assembly to be align and that the XY plane of the assembly match with the face that I named "FIT_BASE".

 

But when I try do that this is what it looks like:

2.png

Both constraints work fine when alone but together it doesn't work.

Re: Constraints with name attribute

Siemens Phenom Siemens Phenom
Siemens Phenom

It does work, maybe you have not defined constraints correctly. I have recorded the video using the parts provided by you and there is no problem while replacing the component.

 

Use 'Touch Align' constraint with orientation 'Infer Center/Axis' to constrain named datum axis of component with CSYS datum axis of assembly and orientaion 'Touch' to constrain named face of component with datum plane of CSYS.

 

Re: Constraints with name attribute

Experimenter
Experimenter

I started over the assm and it worked. I don't know what was wrong with the one a had before...

Thank you for your time!