Jump to content

Autolisp to seach excel column and fill the data in that row to block atributes


jepeters

Recommended Posts

Hi there,

 

Are there any cad/excel specialist here who can solve my problem?

 

I need an Autolisp that compares a autocad block attribute (block name: "5555", attribute name: "drawingnumber") with "column B" in an excel file.

 

this excel file have the name "drawinglist" and the lisp should search the folder the acad-drawing is in.

 

when he found the drawingnumber in the exel file, the lisp should fill the data on the same row into other attributes of the same block "5555"

 

for example:

 

in block "5555", attribute "drawingnumber", the value "0505-01-13-0007" is found

lisp search excel "column B" for the value "0505-01-13-0007"

when he found that in "row 33" then he should add "cell C33" to block "5555" in attribute "revision"

"cell D33" to block "5555" in attribute "document-type"

 

==========

 

i manage to do this with an *.csv file but i cant use this set up since the drawinglist lose his layout when saved as *.csv :cry:

 

txs in advance!

 

jp

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...