+ Reply to Thread
Results 1 to 8 of 8

Thread: Curved Line

  1. #1
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Oct 2012
    Posts
    3

    Default Curved Line

    Registered forum members do not see this ad.

    He all

    Im very new to autocad and i am using 2013 student there is two things i need help with.

    1) I have drawen a curved line for a Directional Drill Shot and need to create a points on it every 2 metres to give a Cord postion,

    2)I need to beable to transfer these points into a excel spread sheet.

    Many thanks
    Alex

  2. #2
    Senior Member
    Computer Details
    aaryan's Computer Details
    Operating System:
    Windows 7 x32 bit
    Using
    Map 3D 2014
    Join Date
    May 2011
    Location
    autocad
    Posts
    153

    Default

    Hi,
    You can use "measure" command to draw points on line at equal interval.
    Command: measure
    Select object to measure:
    Specify length of segment or [Block]: 2

    Secondly, search this forum you will find some of the autolisp code to export points from autocad to excel or txt.

    I hope this is what u need.

    Regards
    Aaryan

  3. #3
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Oct 2012
    Posts
    3

    Default

    Thanks you for your help you have helped me with my first problem many thanks but i have just had a look about and ended up at a website but im not sure what program i would need to use you option would be great

    http://www.lee-mac.com/programs.html

    Many thanks
    Alex




    Managed to find the program i want now and managed to get some points into text files but going back to my 1st question.

    So i have create points what look like crosshairs but as i have over 100 with every drill shot it will take forever to single select each one to export is there away to select them all quickly without selecting everything else on the drawing

    Many thanks
    alex

  4. #4
    Senior Member
    Computer Details
    aaryan's Computer Details
    Operating System:
    Windows 7 x32 bit
    Using
    Map 3D 2014
    Join Date
    May 2011
    Location
    autocad
    Posts
    153

    Default

    Try this code. This should help you out.

    Code:
    (defun C:test (/ ss fil opn ctr prop pnt X Y Z)
      (setq ss (ssget '((0 . "POINT"))))
      (setq fil (getfiled "Save File as" "*.*" "csv" 1)
    	opn (open fil "w"))
      (setq ctr 0)
      (repeat (sslength ss)
        (setq prop (entget (ssname ss ctr))
    	  pnt (cdr (assoc 10 prop))
    	  X (rtos (car pnt))
    	  Y (rtos (cadr pnt))
    	  Z (rtos (caddr pnt)))
        (write-line (strcat X "," Y "," Z) opn)
        (setq ctr (1+ ctr)))
      (close opn)
      (princ)
      )
    Copy and paste this code to notepad file and save it as "Test.lsp". Dont forget to put "*.lsp" extension.
    Now come to autocad and type "appload" ont the command line, navigate to "Test.lsp" wherever you have saved, select the file and press load and then close the dialog box.
    Type "test" at the command line and select objects(points) and press enter and save the file. open that file (which is in csv format) in excel.

    Hope it helps

  5. #5
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro K4200, 4GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2018
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    46,506

    Default

    You can also use the Data Extraction Wizard native to AutoCAD.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

    I'm now a full member of the Society for the Promotion of Mediocrity in CAD. Standards? We don't need no stinkin' standards! Take whatever advice I offer and do the opposite.

  6. #6
    Forum Newbie
    Using
    AutoCAD 2013
    Join Date
    Oct 2012
    Posts
    3

    Default

    Many thanks for all your help and i will most probly be back soon asking for me help
    Alex

  7. #7
    Senior Member
    Computer Details
    aaryan's Computer Details
    Operating System:
    Windows 7 x32 bit
    Using
    Map 3D 2014
    Join Date
    May 2011
    Location
    autocad
    Posts
    153

    Default

    You are welcome Alex

    Regards

  8. #8
    Senior Member
    Computer Details
    aaryan's Computer Details
    Operating System:
    Windows 7 x32 bit
    Using
    Map 3D 2014
    Join Date
    May 2011
    Location
    autocad
    Posts
    153

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by ReMark View Post
    You can also use the Data Extraction Wizard native to AutoCAD.
    Wow!
    Thank You Sir!!

Similar Threads

  1. How to draw this curved line?
    By LTAZ in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 28th Dec 2012, 01:49 pm
  2. Replies: 9
    Last Post: 28th Jun 2012, 05:01 am
  3. Sectioning along a curved line
    By pvd in forum Autodesk Inventor
    Replies: 2
    Last Post: 4th Dec 2008, 08:52 pm
  4. Offsetting along a curved line
    By MarkCalvert in forum AutoCAD General
    Replies: 5
    Last Post: 1st Nov 2007, 12:21 pm
  5. Create text along a curved line
    By lekkaut in forum AutoCAD General
    Replies: 7
    Last Post: 5th Mar 2004, 07:23 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