text file to drawing
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
text file to drawing

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
nsdhakar
Guest





Posted: Sun Apr 03, 2005 10:25 pm    Post subject: text file to drawing Reply with quote

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

Back to top
Ed Jobe
Guest





Posted: Mon Apr 04, 2005 9:17 pm    Post subject: Re: text file to drawing Reply with quote

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
----
"nsdhakar" <nospam@address.withheld> wrote in message
news:24612813.1112552756373.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
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
Back to top
nsdhakar
Guest





Posted: Tue Apr 05, 2005 12:51 am    Post subject: Re: text file to drawing Reply with quote

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

Back to top
Ed Jobe
Guest





Posted: Tue Apr 05, 2005 3:39 am    Post subject: Re: text file to drawing Reply with quote

What kind of data does this file contain?

--
----
Ed
----
"nsdhakar" <nospam@address.withheld> wrote in message
news:11569630.1112647901133.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
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.
Quote:

thanks

nsdhakar
Back to top
nsdhakar
Guest





Posted: Tue Apr 05, 2005 4:36 am    Post subject: Re: text file to drawing Reply with quote

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
Back to top
Laurie Comerford
Guest





Posted: Wed Apr 06, 2005 1:45 am    Post subject: Re: text file to drawing Reply with quote

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

"nsdhakar" <nospam@address.withheld> wrote in message
news:22707209.1112661420685.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
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
Back to top
James Belshan
Guest





Posted: Wed Apr 06, 2005 5:55 pm    Post subject: Re: text file to drawing Reply with quote

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


"nsdhakar" <nospam@address.withheld> wrote in message
news:22707209.1112661420685.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
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
Back to top
James Belshan
Guest





Posted: Wed Apr 06, 2005 5:59 pm    Post subject: Re: text file to drawing Reply with quote

oops.... I meant to say this would NOT be difficult.


"James Belshan" <jlbelshan@yahoo.com> wrote in message
news:4253ea35$1_3@newsprd01...
Quote:
This would be difficult.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB