×
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

DXF origin

DXF origin

DXF origin

(OP)
Newbie question, I'm learning .DXF format on the fly.
I'm attempting to create a .dxf export from a MFC application. MFC by default places the origin at the top left (so y increments downward). Is there a way of setting this type of view in the .dxf file, and if so how?

-->x
|
V
y


thanks for your time!

RE: DXF origin

Trying to understand, are you wanting to create entites in DXF and define them from another set of info? What you are doing sounds possible, I am just unclear what you are trying to end up with.

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: DXF origin

(OP)
in a C++ MFC application the drawing coordinates origin is the TOP left, so that  position 5,3 would be here:
|------------|
|   x        |
|            |
|            |
|------------|
yet in a dxf file the origin is of course at the BOTTOM left, so position 5,3 would be here:
|------------|
|            |
|            |
|   x        |
|------------|

I'm succesfully exporting what is drawn in an mfc app into dxf but since Y increase downard in mfc and upwards in  dxf the drawing is basically flipped along it's x axis. How do I identify in a dxf file that I want the origin in the top left instead of bottom right?

I'm not an autocad user so I'm not recognizing much of the terms they use in their help when describing all the commands. It's likely something I need to set in the HEADER section of the dxf file?

RE: DXF origin

I believe you will want to define the UCS (User Coordinate System)in the DXF file to the one you want to use. AutoCAD uses 3 o'clock by default.

"Everybody is ignorant, only on different subjects." — Will Rogers

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