Jump to content

Recommended Posts

Posted

first question of mine how to select attributes with named filter which before define it special with VBA and how to send my attribs content values to access database file .mdb and or read and get again from .mdb file to use that values some aplication into a drawing. can anyone help me I will very pleasure and thank.

Posted

Do a search for VBA + DAO

I think DAO is the easiest way to write to mdb files.

 

Like this (from memory):

 

Dim db as DAO.Database

Set db = OpenDatabase (Your filename her)

Dim tbl as Table

Set tbl = db.OpenRecordset(?)

 

Then you can add records etc.

You can also create new tables and create new databases (mdb files).

 

This is just my suggestion.

DAO is old fashioned according to Microsoft, but I find it easer to use than newer libraries (ADO?).

 

To find the attribuest in AutoCAD you can do a "For each Obj in ActiveDocument.Modelspace" if that doesn´t take too long. Search for examples using the GetAttributes method of the BlockReference object.

 

I hope this can lead you in the right direction :-)

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