Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Orientation for CGM file 1

Status
Not open for further replies.

hashso25

Aerospace
May 7, 2014
24
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
 
Replies continue below

Recommended for you

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
 
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
 
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:

www.nxjournaling.com
 
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")
 
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.
 
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
 
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

 
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.


 
 http://files.engineering.com/getfile.aspx?folder=2c2cf227-9b70-451e-8daf-852bcf527f85&file=ExportCGM.jpg
I don't understand either...
I've given you the answer twice now (see thread561-388432)

Are you saying that it worked for you last week but now does not work? What changed?

www.nxjournaling.com
 
Maybe the third time is the charm as they say...
[ol 1]
[li]Export CGM file of your drawing[/li]
[li]Create a new NX file (for the CGM import)[/li]
[li](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.[/li]
[li]Replace the modeling work view: right click in the graphics window, choose "replace view -> Top".[/li]
[li]Import the CGM file.[/li]
[li](optional) Scale the curves as desired.[/li]
[li]Export to DWG/DXF.[/li]
[/ol]

www.nxjournaling.com
 
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).
 
 http://files.engineering.com/getfile.aspx?folder=24dcfeed-5fb1-4959-868b-6882310f5d9a&file=Img.jpg
Thankyou so much your charm worked.I got the desired result.[bigsmile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor