+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Mar 2009
    Posts
    75

    Default reading xref file

    Registered forum members do not see this ad.

    I often need to perform offset of objects existing in xref drawings. for that I have to first draw line/pline etc along the
    xref entity and then offset that new created line etc.
    Is it possible to directly offset the xref entity instead of first creating its copy in the working drawing.
    Thanks.

  2. #2
    Forum Deity NBC's Avatar
    Using
    AutoCAD 2009
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Posts
    2,109

    Default

    you could always NCOPY the entities from the xref (no need to redraw them then) then you could use offset ?
    Life's constantly changing - keep up or get left behind

  3. #3
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,710

    Default

    Alan,

    Quick question - what does the transformation matrix do in that code? - I've never really got to using one, (except in grvecs).

    Lee
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  4. #4
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    5,993

    Default

    Quote Originally Posted by Lee Mac View Post
    Alan,

    Quick question - what does the transformation matrix do in that code? - I've never really got to using one, (except in grvecs).

    Lee
    Moves the cloned object to the correct location.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  5. #5
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    5,993

    Default

    Entmake a nested object and you'll see that it creates it at 0,0,0. You have to use the transformation matrix to correct the placement, based on the original object's matrix.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  6. #6
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,710

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by alanjt View Post
    Entmake a nested object and you'll see that it creates it at 0,0,0. You have to use the transformation matrix to correct the placement, based on the original object's matrix.
    Gotcha - thanks dude
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

Similar Threads

  1. Need help in reading data file
    By T2L in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 26th Jun 2009, 09:55 pm
  2. lisp reading a csv file??
    By BLOACH85 in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 1st May 2009, 03:39 am
  3. Reading a TXT file using LISP
    By CAD Panacea in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 14th Jul 2008, 07:10 am
  4. Opening a file for reading in Lisp Ver 2007
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 10th Dec 2007, 09:25 am
  5. Reading a .FAS File
    By gman in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 20th May 2006, 01:22 pm

Bookmarks

Posting Permissions

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