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?
Ones every three years we have an upgrade of Inventor. In a few months we have an upgrade from Inventor Proffessionel 2009 to Inventor Prof. 2012. Since we often use special materials in our design process we also create/add the new material in the material database. So here's the question; is it possible to copy the material database (special mades) from Inv Pro 2009 to Inv Pro 2012? It would save us a lot of work!
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.?
I have a keyboard shortcut for Copy (see directly below). This command doesn't copy multiple. But if I type "Copy" at the comment prompt (AutoCAD 2013) the copy multiple is the default. Copymode is already set to "0".
I'm using AutoCAD 2013 that came with Building Design Suite (Revit) and the copy command terminates after making the first copy, instead of continuing to make multiple copies until I terminate the command. Is there a switch to control this? A sysvar?
I have a 3D file (not of my creation) that gives me some problems when I try to copy it (it is a 3D building).
The problem is that, when i click on "copy" command, I can select a point but then AutoCAD crashes and it takes about 30 seconds to return working a normal way and permit me to paste it. (it happens with "move" command too)
Otherwise, if I use "copy with base point" I have no problems: after a second I can paste it where I want.
How can it be possible? Cause if sometimes I mistake and digit "copy", I always have to wait the long Autocad response.
This problem happens with both autocad 2012 and 2013 and it doesn't happen with other 3D files I have. The drawing is made mainly of meshes.
I have a Dell notebook and a NVIDIA Quadro 2000M video card, so you can understand I don't like this problems: I spent a lot of money for something I hoped could work well with AutoCAD.
About that, aren't there drivers for the graphic card? Cause when I click on "check for updates", autocad says me that there are newer version of the driver, but then it says me that it is impossible to update it (I have a connession and a student version).
I recently upgraded to Civil 3D 2011 from C3D2010. I have used the same ACAD.PGP file for years that includes the shortcut C for the COPY command. Up until C3D2011 this would always allow me to copy an entity multiple times, (the default when COPYMODE is set to 0).
I am running C3D2011 64bit on WIN 7 64bit OS. It happens with other commands too that use a dialog box normally, i.e. INSERT - it only brings up the command line version of it.
I am having a problem with memory. I am running Windows XP with 4GB ram. when i start laying out in paper space, i copy the window in one page or copy multiple pages, every time i copy a page of window my memory builds up & up & up with each one until it gets to over 2 GB & the it tell me that if i continue with this next process CAD will crash because i have maxed out the virtual memory. This is usually not a problem when i am doing smaller one off drawings with a few pages of windows but when i am doing a bigger project with 20+ pages or windows i run out of memory.
I gave the latest file to my business partner & he does not have this problem at all. He can open up many windows & as many pages as Cad will allow. His memory always fluctuates around the same 2GB. He is running Windows 7 with 4 GB ram.
How i would create a new linetype in AutoCAD LT 2004. For example creating an electrically traced line that is a dashed line with the letter E in the line.
I work with a drawing that for some reason don't have a proper fence line in it. I tried to load another .lin file, but still the fence line looks funny. The line I'm after looks and work ok in alla other files but this one!
I tried to copy paste a fence line from another drawing but what's pasted is just half the linetype...
The line should look like this -- / ---- / ---- / ---- but comes in as -- ---- ---- ----
i set linetype scale in one of the drawing which is lts value is set to 900..when i select line and open option in order to set linetype scale it show the message..
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?
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.
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")
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.
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.
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.
I am autocad 2010 user. I have drawing files from consultants with custom linetypes. I have deleted the. shx file but need to change line type. How do I select the relevant lines to convert to normal line type?