Edit AutoCAD table from Excel or Text file

Edit AutoCAD table from Excel or Text file

Amriya_Exe
Advocate Advocate
425 Views
4 Replies
Message 1 of 5

Edit AutoCAD table from Excel or Text file

Amriya_Exe
Advocate
Advocate

I created Table in AutoCAD layout as shown below I have to edit cell values which highlighted in red for all layouts.

Any way to do automatic from excel/text file?

Amriya_Exe_0-1708622922532.png

 

Second request is

For all layout in reference details I am writing this location span number manual.
I know the Field command CTAB but I need only last 6 digits from Layout name. 

Amriya_Exe_1-1708623140219.png

 

 

0 Likes
426 Views
4 Replies
Replies (4)
Message 2 of 5

cadffm
Consultant
Consultant

Field

Diesel

Getvar ctab substr getvar - strlen 

https://www.theswamp.org/index.php?topic=48156.0

 

Sebastian

0 Likes
Message 3 of 5

Amriya_Exe
Advocate
Advocate
$(substr,$(getvar,DWGNAME),1,14)

I have to paste this command in my table CELL?
0 Likes
Message 4 of 5

cadffm
Consultant
Consultant

Hi,

 

 

 

No, you have to activate your cell, rightmouseclick -> Insert Field

https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-1B6DD22B-10D1-44ED-BAA2-E6D79FE52327

 

In Field dialog, choose category DIESEL (or Diesel Expression?) and there is a place to paste this code.

 

>>"$(substr,$(getvar,DWGNAME),1,14)"

1. This code reads your DWGNAME variable, you talked about the CTAB variable.

2. This will read the first, not the last characters

3. 14 characters instead 6

 

for you:

$(substr,$(getvar,CTAB),$(-,$(strlen,$(getvar,CTAB)),5),99)

 

Read more about DIESEL, it's useful: [F1]

 

Sebastian

0 Likes
Message 5 of 5

Amriya_Exe
Advocate
Advocate

Any update for first query

0 Likes