AXIS CHECK

IS IT POSSIBLE TO CHECK TWO CYLINDRICAL BODIES AXIS OR LINE.BODY WITH HOLE AXIS.

EXAMPLE: IF THE HOLE AND CYLINDRICAL BODY ARE NOT INLINE IT MUST HIGHLIGHT OR TWO CYLINDRICAL BODIES ARE NOT INLINE WITH EACH OTHER.

In short, yes, it is possible.

If you have a feature based model, you can look at things like the hole feature axis/location and the cylinder axis/location and compare the two. If you have a dumb model, you can find and compare cylindrical faces.

Can I get a journal or macro for that if possible

If anybody gives a journal or macro it will be very helpfull for me.

There was a similar discussion a while back on the Siemens community site:
https://community.plm.automation.siemens.com/t5/NX-Programming-Customiza...

That thread may contain some code and/or ideas that will help you. It would be difficult to give you a working journal without more information about your expected input/output.

I will explain my requirement.
Example: think there are two cylindrical solid bodies in a assy(male and female solids) need to know both bodies are in same axis or not to avoid defect while assembling both elements.it will be more helpful when sub assy file has more and more male and female bodies in a main assy file.