AutoCAD 2010 :: Open And Create A Drawing In 2012 From Visual Basic 2010
Jul 1, 2012
I'm doing a program in Visual Basic 2010. In one of the forms I put a button that when clicked must open AutoCAD 2012 and make a drawing in it. The user will decide where to save it.The steps are these:
1. I added the references Autodesk.AutoCAD.Interop and Autodesk.AutoCAD.Interop.Common to the Visual Basic Project. That's OK.
Dim acadApp As New AcadApplication 'Create an instance of an AutoCAD Application
AcadApp.Application.Visible = True 'Show the instance of the AutoCAD Application
Dim acadDoc As AcadDocument 'Create an intance of an AutoCAD Document
acadDoc = acadApp.Documents.Open("C:Respaldo TesisDibujo2.dwg") 'Open a Document called Dibujo 2
'Draw a line
Dim PT1(2) As Double
[code].....
I recently loaded several versions of AutoCAD on to a Windows 7 machine. ALL versions will open a drawing if double-clicked from windows explorer, but if I try to open through AutoCAD, the program freezes as soon as I click on the "Open" button. This is true for AutoCAD 2010 through 2012.
Machine Specs:
Dell Optiplex 990 250GB HD 8GB Ram I7-2600 proc AMD Radeon HD 6670 (1Gb) Video Card
I also cannot open multiple instances of ANY version of AutoCAD in Windows 7.
Dev env: AutoCAD 2012, VS 2010, ObjectARX.Net 2012
A simple windows form command dll to test within the VS2012 + AutoCAD 2012
Bug: when debugging with VS2012, the first command runs fine and I can debug it with breakpoints etc etc. However, after the first debugging session, if I try "File"->"Open" or "New", file dialog will popup and then my AutoCAD 2012 crashs.
It won't happen if I compiled the dll, and load directly from AutoCAD independantly running instance.
I'm looking for the complete instruction set prepare Visual Basic Studio 2010 Express to program Inventor 2012 Professional.
At the moment, all I've done is to install VB Studio Basic 2010. If I'm not mistaken, don't I have to "configure" VB 2010 Express so it can be used with Inventor 2012?
I´ve been using eTransmit command in previous versions, now that I´ve switched to v2012 there´s no longer support to save all dwg xrefs as dwg references in the eTransmit popup window. My dwg xrefs are instead attached as blocks.
Autocad 2012 was working fine until a week ago when it started taking a long time to open drawings--even search for drawings on our network. It also takes at least 30 seconds to save files, where it used to take 5 seconds at most.
I found the AutoCad 2012 and AutoCad LT 2012 SP1 Ribbon Hotfix, which sounded like my problem, but it is for Product Version F.107.0.0 and I have Product Version F.51.0.0.
I am trying to draw a circle on an angled face on a valve I made, and am not too sure of the best way to do it.
Here is a front view showing the angle. I need to use the face at the top that is on a 22* angle or so
[URL]
Here is a top view showing the 10 holes I need to make at the proper angle. The blue lines are showing where each of my holes will need to be with a fitting on it as well
Just upgraded from 2010 to 2012. How do I turn off this new "accudraw" that pops up when drawing a line? And can I disable it permanently? (accudraw is the only thing I can equate it to).
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.
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?
Everytime I try to open my saved drawing, it just opens autocad 2012 with drawing1. I've been working on this drawing for weeks, and have saved and opened it many times without problem, and was working on it this morning and saved it again. Now, i've come back and it will no longer open. I can open other saved dwg files no problem. I've tried renaming the .bak file as a .dwg but that still won't work.
I have a drawing that will not open the objectscale window (annotative scale add/delete). I either select from the right-click menu, or type in objectscale, and nothing happens. I opened a new drawing and the function worked fine in that one, just not in my existing drawing...
We currenlty have our profile loaded but when I open another drawing it changes the layout of the tools in my profile. I then have to reload the profile and all the tools come back to what we want. Why is this happening everytime I open a new/other drawing ?
my profiles are loaded via options see jpg attachment.
I seem to remember a command that you could input which would show you detail info about when a drawing was originally open and how much time it the drawing had been open. But of course I do not recall what the command was.
when I open a drawing that's missing an shx file I get a dialog box (see attached). I put a check mark in the "always perform current choice" item and select the "Specify a replacement for each shx file". I assume this replaces the missing shx file with the default shx file. But if I send the drawing to someone else they get the same message. Did the shx file not get replaced or do I need to do something further?
(Running AutoCAD 2010 on Win 7, Core i7, 8 GB RAM. All AutoCAD 2010 service packs are up-to-date)
I have a drawing file that keeps giving me this message when I try to open it :
"Unable to open this drawing.It contains incorrect or or corrupted information.The RECOVER command may be able to restore undamaged material from this drawing."
When I recover the file I sometimes get a message that 1 error was fixed, sometimes no errors were detected. Either way, when I close it, and try re-opening (whether or not I SAVE it first), I get the same message. I have tried RECOVERALL, AUDIT, AECTOACAD (those AEC objects can be a problem) and tried changing the AutoCAD version it saves to (eg 2007). None of this works. I also discovered that if I WBLOCK the entire drawing it fixes it for ONE reopen, but becomes corrupted if I save it. This drawing is used as a 'template' (not a .dwt, just a "starting point") for other drawings, so the corruption is spreading.......
I am upgrading to a newr version of AutoCAD soon (hopefully that will fix it?), but this is really slowing down produciton in the meantime....
I have the student version of AutoCAD 2012 on an HP laptop with Windows 7 Home Premium OS. I originally installed AutoCAD in June of 2012. It worked fine for 9 or 10 months but now whenever I select File/Open, File/Save, or File/Save As, AutoCAD stops responding and the spinning blue donut appears. AutoCAD never comes back and I have to close it from Task Manager. I uninstalled AutoCAD and reinstalled it, and the process went smoothly. However I still have exactly the same problem with the File operations. I apply Windows updates, but other than that have not made any changes to the software on the laptop. AutoCAD works fine for everything except the File operations. I am able to save with CTL/S and am able to open AutoCAD files from File Manager.
How to avoid nested references reload every time I open autocad drawing. In some drawings I have twenty nested references. I really need to avoid reload each reference.
The user is running Autocad 2010, and she was able to perform this function last week. Nothing has changed, and a system reboot did not correct the issue.
How do I create a new CTB file OR insure that a drawing is supported by an existing CTB file? I have tried to start one from scratch using Plot window - when I click on file - it sends me back to MY DOCUMENTS. Is this a glich??
As an engineering company we have started to convert hundreds of our drawings from AutoCAD to PDF using a batch utility.
However every file that is converted into a PDF file is opened by a PDF Viewer. We want to prevent this.
I opened my *.pc3 file and removed the check from the appropriate box. See below
I press OK, then save the file and close. However when I reopen the file, I see the box for Openining in PDF Viewer has been rechecked. No matter what I do, I cannot permanently remove the check from this box.