Remove/hide Datum Coordinate system in drawings

Hello
I'm starting to work with journals in NX 9
I hope somebody can help me with this problem;
On every view the Datum Coordinate System is shown, is there a way to hide this in all views?

The answer depends on how you are creating the drawing.

Do you create the drawing in the same file as the model (single file method)? In other words, do you open the file that contains the part history, then switch to the drafting application to create the drawing?

Or, do you create the drawing in its own dedicated file (master model method)? This approach starts a new file for the drawing and adds the model as a component; at this point you have a very simple assembly (a single component assembly). Now switch to the drafting application and you can create views of the component (model).

The master model approach is generally the preferred technique. Using this method allows you to use "reference sets" (by default, the "MODEL" reference set is created and maintained automatically by NX) to filter out unnecessary objects from the drawing. The MODEL reference set usually only holds solid bodies, not datums, sketches, curves, or other construction geometry. Using the MODEL reference set in the assembly will filter out datums from the assembly view as well as any drawing views you create.

If you use the single file method, you will probably have to resort to using the "layers visible in view" command. This will require that the objects you do NOT want to see in the drawing views are on separate layer(s) from the objects that you do want to see in the drawing views. For illustration, let's say your solid body is on layer 1 and your datums are on layer 61. If you have already placed views on your drawing and the solid and datums are visible in the views; you can use the "layers visible in views" command to make layer 61 invisible in the drawing views.

I'm already using the layers visible in views. But doing that for each view take time so I was wondering if there was some kind of journal for it. I'm setting up templates and customer defaults so people can work easy later on.
What I not do is; move csys to 61 and make the layer invisible in every view.

Since you are using the single file method, you should change your layer settings before placing any views. The "layers visible in view" drafting view setting will inherit from the current layer settings. So if you make layer 61 invisible before placing a base drafting view, layer 61 will be invisible in the resulting drafting view.

If you are including pre-defined views in your drawing templates, simply set the "layers visible in views" option as desired and save the file. The settings will be saved for future use.

Of course, the "single file" approach will require some discipline among your users to make sure they create or move objects to the proper layers before creating the drawing. This highlights a big advantage the master model method has over the single file method: object filtering does not depend on layer and it can be managed mostly automatically by NX.

If you need a journal to help with the "visible in view" settings, I would suggest recording a journal and modifying it accordingly. The resulting code is fairly straightforward.

Thank you that worked out for me. Did not kown csys is by default under layer 61.
Do some of you know if there is al journal that let people select objects and then by click ok these objects will move to a specific layer?

I don't have code for that particular task on hand; but it wouldn't be too difficult to assemble.

Try recording a journal while moving one object to a new layer. The resulting code will show you how to move something to a new layer. The code will be specific to the object that you moved, this is the "selection stickiness" that we'll have to remove from the code to make it work on other objects.

To allow the user to select one or more objects, take a look at the articles:
http://nxjournaling.com/content/adding-interactive-selection-routine-usi...
and
http://nxjournaling.com/content/using-mask-triples-selectobject-routine

Combining the two journals will allow a user to select one or more objects and move them to a specific layer.

We have total 6 views in a drawing sheet. For e.g: I want to know the coordinates of the origin of Top view with respect to drawing sheet coordinates..How can I know it?/..with UI,When I do it ,it shows the values:
X:406.9825
Y:703.7876
But how can I obtain these values with code?

Look up the functions: MapModelToDrawing and MapDrawingToModel in the API reference. These functions will allow you to convert points in the model space to the drawing and vice-versa.