Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Edit AutoCAD table from Excel or Text file

4 REPLIES 4
Reply
Message 1 of 5
Amriya_Exe
298 Views, 4 Replies

Edit AutoCAD table from Excel or Text file

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

 

 

4 REPLIES 4
Message 2 of 5
cadffm
in reply to: Amriya_Exe

Field

Diesel

Getvar ctab substr getvar - strlen 

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

 

Sebastian

EESignature

Message 3 of 5
Amriya_Exe
in reply to: cadffm

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

I have to paste this command in my table CELL?
Message 4 of 5
cadffm
in reply to: Amriya_Exe

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

EESignature

Message 5 of 5
Amriya_Exe
in reply to: Amriya_Exe

Any update for first query

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta