text file to drawing

Discussion in 'AutoCAD' started by nsdhakar, Apr 3, 2005.

  1. nsdhakar

    nsdhakar Guest

    is this possible that, if i run my text file in AutoCAD which i
    generated in AutoCAD in some format, results in a drawing of structure
    from which the text file is generated.
    if yes than how i can do it?....i have no idea what to do for this.

    thanks

    nsdhakar
     
    nsdhakar, Apr 3, 2005
    #1
  2. nsdhakar

    Ed Jobe Guest

    I'm sorry but I don't understand your question. Are you talking about a dxf
    file? If so, I still don't understand what you want to do with it.
     
    Ed Jobe, Apr 4, 2005
    #2
  3. nsdhakar

    nsdhakar Guest

    i have "file.txt" file which contains some different data of drawing(some frame structure) and mow i want that when i put this txt file in autocad than it results in the same drawing(frame structure) from which the text file is generated.

    thanks

    nsdhakar
     
    nsdhakar, Apr 4, 2005
    #3
  4. nsdhakar

    Ed Jobe Guest

    What kind of data does this file contain?

    --
    ----
    Ed
    ----
    frame structure) and mow i want that when i put this txt file in autocad
    than it results in the same drawing(frame structure) from which the text
    file is generated.
     
    Ed Jobe, Apr 5, 2005
    #4
  5. nsdhakar

    nsdhakar Guest

    i am posting my text file which is generated from a frame structure in autocad by using VBA programming..

    /title , frame
    /PREP7
    !Define key points
    K, 1,4578.2531,7919.0487
    K, 2,11346.8678,11826.9102
    K, 3,11346.8678,3072.2707
    K, 4,4578.2531,3072.2707
    K, 5,11346.8678,7919.0487
    K, 6,4578.2531,11826.9102
    !Define line
    L,1,2
    L,2,3
    L,3,4
    L,4,5
    L,5,6
    !Element Definition
    ET, 1, LINK 1
    ! element type #1; spring element
    !Real Constants
    R,1,5400
    ! real constant #1; Xsect area: 5400 mm^2
    !Material Property
    MP,EX,1,200e3
    ! material property #1; Young's modulus: 200 GPa
    LESIZE, ALL, , , 1, 1, 1
    ! specify divisions on unmeshed lines
    LMESH, all
    ! mesh all lines
    FINISH
    ! finish pre-processor
    /SOLU
    ! enter solution phase
    !Apply some constraints
    DK,3,UX,0,,,UY,UZ
    ! define a DOF constraint at a keypoint
    DK,4,UY,0,,,UZ
    ! apply loads
    FK,1,FY,-280e3 ! define a force load to a keypoint
    FK,3,FY,-210e3
    FK,5,FY,-280e3
    FK,7,FY,-360e3
    SOLVE
    ! solve the resulting system of equations
    FINISH
    ! finish solution
    /POST1
    PRRSOL,F
    ! List Reaction Forces
    PLDISP,2
    ! Plot Deformed shape
    PLNSOL,U,SUM,0,1
    ! Contour Plot of deflection
    ETABLE,SAXL,LS, 1
    ! Axial Stress
    PRETAB,SAXL
    ! List Element Table
    PLETAB,SAXL,NOAV
    ! Plot Axial Stress

    now i want this to put in autocad again so that it results in the same frame structure., how i can do it by using VBA in autocad.

    thanks

    nsdhakar
     
    nsdhakar, Apr 5, 2005
    #5
  6. Hi,

    If using this data (and only this data) you can draw what you want in
    AutoCAD, then you can write a program to do it.

    You would need to provide the programmer with an annotated drawing showing
    where each item in the drawing derived from the data file.

    --

    Regards,


    Laurie Comerford
    www.cadapps.com.au
     
    Laurie Comerford, Apr 5, 2005
    #6
  7. nsdhakar,
    The frame was originally drawn in AutoCAD and exported to the text file,
    correct?

    How were the non-graphical items (loads, constraints) stored in the AutoCAD
    file?

    Do you need your VBA program to create anything other than the key points
    and lines? This would be difficult.

    James


    autocad by using VBA programming..
    frame structure., how i can do it by using VBA in autocad.
     
    James Belshan, Apr 6, 2005
    #7
  8. oops.... I meant to say this would NOT be difficult.
     
    James Belshan, Apr 6, 2005
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.