Jump to content
  • 0
Neko_Akatsuki

Why the DWGfile coordinates x'y are reversed

Question

This is the coordinate of the CAD 85C26D71-6D97-41D2-B4CC-D3B3897806E8.thumb.png.5439cd3c2019ca354f62e095829be76c.png

I exported DWGfile to VectorWorks

After importing the file , the location is correct , but axis X,Y is opposite

3230FA92-3DFE-4063-9129-B01C9A50D4C6.thumb.png.ea13f1af7eab6ea8d59b640795d200b3.png

see the X→Y , Y→X............how i do ,  let Vectoeworks X→X , Y→Y...

Share this post


Link to post

12 answers to this question

Recommended Posts

  • 0
7 hours ago, Pat Stanford said:

What tools are you using to generate the two label objects?

Left is AutoCAD2017 coordinate mark tool

Right is VectorWorks2017 stake tool

Screenshot background is VectorWorks2017

 

I gat the label objects process

Import  single DXF/DWG → Import Options→ Location → Align with Internal Origin

 

Can see this

1A7CCC75-3012-4AC3-B5B5-04912A9A1FD1.thumb.png.2419f0ef2c2ad985751ba1263532835e.png

 

Next step , I use Stake tool , and mark a position , Then you can see the difference

06CB0BB3-F10A-4CD1-B091-E98F8ED5CB51.thumb.png.ce8f5d78571019b4a3ff8e1e18cb0cfd.png00834427-901D-4913-B4CB-D7C749B7BF51.thumb.png.bad08ae9b02c54976c5b7d462d2aba90.png

 

 

Share this post


Link to post
  • 0

What happens when you use the Stake tool in a new file without the DWG import?

 

If you turn on the rulers, which is correct, the Stake object or the imported coordinate marks?

 

Can you post the DWG (or a DWG) that causes this problem?

Share this post


Link to post
  • 0
1 minute ago, Pat Stanford said:

What happens when you use the Stake tool in a new file without the DWG import?

 

If you turn on the rulers, which is correct, the Stake object or the imported coordinate marks?

 

Can you post the DWG (or a DWG) that causes this problem?

The file LP-3.00.dwg

Share this post


Link to post
  • 0

I am not positive, but I think you are out of luck. It looks to me like they drew this sideways. Look at the differential values between the points. Find 2 points that are about twice as far apart vertically as they are horizontally. Put in contained dimensions to get the vertical and horizontal separation. It looks like the vertical dimension added to the X value and the horizontal dimension added to the Y value give the X and Y values of the second point.

 

You might be able to group all the objects and rotate the group 90 degrees and then use the User Origin to set the point values to the right place, but I don't have enough information on where the data is coming from to figure that out right now.

 

What is the units in the DWG?  1000 inches? When I imported it as meters I was off by a factor of 25.4, so that tells me it is in inches not meters, but the absolute values are certainly not inches. You will need to get the units right to be able to properly move the origin and get the right points. One of the Origin options is to se the next point to an XY value. 

 

Or if it really doesn't matter, just use a text search and replace and swap all the Xs to Q, all the Ys to Xs, and finally all the Qs to Ys. Then the values will match the reality of Y being up and down the page and X being across the page.

Share this post


Link to post
  • 0
26 minutes ago, Pat Stanford said:

I am not positive, but I think you are out of luck. It looks to me like they drew this sideways. Look at the differential values between the points. Find 2 points that are about twice as far apart vertically as they are horizontally. Put in contained dimensions to get the vertical and horizontal separation. It looks like the vertical dimension added to the X value and the horizontal dimension added to the Y value give the X and Y values of the second point.

 

You might be able to group all the objects and rotate the group 90 degrees and then use the User Origin to set the point values to the right place, but I don't have enough information on where the data is coming from to figure that out right now.

 

What is the units in the DWG?  1000 inches? When I imported it as meters I was off by a factor of 25.4, so that tells me it is in inches not meters, but the absolute values are certainly not inches. You will need to get the units right to be able to properly move the origin and get the right points. One of the Origin options is to se the next point to an XY value. 

 

Or if it really doesn't matter, just use a text search and replace and swap all the Xs to Q, all the Ys to Xs, and finally all the Qs to Ys. Then the values will match the reality of Y being up and down the page and X being across the page.

 

Thank you for your help~~~

See you say " just use a text search and replace and swap all the Xs to Q, all the Ys to Xs " , this is what I want .

Share this post


Link to post
  • 0

Text Menu  Find-Replace Text...

 

Replace All, Text Objects, Find String X=, Replace With Q=

 

Replace All, Text Objects, Find String Y=, Replace With X=

 

Replace All, Text Objects, Find String Q=, Replace With Y=

 

All the labels should then read with X and Y that match the values returned by the stake tool.

Share this post


Link to post
  • 0

This DWG uses a custom coordinate system. Converting the UCS back to the World Coordinate System and changing the Plan to Current shows the coordinates in the way you see them after importing in Vectorworks. 

image.thumb.png.3a8251716bfbc55afc7197ad0ce44ac4.pngimage.thumb.png.d7937a0983be815df05bc101bde49043.png

Original DWG

 

image.thumb.png.d681b05b26938e46af592a813e9d8b58.pngimage.thumb.png.30f393228cf625a6b3276be5a199c55a.png

Updated DWG (LP-3.00-WCS.dwg) and coordinates there

 

DWG file is set to Unitless, so you have to ask the originator of the file what are the exact units there. As coordinates, reported by AutoCAD are 1000 times bigger then the X and Y text (except that they are switched), then during import in Vectorworks you will need to set that 1000 DXF/DWG Units are converted to 1 VW Unit.

For example, if the X and Y text in the DWG refers meters, then set your VW document units to meters, and from the DXF/DWG Import Options dialog choose the Units settings as shown on one of the images:

image.thumb.png.1d0c80c4769f8e0f83d2e09a97af8a01.png or image.thumb.png.d3a0c7ec644693eb546fe26b5fda7b91.png

 

Then you will receive the following:

 

image.thumb.png.d62dbe0988cf68cdc9a0fce471002152.png

 

Hope this helps,

Nina

 

 

Share this post


Link to post
  • 0

Thanks Nina. I was hoping you would chime in.

 

Is this an import that VW should be able to handle? Or is this something strange enough on the AutoCAD side that it is really just an edge case that should not be handles automatically by VW?

Share this post


Link to post
  • 0

Perfect. I just wanted to get it documented that the file was drawn strangely in AutoCAD (or where ever it came from) and is not a limitation in what VW does and should do.

 

Thanks.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...