AUW Posted January 18, 2011 Posted January 18, 2011 Hi all, I'm new to the site. I'm setting out attribute block on a plan and would like to extract the world coordinates of the insertion of the block in to a cad table in the same drawing. Please help, thanks AW Quote
Glen1980 Posted January 18, 2011 Posted January 18, 2011 There is probably a LISP routine that does that easily for you but I can't use LISP as I'm on LT but I do it long hand by Creating your table with columns for X & Y in the first column enter = to start a formula ctrl f to bring up fields select object from the first column click the icon over the second column select the point from the drawing select position from the second column set up the format eg. decimal deselect the relevent x,y,z coords from the third column OK then [/1000] to change to milimetres [enter] and that should work! You can put all of the coordinates in the table if you don't untick any of the x,y or z options but then I'm not sure about the dividing by 1000 or applying any other scaling factors you may need. Hope that helps. Quote
Glen1980 Posted January 18, 2011 Posted January 18, 2011 Oh doing it the way above also updates the coordinates if the block moves so it is quite handy. Quote
JPlanera Posted January 18, 2011 Posted January 18, 2011 I love fields!!! I would marry them if it were possible Quote
AUW Posted January 18, 2011 Author Posted January 18, 2011 Many many thanks for your tip, it took me very close to where I wanted to get. However I don't seem to be able to get what I'm after: a table with 3 columns, the first with the tag name, second with 'x' coordinate, third with 'y' coordinate. Following your instructions I only get both coordinates in the same column... any idea what I'm doing wrong, how to achieve the table with 3 columns I described above? If you could point me in the right direction I would much appreciate it!! Many thanks in advance!!! There is probably a LISP routine that does that easily for you but I can't use LISP as I'm on LT but I do it long hand by Creating your table with columns for X & Y in the first column enter = to start a formula ctrl f to bring up fields select object from the first column click the icon over the second column select the point from the drawing select position from the second column set up the format eg. decimal deselect the relevent x,y,z coords from the third column OK then [/1000] to change to milimetres [enter] and that should work! You can put all of the coordinates in the table if you don't untick any of the x,y or z options but then I'm not sure about the dividing by 1000 or applying any other scaling factors you may need. Hope that helps. Quote
Glen1980 Posted January 19, 2011 Posted January 19, 2011 In the cell for the X coordinate bring up field pop up box (ctrl +F) under the third column of the box untick the y and z and that should only leave the x coordinate visible in the cell, then repeat for the y column (you may be able to drag or copy the 'x' cell) and untick the x selection box and tick the y selection box. At lunch if you're still having problems I'll do some screen shots unless someone else can explain it better Hope this helps. Quote
AUW Posted January 19, 2011 Author Posted January 19, 2011 Glen, Thanks a lot for that and it seems to be working. Kind regards, Athula Quote
Recommended Posts
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.