+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Forum Newbie
    Using
    AutoCAD LT 2008
    Join Date
    Oct 2007
    Posts
    2

    Default create block from text file

    Registered forum members do not see this ad.

    Is it possible to create a routine that will read a structured text file (containing for example block name, object definitions such as circles, layer names, line type and line colour etc) then create and insert a block, defined by the text file, into a drawing?

    Your help much appreciated.

    Stretch

  2. #2
    Full Member
    Using
    AutoCAD 2004
    Join Date
    Aug 2007
    Posts
    80

    Default

    yes it should be possible, but it would require an example of the list.
    ...And someday, they will have computers the size of houses, with millions of vacuum tubes, doing thousands of computations per minute...!!!

  3. #3
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,786

    Default

    Just write down and record everything you do in autocad to carry out the task and save it as a text file with extension .SCR then type SCRIPT and it will replicate .

    Sounds easy but you must add either a space for a return or ""

    eg simplified
    open "mydwg1" zoom e text 3,3 2.5 0 "asdf" ""

    the asdf appears at co-ords 3,3

  4. #4
    Forum Newbie
    Using
    AutoCAD LT 2008
    Join Date
    Oct 2007
    Posts
    2

    Default

    Registered forum members do not see this ad.

    Thank you Figment and BIGAL for your suggestions I'll get to work on them now.

Similar Threads

  1. Create a PDF from DWG file
    By dark wanderer in forum AutoCAD General
    Replies: 6
    Last Post: 21st Jan 2009, 03:08 pm
  2. Create a PLOT FILE
    By CADken in forum AutoCAD Beginners' Area
    Replies: 10
    Last Post: 24th Sep 2007, 11:09 pm
  3. Why create a template file?
    By mrgrotey in forum AutoCAD Drawing Management & Output
    Replies: 12
    Last Post: 23rd Aug 2006, 10:14 pm
  4. create a text file using lisp
    By vivekgrs in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 28th Jul 2006, 01:11 am
  5. Create a A0 size dwg as a PDF File
    By maverick_xyz in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 19th Nov 2004, 03:42 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