AutoCAD .NET :: Adding MVBlocks To Open But NOT Active Drawing

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


ADVERTISEMENT

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 :: 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 Visual LISP / AutoLISP :: Snapang Within MVBlocks / ADT Entity

Aug 19, 2013

How do I get the angle of an Mvblock/wall or any other ADT entity to use in a lisp routine to set Snapang?

View 4 Replies View Related

AutoCAD .NET :: Saving Active Drawing File

May 17, 2012

How to save active drawing file with filename.. 

View 9 Replies View Related

AutoCAD .NET :: Outputting DXF File From Active Drawing?

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

AutoCAD VB :: Inserting Stored Block Into Active Drawing

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

AutoCAD Inventor :: Changing Drawing Active Standard

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

AutoCAD Inventor :: Open File - Master Or Last Active Representation

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

AutoCAD Inventor :: Update Table In Drawing - IPart Active Row

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

AutoCAD Inventor :: Change Active Drawing Standard With ILogic

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

AutoCAD Architecture :: Active Project - Open File And Save Are Slow?

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

AutoCAD Architecture :: Quickview - Show Thumbnail Preview Of Active Drawing?

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

AutoCAD Inventor :: Turn Off Active Factory Member Option When Placing A Drawing View?

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

Photoshop :: Can't Move Open Photo Without CS6 First Being Active In Foreground?

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

Photoshop :: All Images Open Way Too Small In CS6 Active Work Window?

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

Edge Animate CC :: Working With Polygon Shapes And Defining Active / Non-active Mouseover Areas?

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

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 :: Adding AeccPoint To Drawing

Jun 13, 2011

How do I add a new AeccPoint (Civil 3D) to a drawing?I'm moving over from the COM side and I have hit a road block.

I can create 3d points to add to autocad lines but I have not been able to find any docs on adding stand-alone points to a drawing.

View 2 Replies View Related

AutoCad 2D :: Adding Materials To 2D Drawing?

May 27, 2011

Is it possible to add materials to a 2D drawing? I'm working on a floor plan and would like to add flooring materials to it but not sure how or if this is possible?

View 9 Replies View Related

AutoCAD Inventor :: Adding Barcode To A Drawing

Apr 8, 2010

Is there a way to add bar code to a drawing which is a translation of Drwg. #. I saw iPropWiz program but don't know if that's the way to go.

View 9 Replies View Related

AutoCAD 2010 :: Adding Coordinates To A Drawing?

Jun 8, 2012

I have a drawing with the x and y as grid references, I have an excel spreadsheet with point information with grid references which are within the range on the drawing. How do I put the excell info onto the drawing?

View 8 Replies View Related

AutoCAD Civil 3D :: Adding New Text In Drawing

Jun 28, 2013

I have recently run across an odd issue when adding text to a drawing in Civil 3D.  The problem comes with creating a new text item in an existing drawing.  In this drawing, if I insert a text object, Civil freezes up for several minutes.  Once it is un-frozen, the text pops up as it should and everything works as normal.  This happens for both single line and multi line text, with any of my text styles, and across all layers that I have tried.  Other regular drawing objects do not cause any problems, and there are also no problems editing any existing text objects.  

To troubleshoot, I have created new drawings and added text, but they do not have problems.  I have also opened other existing drawings, but no problems with those either.  I am worried that the drawing file may be corrupted, but audits and recovers don't show ay errors, and I have purged out everything not in use.

The strangest part is that if I open the same drawing in Map 3D, I have the same text insertion problems, but when I open it in plain CAD or in Raster Design, the text will insert with no problems.  

View 3 Replies View Related

AutoCad :: Adding Plot Stamp To Drawing

Jul 14, 2011

I'm having trouble adding a plot stamp to my drawing in AutoCAD 2002. My drawing is in meters and the page in paper space is 0.841m wide by 0.594m high. I can not figure out the setting for the plot stamp to put it in the bottom left corner. This is my first time trying to use a plot stamp so things will need to be explained most likely.

View 4 Replies View Related

AutoCad :: Adding Text And Leaders To A Drawing

Apr 6, 2013

I was adding text and leaders to a drawing and after the text was entered I pushed the escape key. It then asked me if I want to save my text. It also had a check box asking me if I always want to perform that so it wouldn't keep popping up with that question. Well, I had checked that I didn't want the text and I also checked the box to always perform that answer. And now it won't save any text that I write. It just keeps the leader. How can I get the text to stay and undo the box that I checked to always answer that way (to not keep text)?

View 2 Replies View Related

AutoCAD 2010 :: Adding Alignment To Drawing?

May 8, 2012

I'm adding an alignment to a drawing I recieve from a surveyor.  The alignment is measuring in meters.  How do I change it to feet?

View 1 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 Inventor :: Adding Image To Drawing File?

Apr 8, 2008

inserting or adding an image to the drawing file.. i ve the reference point and the bmp file path.. but the error "Run-time error '-2147467259(80004005) Method 'Add' of object '_IRxSketchImages' failed" is flashed.

View 6 Replies View Related

AutoCAD .NET :: Adding Entity On New Drawing (document) With New Layer

Nov 29, 2012

I am trying to add an entity on a new drawing (document) with a new layer.

Following is the code snippet I have right now.
 
[CommandMethod("TEST")] public void Test() { Document newDoc = Application.DocumentManager.Add("acad"); Database db = newDoc.Database; DocumentLock docLock = newDoc.LockDocument(); try { using (Transaction tr = db.TransactionManager.StartTransaction()) { BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForRead) as [code]..........

PTPUtils.CreateLayer() method creates a new layer in the given DB. However, the code gives me an "eKeyNotFound" exception in the line p.Layer = newLayer.

If I remove the p.Layer line, the code works very well. But the entity only goes to the default layer "0".

View 1 Replies View Related







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