×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

View Orientation for CGM file

View Orientation for CGM file

View Orientation for CGM file

(OP)
Hi
Im trying to export a drawing file to CGM format and import it back but it gets imported in different view orientation.(Trimetric view whereas it a top view).Im using NX9.Is there any setting to change this?

Thanks

RE: View Orientation for CGM file

isn't it that simple that if you have a Trimetric view on screen when you do the import, NX will keep that orientation ?
- If you before the import replace the view or reorient , then do the import ?


Regards,
Tomas

RE: View Orientation for CGM file

(OP)
Hi,
Ya even i orient view to top it imports as top view.But after i import im using Autocad DXF/DWG to generate corresponding DWG file.This DWG file is not maintaining the view it is getting exported in the trimetric view.Is there any way wherein i can get the format of original drawing after ExportCGM->ImportCGM->AutoCAD DXF/DWG.

Thanks

RE: View Orientation for CGM file

When you create a new file to import the CGM, replace the view to TOP before you import the CGM file. Reorienting the view doesn't cut it, you must replace the view (right click in the graphics window -> replace view -> top). You might be able to skip this step if you create the new file from a template where the template is set up to use the TOP view and saved with that change.

Here is a journal that automates the 'export DXF' process:
http://nxjournaling.com/content/export-drawing-dxf...

www.nxjournaling.com

RE: View Orientation for CGM file

(OP)
While working in Nx managed mode is it possible to set the variable "Const tempTCDXF = "@DB@123/dwg2dxf@A" to a part on a disk instead of a part in database.(Ex: "Const tempTCDXF = "C:\Model1.prt")

RE: View Orientation for CGM file

The variable is meant to point to a file in your database, not a file on disk. I suggest creating a new file/dataset in TC dedicated to DXF conversions and editing the tempTCDXF constant to point to this new file/dataset. The journal needs a clean, "temporary" file to import the CGM data, then it exports the information to a .dxf file on disk.

If you are running native NX, the journal will create its own 'temp' file to work with and delete it when it is done. In this case, the tempTCDXF value is ignored.

I'll try to update the verbage to make that more clear in the journal.

RE: View Orientation for CGM file

When exporting your cgm set your WCS to the CSYS of the current view.
Then when the cgm is imported is will be placed on the plane of the drawing, which will be the same orientation as the view that was exported from.

Jerry J.
Milwaukee Electric Tool
http://www.milwaukeetool.com/

RE: View Orientation for CGM file

I'm sorry, i don't understand anything here, neither the process nor whats wrong.
Do you want the model or the drawing in Autocad ? ( Your image of Autocad shows NO drawing, only "model" and "layout" tabs.)
2D or 3D ?
Are you using the CGM to flatten the NX drawing ?
Do you have the 2DExchange license ?
have you tried exporting the drawing directly , without the CGM stuff ? Export DXF/DWG?

Regards,
Tomas

RE: View Orientation for CGM file

(OP)
I have a model in NX and i have created a drawing for that model and placed views.I have placed views at a particular scale(say 1:2).I want to export this drawing in 1:1 scale in dwg format(Autocad DXF/DWG).For this reason i have exported my drawing as CGM and imported back and then did AutoCAD DXF/DWG Exchange to get dwg format file.

So when i open this final output(.dwg) in AutoCAD it is showing isometric orientation as shown in the above post.I have attached a screenshot of exporting the drawing sheet to CGM format.


RE: View Orientation for CGM file

Maybe the third time is the charm as they say...
  1. Export CGM file of your drawing
  2. Create a new NX file (for the CGM import)
  3. (optional) Turn on the model view names to verify what view you are using: Preferences -> Visualization -> names/borders -> show model view names.
    Now in the bottom left corner of the graphics window you will see the model view name, something like "Trimetric WORK Camera Trimetric". If the listed view (the word before "WORK") is anything other than "Top", we need to replace the view.
  4. Replace the modeling work view: right click in the graphics window, choose "replace view -> Top".
  5. Import the CGM file.
  6. (optional) Scale the curves as desired.
  7. Export to DWG/DXF.

www.nxjournaling.com

RE: View Orientation for CGM file

(OP)
It is working with the journal but im not able to get the desired result manually.

I want to do this because the code which i write should not create any new part file in database which is happening when i run the journal.

Im unable to understand why the view orientation is not maintained while i export a drawing sheet.I want the top view to be reflected in autocad file(how the sheet is visible).

RE: View Orientation for CGM file

(OP)
Thankyou so much your charm worked.I got the desired result.bigsmile

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources