AutoCAD .NET :: Unable To Access Block Reference In Database

Nov 23, 2012

I inserted a block from a dwg drawing with the following method:
 
public static ObjectId InsertBlock(string fileName, Point3d insPoint) { var acadDoc = Application.DocumentManager.MdiActiveDocument; var blockId = default(ObjectId); using (var acadLockDoc = acadDoc.LockDocument()) { var dbTemp = new Database(false, true); dbTemp.ReadDwgFile(fileName, FileShare.Read, false, ""); var blockName = Path.GetFileNameWithoutExtension(fileName);
[code]........

View 3 Replies


ADVERTISEMENT

AutoCAD .NET :: Database Parameter In Batch Process - By Reference?

Nov 21, 2012

I have a master batch process which comprises several steps each of which will change the database. I am gettting the database once, then pass it thought the subsequent steps. Simple example in pseudo

void BatchAll(){
database db = new database
BindXref(db)
PurgeAll(db)
DoSomethingElse(db)
save dwg
}finish BatchAll

Should the database db be passed by reference (ref db)?

View 4 Replies View Related

AutoCAD .NET :: Access Drawing Database From A Different Thread

Sep 29, 2011

I'm experimenting with treadsafe progressbar, that would allow me to stop the process.

but for some reason, on this line

Dim _db As Database = AcApp.DocumentManager.MdiActiveDocument.Database

AutoCAD crashes with fatal error This runs on the new thread, so i suppose it has something to do with it, but i have no clue, why this should be a problem.

View 6 Replies View Related

AutoCAD Map 3D :: Connecting To Access Database Through ODBC

Feb 5, 2012

I'm using Windows 7 (64 bit) and I have to connect a file (.mdb) created with Microsoft Access 2007 to my Autocad Map 3D 2011 draw. I uninstalled Office, installed the AccessDatabaseEngine_x64.exe and re-installed Office. Then I followed step by step the process shown in the video here  with ODBC but it doesn't worked for me. It says "test connection succeeded" but when I attach the database, it comes up with a red "X" symbol next to it.

View 2 Replies View Related

AutoCAD Map 3D :: Rebuilding Access Database But Retaining Links?

Oct 1, 2013

My company has an access database that has all of our service data on it. I am currently considering rebuilding the database because it is a database with one table and a million fields. I want to split the database up into separate tables with relationships. All of these tables would be linked based on the same key field Service_ID.

Now here is the hard part. The data would be in a one to many relationship with one record for service info and multiple records per service for pipe info. The data is currently linked to objects in AutoCAD Map 3d 2014 based on the Service_ID key field and a "service" link template.

If i rebuild this database, am I going to lose all of my links? or will i retain the links? Also, is there a way to automatically generate links based on the service_ID field? For instance there are 3 records of pipe information for 1 service. Previously all of these records would be in the same table, but now the tables are split. Since they have the same Service_ID as the Service information, will the links show up?

View 9 Replies View Related

AutoCAD Inventor :: Getting Data From Access Database Using ILogic

Aug 2, 2010

I have a program that populates an access database with part parameters. Each Inventor part can look up its own parameter values from the database when supplied with a single parameter, the ID number of the database record. The ID number is derived from a blank part that the program also updates. So in a nut shell, the program populates the blank part's parameters with all database ID numbers that would make up entire assembly. Those parameter values are derived to all the parts in an assembly. This is by far the fastest most efficient way I've found to rapidly generate an entire assembly. In a matter of seconds I can have a new 1000+ part assembly.

 The rumor that Inventor will eventually sever ties with VBA has put this whole process in jeopardy. So I have been looking into using iLogic to perform the same task of looking up the data from Access. I know that iLogic has Excel functions built into it, but because the original program is Access based (changes this is not an option) any way to use iLogic to retrieve data from Access.

View 4 Replies View Related

AutoCAD Inventor :: Material Link To XML / SQL Or Access Database Possible?

Jul 11, 2012

This is my problem, each material in my cie. have a number code

EX.R069ARS407WLD35460

IT'S POSSIBLE TO LINK MY MATERIALS TO A XML, SQL OR ACCESS DATABASE???

View 1 Replies View Related

AutoCAD Map 3D :: 2012 - Refresh Access Database ODBC Connection?

Feb 17, 2012

Here is the Scenario, Win 7, 64 bit, Office 2010, and yes I have installed 64 bit drivers, with Map 2012.

I have an Access Database with Water and Sewer information.  I connect thru FDO and every thing is great.  I make a change or add something to the Access Data Base and I don't see the change until I disconnect and then re-connect?  I was under the assumption that this was a live connection? Is there a way to refresh the connection without having to dis-connect and then re connect?

View 1 Replies View Related

AutoCAD Map 3D :: Microsoft Access 2013 Database Not Compatible With 2014?

Aug 22, 2013

Recently our company upgraded to office 365 with Microsoft Access 2013. I cannot seem to connect to this new format using the task manager. We used to use quite an old version, 2003 I think with no worries. 

Am I doing something wrong or have the developers missed something quite fundamental to Map 3d?

View 4 Replies View Related

AutoCAD Inventor :: Read / Retrieve Information From MS Access Database Using ILogic

Nov 9, 2012

I am currently trying to retrieve data from a MS Access Database, we currently have iProperties with number values in them. An outside programmer created a code which takes these values and exports them to an MS Access Database, where they are then translated to mean something.

Instead of exporting those numbers, I want to use them to find what they ACTUALLY mean within the database and bring that information back into iLogic. (ie. 123456 actually means "1/4 Flat Bar Steel")

In short, I wish to access the MS Access database through iLogic in order to read information from it. 

I have searched for the better part of 3 hours but have not found a good answer or example code of this situation. I am not that experienced in programming, but have worked with the API before for developing Automated Drawings and have an understanding how to navigate through. If there were to be some example code, I can begin to understand the process quite well through this method as well by seeing how to go about coding this.

View 2 Replies View Related

AutoCAD VB :: How To Access Point Through Reference Or ID

Feb 12, 2013

How can I store reference to AcadPoint for later use? I am inserting hunderds of point to ModelSpace. In each loop I have reference to created point. But how to store this reference for later use in some array, collection...? The Colletion.Add(objPoint) does not work.

Set objPoint = ThisDrawing.ModelSpace.AddPoint(point)

View 9 Replies View Related

AutoCAD .NET :: Error While Changing Block Definition Of An Block Reference

Oct 21, 2013

I'm trying to change block the definition of an block reference.

I did something like this:

blockreference.BlockTableRecord = newBlock.ObjectId;

In most cases this works well. However I found a case that it not work as well. When I try to change the definition from a new block that I have created in my test DWG, it disappears from the model.

View 6 Replies View Related

AutoCAD .NET :: Determine If A Block Reference Of The Block Exist

May 3, 2012

I have a block: “Block_A”. I am trying to determine if a block reference of the block exist.

Currently I would iterate every block Reference in the Block Table, and then dig deep into each block ref . . . . .

I was wondering if I could just take “Block_A” and see if it has reference and where the references are. Perhaps this is just wishful thinking but I was hoping for a faster way to obtain the references then to iterate thousands of blocks in each table record.

View 4 Replies View Related

Revit :: MS Access Database That Can Export Family Tables?

Sep 15, 2011

MS Access database that can export Family Tables? Or knows of a 3rd party application that all the type information can be houses in a database, and the family table's TXT is just an export. The family tables we create are nemorus, and lengthly family tabels, and Excel just is not cutting the mustard.
 
Or would Autodesk ever include this in Revit?

View 5 Replies View Related

AutoCAD .NET :: Insert Block Reference Using Block Name

Nov 17, 2012

Drawing contains a block with "BlkName". I want to insert blockreferences of this existing block using .Net. All shows how to insert a new block and then use the BlockID returned by the insert function. In my case I only have the block name and there is no Block id. How to get it or how to create a block reference of an existing block?

View 3 Replies View Related

AutoCAD .NET :: Block Information Database?

Jun 27, 2011

I want to create an application that intensively uses dynamic blocks, cross checking any new or changed block entity with existing ones.

It needs to be almost instantaneous but the only way I know will be impractical.

Looping through the property collection of each block reference, searching for each parameter then checking for a match.

Is there some sort of database functionality I can use to quickly compare block information?

View 1 Replies View Related

AutoCAD 2013 :: Unable To Link Database To Drawing

Jul 31, 2012

I recently received a new computer with windows 7 and installed 2013.  I now cannot link my database to my drawing. 

View 5 Replies View Related

AutoCad :: How To Restore Deleted Xref Or Block From The Database

Oct 22, 2012

deleted some xref by mistake.

is there a way to restore deleted xref or block from the database?

View 9 Replies View Related

AutoCAD Civil 3D :: Unable To Delete Points From A Survey Database

Jan 2, 2014

I am unable to delete points from my survey database. What could be preventing me from performing this task?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Attribute Of Block With External Database

Mar 2, 2013

I have a block with:

tag1: XX

tag2: YYYYYY

tag3: ZZZZZZZZ

I have an external file check.txt with string:

XXYYYYYYZZZZZZZZ

I would like to create a lisp program that check the attributes of block using an external database, if tag1+tag2+tag3 = XXYYYYYYZZZZZZZZ ok end program, if not  make a circle on block :

View 3 Replies View Related

AutoCAD .NET :: Unable To Reference Autodesk

Feb 22, 2008

I started a new Windows application C# project in Visual Studio 2005, my intention is to use COM only in this one, not the .NET wrappers. So I added the references like the Autocad 2008 ActiveX and VBA developers guide states:

To fully access AutoCAD automation objects from Microsoft Visual Studio® .NET, create references to the following files:

•The AutoCAD 2008 type library, acax17enu.tlb, located at c:program filescommon filesautodesk shared.
•The AutoCAD/ObjectDBX Common 17.0 type library, axdb17enu.tlb, located at c:program filescommon filesautodesk shared.

After adding the references I have under project references “AXDBLib”, but it has the yellow warning sign over it. The error list has two lines: Cannot find wrapper assembly for type library "AXDBLib".

The referenced component 'AXDBLib' could not be found. So what’s the problem and how to fix it? I can get around the reference error using late binding and referencing nothing, but late binding is kind of unnatural with C#.

View 9 Replies View Related

AutoCAD .NET :: How To Get All Block Reference In A Drawing

Mar 29, 2013

I need to get list of all block reference in  a drawing without iterating through all entities in the drawing.

View 7 Replies View Related

AutoCAD .NET :: Polyline 3Ds In Block Reference

Jan 11, 2013

I have a weird problem with exploding block reference with vb.net as follows.

When I use BR.explode(DBObjectCollection), and append the entities in the object collection to model space, 

the 3d Polylines inside the block reference do not get appended and I do not get any kind of error. The reason for this eludes me as of yet. (remember, simple polylines and lines and other objects do get appended to model space)

When I use BR.explodetoOwnerSpace(), the block reference explodes as it normally is expected to, but then I have no way to collect the objects from the exploded BR.

View 9 Replies View Related

AutoCAD Map 3D :: Block Reference Scale

Sep 27, 2012

I'm working with two different drawings to import Layers for Lot Grading and when I'm importing the Block Reference from the origin file, it's setup as Linescale 0.5, but when I import into my regular basemap, which is setup for Linescale 1, the text size is double what it should be. 

View 1 Replies View Related

AutoCAD VB :: Block Reference Rotation

Oct 22, 2013

I'm trying to write a vb script to extract information from the CAD drawing. While testing, i found that for some drawing blocks, the corresponding AcadBlockReference Rotation returns 1.57, but when i look at the actual drawing, block properties, the rotation is 0.

View 3 Replies View Related

AutoCAD .NET :: Selecting In Block Reference?

May 11, 2010

i need to use something with similar effect to Editor's method SelectCrossingWindow, but i need it to select object in Block Reference. How can i do that?

View 5 Replies View Related

AutoCAD .NET :: Block Reference Attributes

Jul 13, 2012

I have a block reference in a dwg that is a like a form, for example:

Written By: Diogo
Author: Diogo

Date: 13-07-2012
State: Check-in

In autocad this is a block, and on the attributes of the block reference I only can edit State and Author, and i would like to get all values. Because i want to fill those values of Written By, Author, Date and State by code. I can reach the attribute collection of the block but i only can see the State and Author.

View 7 Replies View Related

AutoCad :: Explode A Reference Block?

Jun 14, 2011

is ter any way to explode a reference block

View 4 Replies View Related

AutoCAD .NET :: Select Block Reference By Attribute Value

Nov 29, 2012

I have a drawing with many block references on it and they have some attributes.

I know how to find the block reference witch the attribute value, and even change it but I don't know how to select it once I have the object ID of the block.

How can I do the selection without asking the user to select it?

View 6 Replies View Related

AutoCAD 2013 :: Label Block Reference

Aug 2, 2013

I wonder if this can be done.  i have a number of blocks which have labels to them i.e. JW1, JW2, JW3 etc. which corresponds to the block name.  Is it possible to have the label automatically referenced to the block name so if i change the block name to JW10 the label within the block changes to JW10 as well.

View 4 Replies View Related

AutoCAD .NET :: Get Block Reference Information Error

Mar 21, 2013

I get a block reference (has attribute) from other drawing as code follow:
 
Public Sub GetBlock_Info() Dim blockName As String = "test" Try Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim doclock As DocumentLock = doc.LockDocument() Dim ed As Editor = doc.Editor Dim ofd As New OpenFileDialog("Select Drawing", Nothing, "dwg; dwt", "ATS detai drawing", Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags.DoNotTransferRemoteFiles) Dim dr As
[code]..........

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved