See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: UCS and Data Extraction

  1. #1
    I could stop if I wanted to
    Join Date
    2015-09
    Posts
    420
    Login to Give a bone
    0

    Default UCS and Data Extraction

    Hello AUGI Members,

    I have placed a block with attributes in numerous locations on a drawing and I am using the Data Extraction function to create a table containing these attributes along with the X and Y coordinate of the insert point of the block.

    This works fine as long as I am in the World coordinate system however, many of our projects utilize local coordinate systems and when I have one of these local coordinate systems current and do the Data Extraction the X and Y coordinates reflect the World coordinate values and not the local coordinate system values.

    Is there a way to correct this and have the X and Y values of the local coordinate system in the table.....??


    Regards,
    Vince

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    There is a lisp function TRANS which does this.

    People in the programming forums should be able to help with its use.

  3. #3
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Uhmmm, not without rewriting something to generate the table. What I'd suggest as a work-around is to use xreffing - then place the block(s) in the xreffed DWG's WCS as if that is the local coordinate system. Then move, rotate and/or mirror the xref in the containing drawing to accommodate the global & local coord differences.

    Now you need to place a field code into an attribute of the block. BEdit the block in the new xref DWG. Add a new AttDef, give it a unique Tag name and right-click in the Default box, select Insert Field, Category=Object, Field name=BlockPlaceholder, Property=Position. You can set the attribute Invisible, so it won't display.

    BSave & BClose. Then run AttSync on those blocks to have each reference updated with the new attribute. Save and reload into the containing DWG. Now modify the data extract - in the 1st page, click the Settings button, ensure Extract objects from xrefs is checked. On the 2nd page ensure the block-name(s) are checked, you may have 2 blocks named the same - check both. On the 3rd page add the attribute name you included before.

    That should give you a column showing the local coordinate's, you can still add the Position X & Y from the Geometry group as this would give the global coordinates. If you need separate columns for the coordinates, then create a separate attribute for X & Y - uncheck the XYZ options as needed when creating the field.

  4. #4
    I could stop if I wanted to
    Join Date
    2015-09
    Posts
    420
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Thank You Gentlemen For Your Responses,

    What I can determine from what you are saying is the data extraction function in vanilla AutoCAD can only give the X and Y position coordinates relative to the World coordinate system......correct....??

    To get coordinate values relative to a specific named UCS that is current on the drawing I would need to utilize one of the two methods you have outlined above (lisp program or complicated X-ref setup method) to obtain those coordinate values.

    Seems to me Autodesk should have a toggle or variable, that would allow the user to decide which coordinate system to use when obtaining these values....!


    Regards,
    Vince

  5. #5
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Quote Originally Posted by vferrara View Post
    Seems to me Autodesk should have a toggle or variable, that would allow the user to decide which coordinate system to use when obtaining these values....!
    That would be nice yes.

  6. #6
    Active Member
    Join Date
    2007-07
    Posts
    94
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    In my office we use 3 method to obtain X & Y coordinate.

    1. World coordinate - based on AutoCAD world coordinate system
    2. User coordinate - based on user UCS point (will not work with XREF)
    3. Object coordinate - based on block insertion and you can freely move the block point.

    The best method to set your own local coordinate is to use the Object coordinate. See the attached file.
    Attached Files Attached Files

  7. #7
    Member
    Join Date
    2010-10
    Posts
    2
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Beautiful!! Thank you.

  8. #8
    Member
    Join Date
    2005-09
    Posts
    2
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Any Idea? How to replace the existing points in CAD with this block?
    Last edited by kalarpu; 2014-01-16 at 06:11 AM.

  9. #9
    All AUGI, all the time arshiel88's Avatar
    Join Date
    2005-02
    Location
    Off the Grid
    Posts
    560
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Quote Originally Posted by kalarpu View Post
    Any Idea? How to replace the existing points in CAD with this block?
    BLOCKREPLACE?

  10. #10
    Member
    Join Date
    2005-09
    Posts
    2
    Login to Give a bone
    0

    Default Re: UCS and Data Extraction

    Quote Originally Posted by arshiel88 View Post
    BLOCKREPLACE?
    Currently, I am trying to extract point data from CAD to use in Revit topography.
    DATAEXTRACTION command from AutoCAD higher versions can extract coordinates of point with reference to WCS only.
    What I need is coordinates data with reference to UCS instead of WCS for x and y values while i want to keep z values with WCS.
    Is there any lisp program to do that?
    Please help me.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 2015-04-29, 01:18 PM
  2. Two way data extraction
    By j_washbourne28 in forum AutoCAD Tables
    Replies: 1
    Last Post: 2014-03-24, 01:28 PM
  3. VBA data extraction
    By jbortoli in forum VBA/COM Interop
    Replies: 4
    Last Post: 2012-03-09, 05:55 PM
  4. Data extraction
    By paulof in forum AutoLISP
    Replies: 0
    Last Post: 2011-11-29, 06:45 PM
  5. Data Extraction
    By matt.wagner in forum AutoCAD LT - Wish List
    Replies: 7
    Last Post: 2009-04-27, 02:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •