AutoCAD .NET :: ObjectOverrule For PnId Database

May 31, 2013

 Any equivalent ObjectOverrule for the PnId Database?

If an entity is copied I dont want certain field values to be copied.I've tried an ObjectOverrule but I can't get the RowId at that point.

I also noticed that the field values are set as XData. I edited the XData in my ObjectOverrule but the values still gets copied.Is there a setting at project level to control which fields not to copy?

View 1 Replies


ADVERTISEMENT

AutoCAD .NET :: Difference While Doing Customization With Database / Without Database Services

Aug 6, 2013

I am working on the AutoCAD customization and doing the same by VB.Net & C#.Net. But I just want to know the difference as mentioned below:

1. Insert Block In AutoCAD

Using VB.Net without using DataBase services..Only 1 statement is required to Insert the Block objAcadDocument.ModelSpace.InsertBlock(Required Arguments are here) Using C#.Net with DataBase services

There are many statments are there to insert only 1 block..Like Start Transaction, Lock the document, Get the Object Id Block etc...So my quetion is that when I have to use DataBase services and when not 

what is the advantage of doing customization using DataBase services rather than go for wihout DataBase services.?

View 4 Replies View Related

AutoCAD .NET :: UCS Of Database

Aug 20, 2011

Is it possible to take Current User Coordinate System of external Database object, like

Application.DocumentManager.MdiActiveDocument.Editor.CurrentUserCoordinateSystem?

View 7 Replies View Related

AutoCAD Map 3D :: Add Database As Source For Object

Dec 18, 2012

I'm trying to add a database (excel ) as source for object in Map3D.

I start but when i select the excel file that i've created and stored in my pc map3d says that the cration of the data source doesn't work.

View 7 Replies View Related

AutoCAD .NET :: Add Handler To Object In Database?

Jun 2, 2011

what is the best way of getting (modified) event triggered for some specific object?

i see a lot of examples doing: if database is modified, then trigger event, then iterate our list to if that object is in it.

is that the better that way, like to add handler to the specific object, and then when each of them is modified, then each of them call handler?

View 3 Replies View Related

AutoCAD Map 3D :: Convert DWG With Database Links?

Jun 8, 2012

I am trying to convert several drawings that are linked to an SQL database to SQL spatial. The drawings are from a Autodesk map 2004 system. I have Map D 2013 64Bit installed on a laptop along with SQL server 2012 RC0 (Microsoft SQL Server Management Studio 11.0.1750.32 Microsoft Data Access Components (MDAC)  6.1.7601.17514 Microsoft MSXML 3.0 4.0 5.0 6.0 Microsoft Internet Explorer 9.0.8112.16421 Microsoft .NET Framework 4.0.30319.269 Operating System 6.1.7601).

To keep my rouge laptop off the company network I exported our existing SQL data to a access database that I placed on the laptop and converted back to SQL and linked it to the 2004 drawings. That part worked fine. I would like to convert all of them to SQL spatial. I have converted a small drawing but it took a couple of hours. I am in the process of a larger drawing that has 60,000 entities and it has been working for 8 hours and only has 4550 of them completed. I am using the output to fdo connection.

View 8 Replies View Related

AutoCAD .NET :: Finding A Sphere In Database

Mar 27, 2013

As part of the automation requirements we are working on (through the .NET interface), we would like to find out whether a given drawing contains a sphere and if it does we would like to know its properties. We are doing something like this, to loop through the database and am able to get all Solid3d type of objects.

What I would like to know, if a given solid3d object is a sphere or otherwise. The code snippet is pasted here for reference:

bool bContainsSphere = false;            
foreach (ObjectId Id in Ids)
{
  DBObject oObject = ts.GetObject(Id, OpenMode.ForRead);                  
  if (oObject.GetType().Name == "Solid3d")
 
[Code] ......

View 8 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 .NET :: Zoom Extents On New Database?

Sep 17, 2007

I have created a new database: Database newDb = new Database(true, true) Inserted a block into modelspace and now I want to zoom extent before saving.

Can this be done working on a new database in memory? all the examples I have seen on this board use Interop on a open document.

View 9 Replies View Related

AutoCAD .NET :: Linking Dwg To External Database

May 10, 2012

How can I link an external database(say access/oracle) to a drawing so that I m able to insert/update attribute directly from the autocad map drawing.

View 1 Replies View Related

AutoCAD .NET :: Browse All Objects Into Database?

Sep 3, 2012

How i can browse all objects into an autocad database?

View 5 Replies View Related

AutoCAD .NET :: Temporary Document And Database

Oct 18, 2012

I have a preview control on a window that I want to display temporary custom entities that the user can build before adding to the current working document. Is there a way to create a temporary document and database that I can show in my preview control? The Preview Control was created with the guidance of the BlockView.net sample.

What I mean by temporary, is a document / database that cannot be displayed or edited in the editor window.

View 2 Replies View Related

AutoCAD .NET :: Accessing Database Tables

Sep 21, 2011

I'm having a problem accessing data manager tables in the 2011 version.  My C# .NET code worked fine with 2010.  Here is a sample of the 2010 code that works, but returns zero length tables in 2011.

C#

ProjectPartCollection oPP = PlantApplication.CurrentProject.ProjectParts;
PlantProject oPProj = PlantApplication.CurrentProject;
Project oProj = oPP["PnId"];
try
{
//get ACAD data table
[code].......               

The last two lines fail to object any meaningful data in 2011.  In 2010, I would have all the table rows and could access tags and asset information. 

View 2 Replies View Related

AutoCAD .NET :: Difference Between Database Definitions

Apr 22, 2013

what's the different between

Dim oDb As Database = HostApplicationServices.WorkingDatabase
 and
Dim oDb As Database = Application.DocumentManager.MdiActiveDocument.Database

View 3 Replies View Related

AutoCAD .NET :: Copy Linetype From Another Database

Aug 17, 2006

I have 1 drawing open, I have another drawings Database open . I have found the LinetypeTableRecord (in the Database) of the line type I want to copy to the open drawing.

How do I copy a LinetypeTableRecord from one drawing to another?

View 8 Replies View Related

AutoCAD .NET :: Create New Material - Add To Database

Jun 17, 2011

I'm having a complete blockout on my attempts to create a new material with VB.NET.

Dim db As Database = Application.DocumentManager.MdiActiveDocument.DatabaseDim tm As DBTransMan = db.TransactionManagerDim myT As Transaction' myT = tm.StartTransaction()Dim tt As Autodesk.AutoCAD.DatabaseServices.Material = New Autodesk.AutoCAD.DatabaseServices.Materialtt.Name = "Mat_new"tt.Description = "New Material"myT.AddNewlyCreatedDBObject(tt, True)myT.Commit()

It was noted that this code didn't work (which I can confirm):

"Just a guess, but you probably have to add it to the Database in order to use it."

I can't find any way to add this to the database. I'm working with the R2010 drawing format it that is relevant.

View 6 Replies View Related

AutoCAD Map 3D :: Database And Drawing Edits At Same Time

Mar 12, 2012

Can you have a database and the dwg file open at the same time and not be in read-only mode?

For example: I have access database file open and editing it while in the dwg file with the graphical info that is linked to the database.

View 8 Replies View Related

AutoCAD Civil 3D :: Survey Database Coordinates Off

Feb 23, 2012

i have a point file specifically a PNEZD file. when i import points into the survey database the coordinate in the database is correct but the coordinate on the drawing tends to be 5 feet off one way and 1 foot off the other. When I import point through the points pull-down menu the coordinates are correctly shown. When I import point into survey database from drawing the coordinate is incorrect in the database but correct on screen.

View 3 Replies View Related

AutoCAD .NET :: Application Which Uses Oracle Database As Backend

Jun 22, 2012

I am working on an application which uses an oracle database as backend. The application uses a login dialog in void IExtensionApplication.Initialize()

so my application knows the credentials for the oracle database. I use a drawing-template which has a database link in it. This points to a UDL-file  in 'Data Links'. If i add the Credentials to this file and set the Parameter Persist Security Info=True the Credentials are ignored. So i thought i can avoid the additional loginprocesses if I add the following

var acadApp = (Autodesk.AutoCAD.Interop.AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;dynamic cao Connect = acadApp.GetInterfaceObject("CAO.DBConnect.16");cao Connect.Connect("myconnection.UDL", "username", "password", false);
 
If i don't execute the code above i need two logins for the new drawing. After I added the code to my application I still need one oft this.

View 1 Replies View Related

AutoCAD .NET :: Updating Drawing / Database After Modifying It

Jun 30, 2012

I have written a command that replaces the given annotative scale of all objects in a drawing, with another annotative scale. Works great, except I can't remove the replaced annotative scale (with SCALELISTEDIT - DELETE button), unless I save the drawing and then open it again.

An annotative scale that is in use, can't be deleted. But since I can delete it after reopening the drawing, I am sure it is not in use anymore.

Is there a way to "refresh" the drawing/database, without reopening it?

View 5 Replies View Related

AutoCAD Map 3D :: New Database And Shape Files Creation

Sep 26, 2013

I have started a new project and would like to use the database table from a previous project with this one. Basically what I want to do is create a new shape file using the a previous database table so I do not have to create a whole new data base.

View 1 Replies View Related

AutoCAD Architecture :: Cut From One Keynote Database And Paste To Another?

May 21, 2012

How I can cut from one keynote database and paste to another? in keynote editor?

View 1 Replies View Related

AutoCAD Map 3D :: Layer Files And Oracle Database

May 31, 2011

I have just installed Map3d 2012 on a new windows 7 machine and connect to data using oracle! I have some .layer files that are stored on my server which worked perfectly in 2011! The problem I have now is when I use Load layer from the task pane I receive an message that reads..

Failed to open FDO connection
ORA-01005: Null password given: Logon denied

I can log in to my oracle database which gets rid of the error but no data is bought in! Also if I try to connect with query (polygon region on Map) from data connect (polygon region on Map) no data shown, just a red polygon where the data should appear!!

View 8 Replies View Related

AutoCAD Civil 3D :: Moving A Survey Database

Dec 7, 2011

Are there any issues with coping a survey database to different directory?

View 3 Replies View Related

AutoCAD Civil 3D :: Survey Point Database

Mar 6, 2012

How are you or your company managing points as in field shots, storage, dulplicate point numbers?

are you using vault?
are you using the point database?
are you using one drawing file to import and store the points?

what we are doing now is using the point database as a storage location but it fails for notification on when a point # is duplicated.

surveys has a drawing file they use to import, store and build the existing ground surface from the points. this allows the notification of when a  point  number is duplicated. but it is not as secure or flexable as the old LDD way.

We don't use field books just text files from the collectors imported in. Vault is not an option for us. (at this time)

so what i am looking for is how others are adapting to this change, and what worked or not.

Win 7 pro 12gb
NVIDIA Quadro 2000
LDD 2009
IDS 2014

View 9 Replies View Related

AutoCAD Map 3D :: Database Link Only Generates One Record?

Jul 21, 2011

I have been working on some drawings when I linked up to a database that I had recently generated.  I wanted to link some polylines to an external MS Access database so that I would have the additional object data available in the drawing.  I attached the Access database, then created a link template on the key field (key field is called PipeID).  I then used the "mapod2ase" command to generate the links based on the link template.  However, when I went into the object properties to check on the data, the only field that came up under the link was the key field (PipeID).  I have tried re-linking a number of times, but each time I only get the key field in the object data.  I can open the table itself from the task pane, and it shows all of the fields, and the links work because the highlighting feature works as normal, but the data is not showing up in the properties.

I was thinking that I may have reset some sort of system variable on accident, so I made the same sort of link to an older table that I have used before.  When I link to this table, all of the linked data shows up in the object properties.  The only real difference between the two access databases is that the one that works was made in Access 2000, and the one that is not working was made in Access 2007.  Is there some sort of problem when linking to the newer versions of Access?  (see this post:[URL]

View 7 Replies View Related

AutoCAD Civil 3D :: Delete Survey Database

Jan 19, 2010

I am running AutoCAD Civil 3D 2010. I am a new user and just going through some tutorials and created a couple of survey databases for practice. The problem I am having is I can't figure out how to delete them. When I exit Civil 3D and restart it, those databases are still there under the survey tab in Toolspace even though I haven't even opened a drawing yet. Also, do I need MS Access installed on my workstation to run any functions within Civil 3D?

View 5 Replies View Related

AutoCAD Civil 3D :: Connect To DWG Database Via Com Interop

Mar 23, 2012

C3D 2012 SP1

I am trying to connect to a dwg database via com interop. Here is the
 
using System;using System.Diagnostics;using System.IO;using System.Windows.Forms;using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.DatabaseServices;using Autodesk.AutoCAD.Runtime;using Autodesk.AutoCAD.EditorInput;using Autodesk.AutoCAD.Interop;using Autodesk.AECC.Interop.UiLand;namespace Proj2{
[code].......

View 4 Replies View Related

AutoCAD Map 3D :: External Database To SHP Files OD Table

Oct 25, 2011

I have shp files and an external database file and I wish to merge the data from the External database to the Shp files OD table.They both have a column with entries matching so I figured I could use a Join to complete this. This is where I have run into difficulties.

I tried to import the spreadsheet using FDO but there is no XYZ data its just pure data. I added dummy XYZ data and tried again but I am unable to insert the data. the checkbox is greyed out, I select the Identity property to match the main title and it does not work.

I tried adding a new data source but I am unable to perform a join with this. right way to import the data from the excel sheet and add / merge the data to the FDO table created by the shp file.

View 3 Replies View Related

AutoCAD .NET :: Getting Database Object Of Drawing File?

Aug 8, 2012

How i can get Database object of Drawing file with out opening.

View 1 Replies View Related

AutoCAD Map 3D :: 2006 - Way To Connect To ArcIMS Database

Nov 30, 2005

Is there a way to connect Map 3D 2006 to an ArcIMS database, and view the data as a raster image overlay? This would be a very useful capability, but although I've come across ways of connecting directly to the ArcSDE server, I can't find any way of viewing data from ArcIMS.

View 3 Replies View Related







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