I need to open a bunch of drawings, update a block and then save. I am trying to do it without opening each drawing in AutoCAD. Here is the code snippet I have. I figured before I plug in my block editing code, I would test things out with just adding a line. It seems to be boing through the drawings, and I get no errors, but the line is not being added.
Dim mydb AsNewDatabase(False, True)
mydb.ReadDwgFile(Newfname,FileOpenMode.OpenForReadAndWriteNoShare, True, "")
Using Trans AsTransaction = mydb.TransactionManager.StartTransaction()
Dim btr AsBlockTableRecord = Trans.GetObject(mydb.CurrentSpaceId,OpenMode.ForWrite)
Recently upgraded to Civil 3D 2013 and drawings opened up fine. Now today any drawing that opens shows the plan view as last saved but then after loading takes the drawing and shifts it into a 3d view similar to a crossection. Is there a setting somewhere that has been changed? I noticed after a windows 7 update was preformed.
I have two drawings A and B. I work in A and I need some design elements from B.
When I open the drawing B everything I have in drawing A disappeared. I refer to all elements of design (blocks, lines, polylines, etc.).
After studying the issue have concluded that the design of all elements were automatically isolated. Right click> Isolate> End Object Isolation and everything reappears in drawing A.
I mention that I installed Autocad Map 3D 2012 x64 on Windows 7 x64 and work in Map Classic Workspace using the same coordinate system in both drawings.
When I open an drawing, AutoCAD opens *two* drawings, the one I wanted *plus* a new one (called drawing 1.)Why does this happen and can it be prevented?
Is there a way to edit a .dwg file (specifically I want to gather entities based on their layer and then change them to a different layer) without opening the AutoCAD?
I guess I'm looking for some sort of way to open the file without all the graphics. I just want to access and edit the data.
I have a large amount of files that need to be processed and it would just take forever. I was hoping there was some way to open the drawing in the background for the program to work with.
If I zoom in on a small detail in a large sketch and then issue the "edit sketch" command Inventor changes the view to where the origin is visible on the screen. Is it possible to disable this?
I'm reading a .dwg in from a database and writing to a local file.I'm using the following code to open it after I write it to a local file. Application. Document Manager.Open(filepath); What is happening is soon as it gets to that line of code AutoCAD either crashes or it has a StackOverflowException.
I've stepped through and before I go to open the file I have double check it is there. Also after AutoCAD crashes if I go to where I wrote the file to and open it that way I can open it by double clicking it.
So I have a problem opening this drawing that i have worked on for quite a while now and all of a sudden this morning when i tried to open it i got the following message:
"This DWG file was saved by an application that was not developed or licensed by Autodesk. What do you want to do?"When I continue to open the drawing some stuff is missing from the drawing?I am using Acad LT 2012 and this drawing was working fine until now.
Is it possible to export a drawing to pdf without opening a drawing where AutoCAD is installed.
I want to write my own code using AutoLISP or VB.Net (and not use any existing third party utility) because I have some specific additional requirements.
Currently in AutoCAD 2008, evertime I browse my folders and dbl click a dwg - AutoCAD opens that drawing in a new window. If I click on three drawings, AutoCAD has three different AutoCAD programs running.
If I'm inside AutoCAD and choose File, Open, etc... then the new drawing opens in the same AutoCAD program. I'd like for that behavior to work if I have AutoCAD already open and I browse my server thru explorer and dbl click a dwg on the server.
Whenever I go to save a drawing or open a new one from AutoCad, a command box shows up asking me to manually type in the file name and file path of the drawing I would like to open or save. Before I could do it as most programs do (Microsoft word, excel, etc.) where I can browse for the file via folders. Has this happened to any of you before and what do I need to do to get it back to normal?
I have an issue with opening my old drawing files (.dwg). I usually make a backup copy of all the drawings I have done and save them according to the project numbers. The drawings I have difficulty opening were done ages ago and backed up on a CD.
When I was trying to open the drawings from the CD, I received error messages saying "cannot find the specified drawing file. Please verify that the file exists". I also noticed that all of those drawing files are of size between 30Mb and 35Mb. So clearly, there is some data in them.
I also tried to do copy and paste from the CD to my local machine but to no avail. It said the file may be corrupted or something. I do not know if this is to do with losing path or what.
we are having a problem here at our office. this revolves around one file. When I open the file, some objects (text, hatch, lines - all different layers) disappear. This happens before any command is made, and the object that disappear are on layers that are active and not frozen on all viewports. Also, the rest of the objects on the layer are visable. Other objects on these layers are visable, and the objects that disappeared are not visable on the model space or paper space. On top of that, when someone else opens the file, different objects turn invisable, and they can see the things I cant. The drawing takes about 5+ mins to load, dispite it being not a very large file. I tried purging unused items, reconciling layers, unhiding everything, freezing and unfreezing all layers and restarting autocad.
Coincidentaly the x-ref dwg is having a very similar issue.
I've recently upgraded to AutoCAD 2012 and CADS RC 2012 and a really annoying thing has starting happening! Every time I open a new drawing or an existing one, all the layers are automatically set to 'no plot' so print previews come up completely blank every time! I then need to manually go through all the layers setting them to plot or no plot as required!
I am trying to automate opening a document and inserting a new layer in it. Inserting the layer and opening the document is quite easy, but doing both is proving to be quite difficult.
Here is the Code that I am working with. The code for creating the layer works fine in an already opened document. It seems that autocad cannot find the opened file.
Sub Open_and_new_layer()Application.Documents.Open ("C:UsersPatrickDesktopAutocad program66986691_BL_01.dwg")Dim strLayer As StringstrLayer = "BOM"Dim layCurrent As AcadLayerOn Error Resume NextSet layCurrent = ThisDrawing.Layers(strLayer)If layCurrent Is Nothing ThenSet layCurrent = ThisDrawing.Layers.Add(strLayer)If layCurrent Is Nothing ThenMsgBox "Error creating layer " & strLayer & "."Exit SubEnd IfEnd IfThisDrawing.ActiveLayer = layCurrentEnd Sub
After upgrading/switching my stand alone license from Civil 3D 2011 to Map 3D 2013, my computer is crashing before a complete opening of some larger dwgs (1575 KB). Sometimes I get an Out of Memory message.Other (much smaller) drawings open fine.The switch from Civil to Map was made because we were not using any of the civil bells and whistles that make it unique.
Map suits our needs. We use shp files (data connect) to generate most of our work.I can use another computer in our office that has Map 3D 2011 and am able to open up any of the drawings with no problems. Because I had no issues with Map 3D 2011, I thought moving up to 2013 would be "easy".
We have a subscription and every couple of years try to load up the latest and learn to live with it.Now I am wondering if we can all just go to Map 2011 and forget 2013.
I am having problems in opening a drawing exchange file sent to me by a friend who is using TurboCad V1.1 In trying to open the file using AutoCad 2000 I am getting the following error message "Invalid or incompatible DXF input - Drawing discarded".
I thought that the whole point of a dxf file was that it could be universally recognized from one system to another.
We are running LT 2010. I have one drawing that crashes Autocad while the drawing is trying to open. The drawing is about 13 Meg. The crash occurs when it gets to the regen step. The program does not continue and it is necessary to go to the Task Manager. Autocad shows as not responding. Performance shows 50 - 100% CPU usage. The task must be ended. CPU usage drops to < 10%. The recovery utilities say that everything is OK and make no difference. It is doing the same thing on another PC. About 10 Meg of the file is one block. I can open that block separately without a problem.
How to change the settings (if it has) for opening another drawing. because for example I opened an autocad file, and again i want to open another file, when I opened another file it will not display in the same window which I first opened, it is very hard for me to put my mouse pointer on the taskbar to choose that drawing and again return in another drawing, better if using the windows button inside the autocad. here is the image just to be clear on what i am trying to ask.
I would like to run some code BEFORE AutoCAD opens a drawing. It's a simple validation routine. Ideally speaking the sequence would run as follows...
The user opens a drawing in some way (file dialog, windows explorer, sheet set, etc) I run my validation routine If it passes validation let AutoCAD open it / If it doesn't abort the process.
I can override the OPEN command and substitute my own, but there are a variety of ways to get a dwg open. How to stop or abort opening a drawing consistently? Even if it's not .net?
Is there a way, using VBA to get the sheet size of a drawing without opening the drawing? I know how to get it with the drawing open, so alternatively, is there a way to open all the drawings in a folder, one at a time, then get sheet.size, then close and open the next?
When I opening any of the drawing using File Dialogue in my c# application, user interface is getting minimized. How can I set User Interface to top level in any of the drawing ?
Every few weeks when opening a drawing, my computer restarts (just plain crashes windows and it restarts automatically). This only happens using AutoCAD, no other program has done this as of yet. I have no service packs installed and I haven't seen another post that refers to this problem. When I click on "Check for solution", nothing comes up.
Autocad LT 2008 keep crashing and not responding everytime i try to open any drawing file.i don't know what is the problem since i only using Window XP with 2.67GHz, 3.36 GB of RAM.
I have created a new drawing template using an iLogic Form and Prompted Entry. What I would like is a Rule that is generated when a user opens a new drawing template. The rule that is created would open up the new iLogic Form I created where various Title Block information is entered (Client Name, Client Address, Date, Drawn By, etc... I know you can manually open the iLogic Form that I created via the iLogic tab, but I would prefer the form open upon opening the new drawing. Once comlpeted, the user than imputs the Prompted Entry values (Drawing Name, Drawing Number, etc...).