AutoCAD .NET :: Make A New Drawing Or Open One?

Aug 15, 2013

In one of my application I want to open a drawing and make a new one.That doesnt work. So I copy following code from the

[CommandMethod("NewDrawing", CommandFlags.Session)]
public static void NewDrawing()
{
string strTemplatePath = "acadiso.dwt";
DocumentCollection acDocMgr  = Application.DocumentManager;
acDocMgr.DocumentActivationEnabled = true;
Autodesk.AutoCAD.ApplicationServices.Document acDoc = DocumentCollectionExtension.Add(acDocMgr, strTemplatePath);
// Alternatively: Autodesk.AutoCAD.ApplicationServices.Document acDoc = Application.DocumentManager.Add(strTemplatePath);
acDocMgr.MdiActiveDocument = acDoc;
}

At the end the MdiActiveDocument is still the drawing which where open before a new document is created.

BTW: I'm using 2013 and 2014. This method works fine in 2010.

Whats the different between 2013/ 2014 and 2010.

View 9 Replies


ADVERTISEMENT

AutoCad :: Make Specific Drawing Open When Starts?

Sep 23, 2012

I was wondering if there was a way to always make a specific drawing open when AutoCAD starts. For instance when you start it, the file that always opens is acad.dwt

I was wondering if there was a way to make it open a drawing you might be working on. Then you always wouldn't have to click so many times to open it and find the folder it was in and so on. You start AutoCAD and there it is when AutoCAD starts. You can get right to work and not have to look for it.

View 8 Replies View Related

AutoCAD .NET :: Way To Check If DocumentManager.Open Will Open The Drawing Normal Or Read Only?

Jul 29, 2012

if I open a drawing with DocumentManager.Open("drawing.dwg", false) and it is already open (or the user has no rights to write to it), the drawing is opened in READONLY mode without warning.

Is there way to check if DocumentManager.Open("drawing.dwg", false) will open the drawing normal or READONLY?

View 6 Replies View Related

AutoCAD 2010 :: Get Sheet Set Manager To Open Up Each Time Open Drawing?

Jan 7, 2013

How do I get my Sheet Set Manager to open up each time I open a CAD drawing? I turned it off and can't remember how to turn it back on. I use command SSautoopen, set to 1 but doesn't alway work. Sometimes if I close AutoCad and reopen it I can got to drop down menu and click on .dst extension and it will open but if I close out of it it won't open again unless I restart AutoCAD. I thought I used a command from the Express Tool menu but can't find it.

View 3 Replies View Related

AutoCad :: Can't Close A Drawing Either Without Exiting / Try To Open Another Drawing

Nov 10, 2011

I downloaded multi-batch as someone here said they like it for batch plotting. Once installed, however, it has changed a setting in AutoCAD. I can no longer open more than one drawing at a time. If I have a drawing open and try to open another drawing it asks me if I want to save the current open drawing.

I can not close a drawing either without exiting AutoCAD or trying to open another drawing. I un-installed multi-batch but it did not fix the problem.

View 4 Replies View Related

AutoCAD .NET :: How To Open Database From Open Drawing

Aug 26, 2012

Once I have the dwg open how do I get to the database?
 
Dim AcadApp As Object = Nothing Dim AcadDoc As Object = Nothing Try AcadApp = GetObject(, "AutoCAD.Application.18") Catch ex As Exception AcadApp = CreateObject("AutoCAD.Application.18") End Try AcadApp.Visible = False Try AcadDoc = AcadApp.Documents.Open("C:UsersPAULDesktopB-03-J-H135.dwg", True) Catch ex As Exception Exit Sub End Try Dim MyDb As Database = AcadApp.DocumentManager.MdiActiveDocument.Database

View 4 Replies View Related

AutoCAD LT :: 2013 - Can't Make Changes To Drawing

Oct 11, 2012

I have cad drawings but when I select to change a desk in the floor space the whole floor highlights - what can I do to stop that and select only what i want to delete add

View 3 Replies View Related

AutoCad :: How To Make Each Drawing To Be Placed On Different Layout

May 9, 2012

In the model space, i have 1 sheet and have 3 different drawing in it( lets say , i have a circle, a polygon, and a rectangle).

How can i put the circle on Layout1 , the polygon on Layout2 and the rectangle on Layout3.

View 9 Replies View Related

AutoCad 3D :: Make 3D Drawing From 3 2D Views

Feb 19, 2012

Is it possible to make a 3D drawing from 3 2D-views? I have 3 views, the left side view, top view and front view.

Drawing file is included to make it easier to see.

View 9 Replies View Related

AutoCad :: How To Make A Drawing In Isometric

Sep 6, 2010

How can I make a drawing in isometric?

View 9 Replies View Related

AutoCAD VB :: Test To See If Drawing Is Open Using VBA

Feb 22, 2005

how to test to see if a drawing is already open inAutoCAD using VBA and if it to make it the active document?I have a VBA macro to open xrefs by by just picking them in the drawing butI need to test to see if the drawing may already be open to avoid openingthe drawing a second time in "Read Only" mode.

View 9 Replies View Related

AutoCAD .NET :: Cannot Use Docunmentcollect To Open Drawing

Sep 1, 2013

Error 1 'open' is not a member of 'Autodesk.AutoCAD.ApplicationServices.DocumentCollection'. 

View 5 Replies View Related

AutoCAD Inventor :: Can't Open A Drawing

Dec 7, 2011

When I try to open this drawing I get this error "Internal error in persistence operation (Can't load segment PmBRepSegment via a RSeRef when loading segment DLSheet35DLSegment)".

Is there a recover command in Inventor 2012 similar to the recover feature in Autocad?

View 2 Replies View Related

AutoCAD LT :: Drawing A Open Reducer

May 5, 2013

I have got a reducer with a size of 4" to 3" dia and a length of 5". I need to open and draw its dimensions. I need the dimensions as highlighted in the sketch.

View 3 Replies View Related

AutoCAD Inventor :: Make A View In A Drawing?

Sep 6, 2013

Is there a way so that when I make a view in a drawing,

it shows up by default with all it's real lines, instead of having to select the options all the time...

View 5 Replies View Related

AutoCAD Inventor :: Make Drawing Of Piping With BOM

Oct 4, 2012

I was giving an assembly with a lot of piping in it, but the piping wasn't done using the Tube & Pipe. I need to make a drawing of the piping with a BOM. I made an ISO view and turn off the visibility of the parts I didn't need. 

My question is if there is way for the BOM to only show the visible parts in my drawings. I know in iAssemblies I can exclude the parts I don't need, but that would take awhile considering there are over a hundred parts in my assembly. I really don't want to redo the piping mainly because of my inexperience with Tube & Pipe.

View 9 Replies View Related

AutoCad :: How To Make Elements Appear Curved In 2D Drawing

Jan 29, 2014

How do you make curved elements appear curved in a 2d drawing?

View 9 Replies View Related

AutoCad :: Make Drawing For Cover Of Control Box For New CNC

Apr 25, 2012

I would like to make a drawing for the cover of the control box for my new CNC. The cover will be 4”x 16” x 1/8” thick Aluminum and will have holes for 8 switches, with letters for the function of each switch, plus 4 mounting holes 1/8” diameter in the corners.

My problem is how to establish the center lines for the switches and the mounting holes. So I draw a rectangle 4”x 16” and then if I want my switches to be 1” above the bottom edge of the cover how do I establish a center line to have all switches lined up?

The same for the mounting holes in the 4 corners. How do I establish the center lines if I want to have each hole 1/2" away from each corner?

How to write the letters for each switch? I was thinking to draw a rectangle above each switch and center the description inside each rectangle. Is this the best way?

View 1 Replies View Related

AutoCad :: How To Make A Drawing Into One Layer / Base

Mar 18, 2013

I'm relatively new to Autocad so still learning the ropes.

I've been given a set of drawings from a client to design a system on. What I want to do is turn the drawing they have given me into one layer so that I can turn it on and off to just see my system. Is this possible? If so how?

The drawing has about 300 layers currently and a lot of blocks as well.

I'm using Autocad 2012,

View 7 Replies View Related

AutoCad :: How To Make Dimensions Follow Drawing

Nov 9, 2011

I have a drawing in paper space. When I move the drawing the dimensions and texts do not move with it. Is there something I can use where the dimensions and stuff follow the drawing .

View 9 Replies View Related

AutoCAD .NET :: Open Drawing From External Program?

Apr 18, 2012

I have working code for opening a cad drawing from an external program.  That is perfect.

how can I force a drawing that is NOT readonly to open as readonly from outside cad.

View 9 Replies View Related

AutoCAD .NET :: Saving A Drawing That Is Open But Not Active?

Nov 15, 2012

using dwgDB.saveas on a drawing database that the user has open but NOT current on his screen?

For example, the user has DWG1 open and DWG2 open and currently active, my program modifies DWG1 (inactive) and when the program tries to run...

dwg1DB.SaveAs(filename, true, DwgVersion.Current, dwg1DB.SecurityParameters)

it errors with an elock violation, even though I lock the document with dwg1DOC.LockDocument before I try to save and unlock it after.

The same code runs fine on the current document so at this time I just ended making the other document current just to save it then switch back to previously current document.

What am I missing to save a document that is open but not current? 

View 3 Replies View Related

AutoCAD Civil 3D :: Enter Name Of Drawing To Open?

Jan 2, 2007

After a recent crash civil 3d now asks me to type in the full path and file name for a file i want to open after selecting the open option on the menu or toolbar.i know there is a variable that requires re setting but i don't know how.

View 9 Replies View Related

AutoCAD Civil 3D :: When Open Drawing It Is Not Becoming Active

Feb 28, 2012

In the last couple of days civil3d has started not opening a drawing as the active drawing

View 1 Replies View Related

AutoCAD 2013 :: Can't Open Saved DWG Drawing

Feb 22, 2013

I'm in AutoCAD 2013. I've been working on a drawing everyday (was just working on it yesterday), but can't open it now. I just get a blank gray screen when I open if from within AutoCAD. When I open it from my computer drive while AutoCAD is closed, AutoCAD opens and I get "Drawing1.dwg." I've tried the RECOVER command, but I don't get a response. I tried RECOVERALL command which let me choose a file to recover, but it responded saying it could not recover the drawing.

View 6 Replies View Related

AutoCAD LT :: Mtext Box Width Changes When Others Open A Drawing

Jul 12, 2013

When I create a drawing with Mtext and my co-worker opens the drawing the width of the box defaults to 0 and the grips to enlarge the box are all snapped to the insertion point.  How do we get the text boxes to stay the same??

View 8 Replies View Related

AutoCAD Architecture :: Using Macro To Open Drawing?

Sep 4, 2013

I have this macro,but it opens the folder not the drawing,

 ^C^C-filedia;0;open;"C:/ADT_2008_drawings/John Becker Construction/Chart7.dwg"

View 3 Replies View Related

AutoCAD Inventor :: Can Not Open Drawing Template

Jun 13, 2013

i use Inventor 2012 and Vault Collaboration 2012, and I often find drawing template cannot be open. with error message  The template file is open. Please close it and try again

in fact, I did not open the template file.

View 3 Replies View Related

AutoCad :: How To Open Password Protected Drawing

Jun 26, 2012

one of the drawing i forgot my password. Now i am confuse because this drawing is very important in front of me. Here is the attach....my drawing.

View 9 Replies View Related

AutoCAD Civil 3D :: Open Autocrat Without Drawing 1?

Jun 18, 2012

I don't know how I had done this before. When I had a previous version of autocrat I could Open autocrat and it would not Open drawing 1. I'm wanting to know if it is possible to have this feature again in civil 3d. Both in 2012 and 2011 civil 3d.

View 3 Replies View Related

AutoCAD 2010 :: Open Drawing Order

Jan 22, 2013

Here is what's happening:

When I open more than one drawing the second drawing that I open does not show (but is opened) I see the first drawing that was already open. If I open a third drawing, the same thing happens the first drawing shows ( but the second and third are both open).

Is this something to do with changing the Quick View Drawings Order? 

View 1 Replies View Related







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