ssmmrr Posted December 13, 2008 Posted December 13, 2008 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. Quote
Raggi_Thor Posted December 14, 2008 Posted December 14, 2008 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 :-) Quote
Recommended Posts
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.