Jump to content

Fill Object Data fields with data in .txt file, based on ID number of pipe


Matej

Recommended Posts

Hello everybody,

 

I am working on a large project, so my .dwg file contains about 10 k polylines/water pipes. Each polyline/pipe has unique ID number written as a text in a circle. Each ID number is placed exactly on polyline/pipe. Also I have external database where I can, based on ID number, look up informations about specific pipe (informations such as material, profile, year of construction etc.) Problem is that whenever I need some informations I have to manually find that pipe in .txt file. I need those external informations to be placed in AutoCAD as Object Data table. I have created OD table.

 

So idea is to make LISP that: when I select polyline/pipe, LISP looks up ID number, goes to external data base (.txt), finds informations about that pipe, transfers and sorts those informations in OD table (for selected pipe/pipes).

 

I would be so happy if someone could help me. I am buying beer :)

 

Additional information:

I am using AutoCAD Civil 3D 2016

external database .txt is tab delimited file

I have already attached OD Table to polylines/pipes.

Edited by Matej
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...