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
ADVERTISEMENT
May 17, 2012
How to save active drawing file with filename..
View 9 Replies
View Related
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
Nov 6, 2012
I have written a program that basically replaces certain mvblocks, tags actually, in several drawings, the purpose being to change the displayed label of an object.
I have just 2 of the 3 affected drawings open and just 1 of those 2 is acually active at the time the program runs.When I run the program the tags in the open and active drawing get replaced fine.
The tags in the open but NOT active drawing appear unchanged but a "regen" causes them to go away but the new tags do not appear, if I save, close, and reopen the drawing, as the drawing is reopening I see the new tags but the label text is offset and just prior to the drawing being fully open (back at "command" prompt) the tag text does move to its correct location. a save now saves the drawing correctly so on subsequent openings everything is correct.
The tags in the unopened drawing, when I do open it, once again, I see the new tags but the label text is offset and just prior to the drawing being fully open (back at "command" prompt) the tag text does move to its correct location. a save now saves the drawing correctly so on subsequent openings everything is correct.
Regardless of the state (open, unopen, active, inactive) I am running each drawing through the same subroutines to delete the old tag and put on the new as I am passing the drawing DB to the subroutines, the only difference being that I am putting a document lock on the open drawings documents before I start the subroutines.
I do have the CommandFlags.Session flag set on the command that launches the program. So, what am i missing that the new tags are not showing up in the open but inactive dwg until the drawing is saved and reopened, and then in both, open and inactive and the unopened dwg the label text appears offset until the dwg opens completely?
View 2 Replies
View Related
Mar 27, 2013
Trying to create a bit of code that when the 'OnNew Document' event is fired the code checks for a particular Custom Property. Depending on what the Custom Property is set to a form is then fired with relevant text to point the user to a specific area in the workspace. Al this works ok.
But if they press cancel i need the code close the activate 'Part1' which inturn then allows the user to select 'New' to begin again.
I have tried various scenarios but the main problem is that Inventor then crashes!
PublicSub applicationEvents_OnNewDocument(DocumentObject As Inventor._Document, BeforeOrAfter As Inventor.EventTimingEnum, Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles applicationEvents.OnNewDocument
[Code]....
View 1 Replies
View Related
Dec 18, 2012
Is it possible that i can save a revit 2013 drawing and open it in revit 2011 file?
View 2 Replies
View Related
Oct 18, 2012
I have several closed ployline shapes in a particular layer, I need to know a way to:
a) pick all the entites on that layer
b) export to a dxf file each individual entity on the layer (yes, each entity saved to a separate dxf)
I am almost positive I can answer 'a' on my own using an object collection and a conditional statement? I am really more interested in how to export an entity from current open drawing to a dxf file in .net
View 1 Replies
View Related
Jan 7, 2014
I want to insert a stored block into a drawing (model space). Below is the code I'm using and I get
Runtime Error '5': Invalid procedure call or argument.
Sub Dummy()
Dim COESTD_obj As AcadBlockReference, InsPtStd(0 To 2) As Long, COESTD As String
COESTD = "C:JimHYDROCAD_DwgsBlocksZ_COE_STDS.dwg"
InsPtStd(0) = 0#: InsPtStd(1) = 0#: InsPtStd(2) = 0# 'Set insertion point as 0,0,0
Set COESTD_obj = ThisDrawing.ModelSpace.InsertBlock(InsPtStd, COESTD, 1#, 1#, 1#, 0#)
End Sub
View 2 Replies
View Related
Dec 16, 2008
I'm new to the style library and how to take an existing drawing that was created on one standard, and changing it to another standard I just created. The new standard has different dimension styles, text, and layers. I've added all the styles to my style library and I've set the new standard to the active standard in both the styles and standards editor and the document settings. If I create a new view, it comes in on the new standard, but the existing views are still on the old. How to I get the existing views on the new standard?
View 2 Replies
View Related
Oct 16, 2012
I have an issue with opening assembly files as they always open as Master not Last Active.
Have I missed an option on another tab or something else?
64-Bit Inventor Professional 2012
Build 219, SP2
View 8 Replies
View Related
Feb 27, 2013
I have two tables on a drawing one showing a parts list the other changes to dimensions.
The table to show the dimension changes is a configuration table pointing to an ipart.
iLogic is used to update the ipart but you have to right click to update the Active Member in the ipart to see the drawing update.
Is there a way to automate the 'update active member'? (on the ipart table - this does update the drawing)
I just have the one row in the table, it's purpose was to pass the values onto the drawing (as the part resizes I didn't want the dimensions moving so opted to tabulate them) - hoping they would update!
or
Is there a way to have a table update parametrically i.e. I've tried .csv as a source to the table but can't force an update. This way I could scrap the ipart & just import the values to a table.
The table also includes some txt comments which change with the ipart properties.
View 1 Replies
View Related
Sep 2, 2011
I am trying to have one drawing with B size and E size sheets I am trying to get the border, title block and standard to change when the sheet format changes. I can get it to work when I run the rule but have hard time find information to just change when sheet format changes. And I can't find anything or I should say a sample of how to. I think I found the code just don't know how to make it work. Here is what I have so far.
SubMain()
IfActiveSheet.Size="E"Then
ActiveSheet.TitleBlock="G&T (E)"
ActiveSheet.Border="G&T Border (E)"
EndIf
IfActiveSheet.Size="B"Then
[code].......
View 9 Replies
View Related
Aug 7, 2013
I am having an issue when opening and saving files is very slow when I have a project active in the Project Navigator.
If I have an active project, and I open a file via Project Navigator or Windows Explorer, the process hangs for 15-20+ seconds at the 'Opening C:xxxxxxxxxxxxxxx.ac$' point, where it is creating the temporary file.
If I 'Close the current project' in the project browser and open the same file via Windows Explorer, the process takes less than a second.
View 8 Replies
View Related
Jun 25, 2013
We are using AutoCAD Architecture 2013 on machines running Windows 7. When multiple AutoCAD drawings are open on most machines in the office the icon in the Windows Toolbar shows multiple stacked AutoCAD images, and when you hover over those icons, all of the open drawings appear in thumbnail across the bottom. (This is a very nice feature!)
Unfortunately one machine in the office is not doing that with AutoCAD. That machine will show multiple icons and thumbnail previews for PDFs, Word files, etc., but not AutoCAD. Is there a setting that can be changed to make the thumbnail drawings for ALL open drawings appear when hovering over the icon in the Windows Toolbar? (That computer will show a thumbnail preview of the active drawing, but not all open drawings.)
View 2 Replies
View Related
Feb 20, 2013
I create a drawing of an iPart, while doing so I have the iPart model open in the background. When placing a view on the drawing the active factory member is the default option, I have a bad memory so forget to tell Inventor that actually I would like to use a specific iPart member in this particular drawing view. I then spend a long time laying out and dimensioning the drawing. When complete, I create a second sheet and copy all information from sheet 1 onto sheet 2. I then double click on the main drawing view and change the model state to an alternative factory member. At this point I realise that the drawing on sheet one is based on the active factory member and start swearing.
The result of changing to a different member when the existing drawing is based on the active member is that ALL DIMENSIONS DISSAPEAR FROM THE DRAWING AND HAVE TO BE PAINSTAKINGLY REPLACED. At this point I will usually REDRAW SHEET 1 so that further sheets can be created quickly in the future by selecting an alternative factory member.
can I change the software defaults somewhere in the setup to prevent the 'active factory member' being displayed as an option in the first place?
View 6 Replies
View Related
Jul 2, 2012
In CS5 you could move an open photo window by click and hold and move the window to wherever you wanted without Photoshop being the active app in the forground. In CS6 you can no longer do this. You first have to click the photo/window which will bring Photoshop to the forground, then you have to click and hold again to be able to move the photo to wherever you want.
Is this a bug or a feature in CS6?
If it's a new feature or the way it's suppose to work, I vote to make it like it worked in CS5....this is not progress! Mac Pro running 10.7.
View 14 Replies
View Related
Nov 18, 2013
All of my images open way too small in the Photoshop active work window. (CS6) Is there a way to reduce the overall size of the active window?
View 1 Replies
View Related
Mar 7, 2014
Since Edge only has rectangles and ellipses built in as available shapes, how to I/we work with polygon shapes and active mouseover areas INSIDE of these shapes and non-active mouseover areas OUTSIDE of the shapes?
Problem/symptom: when I import a polygon, be it any file format from from Photoshop or SVG from Illustrator, a rectangular border/background (transparent) gets applied, leading to this rectangle defining the mouseover area of the shape - and not the shape itself (be it a star or whatever).
WHAT I WANT: the very shape defines the mouseover area. How do I achieve this?? See examle below:
WHAT I DON'T WANT: how is is now:
View 4 Replies
View Related
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
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
May 6, 2013
I'm using Gimp 2.8.4 on a MacBook Pro.
I have been working on an image file for several hours now, and as a result, there were MANY files open (probably over 30).
I attempted to save the file, and recieved the following error message:
"Could not read the contents of [folder name] Too many open files"
I then closed each of the open files except the file I was trying to save, but got the same results.
The same error message pops up when I try to open a file as well.
View 1 Replies
View Related
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
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
Jul 14, 2011
I have produced a 3d factory layout drawing for a client, Is there a way of saving it as a .exe or what ever. So that he can open the drawing and view it in its 3d form, orbit, zoom in and out etc
I understand they could download the free Autocad viewer program .
View 4 Replies
View Related
Jul 11, 2012
iu accidently close a drawing that i had been working on with out saving... is there a way that i can recover the work that was not saved?
View 9 Replies
View Related
Jul 29, 2013
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?
View 5 Replies
View Related
Feb 5, 2013
Whilst closing autocad,I have managed to lose all the work I had created------! The file when opened just comes up blank and no back-up seems to exist.
View 9 Replies
View Related
Feb 1, 2011
New install of LT2011. It has been working fine for a week. Now upon opening a drawing file, the first time I save the plan it immediately converts to Read Only file, therefore I cannot save my work.I have done one re-install with no fix.
View 6 Replies
View Related
Aug 19, 2011
where the drawing files from inventor that i save or export into dwg, dont have accurate dimensions, they are off.
View 5 Replies
View Related
Aug 21, 2012
How to save current drawing file using save method.
View 3 Replies
View Related
Oct 5, 2012
When saving a drawing why do my plot settings not save with it? As in the window I use and the scaleUsing 2007.
View 8 Replies
View Related