Message 1 of 3
How to get value from Excel to Autocad?

Not applicable
09-18-2018
01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I need to export a large number of DWG files to version 2000. I would like to take the path from Excel and then run the rest of the rule. Can anyone have an idea how to solve it?
This is rule
Option Explicit
Sub Ch3_TestIfSaved()
Dim app As AcadApplication
Set app = ThisDrawing.Application
Dim Pan As Integer
Pan = InputBox("Ile wierszy?", "tak")
Dim i As Integer
i = 1
Do
Set dwg = app.Documents.Open("D:\Obszary Robocze\Instalacje Modułowe\Designs\Rysunek1.dwg")
Call app.ActiveDocument.SaveAs("D:\Obszary Robocze\Instalacje Modułowe\Designs\Rysunek1_2000.dwg", ac2000_dwg)
dwg.Close
i = i + 1
Loop Until i > PanNum
End Sub