×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

AutoCAD and Precast Concrete

AutoCAD and Precast Concrete

AutoCAD and Precast Concrete

(OP)
I am looking for a way to take and excel spreadsheet with information about drainage structures (manholes, catch basins, etc.) such as elevations, pipe type and sizes, structure size and create a drawing.  Keep in my there could be hundreds of drawings required per project and I don't want to create that many drawing files.  Any ideas or suggestions would be appreciated.

RE: AutoCAD and Precast Concrete

Do you know LISP or VB?

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: AutoCAD and Precast Concrete

(OP)
I am know a small amount of each.  I just started learning lisp and VB.

RE: AutoCAD and Precast Concrete

Probably the easiest way is in vb since both ACAD and Excel can use vba natively. The routine below will get you the excel sheet (has to be already open) and then you can push and pull info from there. Let us know how you are doing...

Public Function GetOpenExcelWorksheet() As Excel.WorkSheet
'------------------------------------------------------------------------------
'StartExcel
'
'------------------------------------------------------------------------------
On Error GoTo ErrHandler
Dim sPath As String
Dim xlApp As Excel.Application
'''''''''''''''''''''''''''''''''''''''

Set xlApp = GetObject(, "Excel.Application")
'Set gWorkbook = gExcelApp.Workbooks.Open(sPath, , True)
Set GetOpenExcelWorksheet = xlApp.ActiveSheet
ErrHandler:
    Select Case Err.Number
    Case 429
        Err.Clear
        MsgBox "Existing Excel App not found"
    Case Else
        Err.Clear
    End Select
    
End Function

"Everybody is ignorant, only on different subjects." — Will Rogers

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources