Jump to content

Import text edited outside of AutoCAD


Recommended Posts

Hi,

I will show my problem in a graph : 
Text in AutoCAD -->(1) Excell -->(2) Matlab -->(3) Excell -- >(4) AutoCAD.

(1) - Function " ExtractData" into Excell. I ve got all necesary information about that text ( layer,position,colour etc.)

(2),(3) -I am using Matlab to modify the text

Problem is here (4) - I do not know how to import that edited data text to AutoCAD again, which will be put on the same layer, same position etc. 

Is there any solution for that problem ? 

 

 

Link to comment
Share on other sites

Maybe I wasn't defined my problem clearly. I want to automatize the text changing. I do not want to display mathematical formulas. That is happening in the background ( in Matlab or Python).

There are mine extracted data from AutoCAD (picture1). The column I only want to change is column named "Value" (Data included in that column are displaying in AutoCAD as text ).

The idea is to import that already edited data into AutoCAD.In effect I want to change all the texts in my dwg file in accordance with new data in "value column". Is that even possible ? or it could be only done by using Autocad's scripts / AutoCADLisp or sth like that ? 
Thanks for any advice and interest.

picture1.PNG

Edited by PawelP
Link to comment
Share on other sites

There is just so many examples of Excel <-> Autocad out there. Works both ways to and from also from either Excel controlling or Autocad controlling.

 

As a start have a look at getexcel.lsp it has a lot of functions in it, including read a range from Excel  GetExcel.lsp

Edited by BIGAL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...