AutoCAD .NET :: Switch Mdiactivedocument Over To Newly Opened Document?

Feb 19, 2013

I am importing a dgn into autocad by using the SendStringToExecute method with the 'Import' command.  My problem is that once I have the dgn imported I want to do some modification and then save the drawing, but setting a new dim to the current mdiactivedocument still gives me the initial document and not the one opened by the import command as I had thought it would.

How can I switch the mdiactivedocument over to the newly opened document?

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: Will Not Link Document But Switch It To Embed

Dec 23, 2013

I have a user that is trying to link a MS Word document to a .iam file.

When he attempts to do this Inventor will embed the file instead of linking it.

Is it a config setting?

Here are the steps he is using for this process:

1) Open an assembly into the Inventor workspace.

2) Go to "Manage" tab.

3) Click "Insert Object" link in ribbon.

4) Select "Create from File."

5) Browse for word document.

6) Checkmark "Link" option.

7) Hit "OK."

The result of this sequence of operations produces an "embedded" file, not a linked file.

I can link this file on any other computer except this workstation.

View 3 Replies View Related

AutoCAD .NET :: Closing Default Opened Document After Net Loading DLL

May 31, 2013

Context : AutoCAD Map 3D 2013Visual Studio 2010.NET 4.0, C#, WPFFDOOracle DataStore

Requirement : When I start AutoCAD Map 2013, a default document called "Drawing1.dwg" is opened. I use the command NETLOAD to load my assemblies. Final Users don't NETLOAD, an entry in the registry does the job automatically. During Initialization, my application downloads from the database a Template DWT file to initiate automatically the connection to the DataSource, and shows the different layers and styles configured by the customer. A new drawing based on this DWT is then generated.

However, the first default document remains opened. It can be sometimes annoying for the user to have both documents opened. I've never found a nice solution to close this first default document.

My technical implementation, not working :

In the Initialize method coming from IExtensionApplication, I start my application (loading business classes, user interfaces, etc...). Once started, I download the DWT, and add a new Document to the DocumentCollection (Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager). To this new Document, I handle many events such as CommandWillStart, CommandEnded, CommandFailed, etc... At this time, my Application asks to the user to log in. And finally, I browse the whole DocumentCollection to try to close all documents that are not the new one based on the DWT.

DocumentCollection doc_coll = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager; _kleverageDocument = doc_coll.Add(dwtFilePath);
if (_kleverageDocument != null) {
_kleverageDocument.ImpliedSelectionChanged += new EventHandler(doc_ImpliedSelectionChanged); _kleverageDocument.CommandWillStart += new CommandEventHandler(doc_CommandWillStart);

[Code] ....

When I call the CloseAndDiscard method for each of the other Documents, I always get an Exception telling me that the document is currently drawing. Actually, the command "NETLOAD" is stil running. How can I do ? I tried another way, by using handled events on DocumentManager

Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.DocumentActivationChanged += DocumentManager_DocumentActivationChanged; Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.DocumentBecameCurrent += DocumentManager_DocumentBecameCurrent;

View 2 Replies View Related

AutoCAD .NET :: Create New Entity Into Xref Of Opened Document

Oct 9, 2013

I have opened a document with several xref and i want to add new entityes into those xref. How can i do?

We launch _refedit/_refclose commands in AutoCad Command line for this. I want to do the same in Autocad.NET

View 2 Replies View Related

CorelDRAW X6 :: SVG Document Isn't To Scale When Opened?

Jul 7, 2013

using CorelDRAW X6. I am having trouble when opening SVG documents in CorelDRAW X6. They seem to always be 33.333% smaller than the size I saved them in Adobe Illustrator. 

I am more familiar with AI and use it for most of my design work. I use CorelDRAW mainly to save files as HPGL plotter files to cut designs with a CMC machine (there is no way to my knowledge to save HPGL files with AI). 

When I open an AI file in CorelDRAW it is always to scale. However when I save it as an SVG file and open it with CorelDRAW it is always exactly 33.333% smaller than the size I saved it as in AI. While I can open AI files in CorelDRAW for my purposes it is easier if I save as SVG. I just want it to be the same scale when I open it in CorelDRAW but it is always smaller (by exactly 33.333%)

Not that it is that big of an issue, I can always scale it to the proper size. I would just like to understand why it works this way and if there is a way to correct it.

View 4 Replies View Related

AutoCAD .NET :: Cannot Set MdiActiveDocument

Aug 22, 2013

I cannot seem to set the MdiActiveDocument synchronously.

I have code inside a <CommandMethod> that creates a drawing and then writes any error information to the command line.  Since this is started in one document, if  a fatal error occurs and the drawing does not get created, that message goes to the original document's command line.

In the case where a drawing gets created with errors (say partial success), I would like the errors to appear in the new drawing (new active document's) command line.

The behavior when setting Core.Application.DocumentManager.MdiActiveDocument is peculiar.  The application can hang for a long time if you do not click anything.  If you click the document (from the taskbar or clicking on the window), it breaks out of the hang and continues to execute, but the active document is not changed.  The MdiActiveDocument still points to the original document.  You can also see that it does not change because doc.IsActive = False.  This state could be because when you clicked, you really did make the original document active (again? still?).  To break the hang, I think the click has to be on the original document.

On an example like [URL] ... there is no action taken after MdiActiveDocument is set, so I assume that it is actually set when the command is completed, not synchronously.  I am not absolutely certain of this, though.

 <CommandMethod("AUTODRAWPN")> _
 Public Sub DrawPartNumber()
 Dim ed As Editor = Core.Application.DocumentManager.MdiActiveDocument.Editor
If IsNothing(drwr) Then

[Code] ....... 

Is there a way to set the MDIActiveDocument?  Should it be hanging like this?  Should I be looking at an altogether different way to handle this?

Trying to use doc.Editor without setting the active causes a eNotApplicable error, so that is not a way out.

I am using AutoCAD 2013.  The following link implies that this could be a 2013 specific problem, but I do not know that for sure. [URL] .....

View 1 Replies View Related

AutoCAD .NET :: Setting MDIActiveDocument Freezes Program

Nov 5, 2012

I'm trying to switch documents and add some text. But the program switches to the document then freezes without executing any lines after switching documents.

If flyToHandle <> "" Then Dim docIsopen As Boolean = False For Each doc As Document In DocumentManager If doc.Name = flyToDwgName Then docIsopen = True acdoc = doc DocumentManager.MdiActiveDocument = acdoc End If Next If docIsopen = False Then acdoc = Autodesk. Auto CAD.ApplicationServices.Application.DocumentManager.Open(flyToDwgName, False)
[code]....

View 3 Replies View Related

GIMP :: Switch Between Eyedropper / Brush Switch

Jan 9, 2013

If there is a way to switch between the eye dropper/brush tool fast.

On Photoshop there the "alt" key but on my mac it really wastes a lot of time for blending colors .

View 2 Replies View Related

Lightroom :: Catalog Cannot Be Opened Because Another Application Already Has It Opened

Jun 9, 2012

I am trying to open Lightroom 4 from my desktop and it keeps giving me this message:The Lightroom catalog named "Lightroom 4 Catalog" cannot be opened because another application already has it opened.

View 1 Replies View Related

AutoCAD .NET :: Add Xref To Newly Created DWG?

May 18, 2012

I am having an issue with trying to get and xref or multiple xrefs attached/overlayed in a drawing that I just create.

I have a command that will create a sheet set, then add sheets in that sheet set based on a number the user puts in.

I then ask the user if they want to add xrefs to the drawings, if they press yes, I want to have the dwgs that are selected by the user to be referenced into the newly created dwgs.

I believe I am mising making the dwg that is created the active dwg before adding the xrefs, but I may also be missing locking the dwg.  At the moment I have it set to open the dwg after it is created then attempting to add the xrefs to it.
 
'Starts the process of adding sheets based on the number specified
For i As Integer = 1 To info.TotalSheetNum.Value
'shows dialog box for sheet information to user
sheetinfo.ShowDialog()
'adds the sheet to the sheet set
[Code] ...........

View 3 Replies View Related

AutoCAD .NET :: Get Object ID Of Newly Created Entity

Dec 5, 2012

How can I get the object id of the just created entity.

acTrans.AddNewlyCreatedDBObject(acPoint, true); acTrans.Commit();

Selected the point on the dwg with PromptPointResult result value and added it.

Then I want the objectid of this acPoint, to do my next operation.

View 4 Replies View Related

AutoCAD LT :: Newly Installed 2014 Shuts Down As Launching

Aug 23, 2013

I had trouble installing the program on Windows 7 after aborting on the first try when an error message about a font issue appeared and I wanted to find out more info.  It took four retries, rebooting and adjusting my security settings I have it installed as a trial version (I think), but when I try to launch the program it goes through the initiallization process each time and then shuts down just as it is launching.  Do I uninstall and start again from scratch?  I have experience in installing 2000LT and 2004LT on various computers over the years with out ever having an installation issue. 

View 1 Replies View Related

AutoCAD .NET :: Draworder Of Objects In Newly Created Blocks

Nov 12, 2012

I am creating a new block that includes text, lines and a solid object. The block is creating properly, however, the linework is behind the solid object.

How do I control the draworder of the items in the block?

Is there a way to set the order before I create the block, OR do I have to modify the block after I have created it?

View 3 Replies View Related

AutoCAD 2013 :: Xref Causing Newly Inserted Blocks To Not Appear?

Dec 10, 2013

We are having a problem with blocks not appearing after xreferencing a drawing. We can place blocks as normal from the tool palette, but as soon as we xreference a 2D site plan and select blocks from the tool palette, they will not place. You can see them when placing, but once you click to place it, the block does not appear. I have copied out the site plan to a new dwg file, still does the same thing. Everything has been purged and ran an audit in the plan drawing and also the site plan drawing. The block does not show up in the block editor either. I am trying to avoid redrawing the site plan like we had done with two models that were doing the same thing. Remodeling a vessel and rebuilding a skid composite corrected the problem with two other drawings, but redrawing this site plan would take considerable time.

View 9 Replies View Related

AutoCAD Inventor :: Rule To Rename Newly Placed ILogic Assemblies

Jan 9, 2013

I'm running Invenor 2013 and I'm trying to figure out a way to rename my components from an iLogic assembly when placed in a new assembly.

Right now when I start a new assembly, then place an iLogic component it names everything "Part-01," Part1-01" and so on for all of the variable components.

What I'd like to do is write a rule that when placing my iLogic component it will name it based on the filename of the new assembly that I've created. "Part-New Assmebly," "Part1-New Assembly" and so on.

View 7 Replies View Related

AutoCAD .NET :: How To Set Color Index And Layer Of Newly Created Dimension Style

Jul 18, 2013

I'm having a bit of a problem struggling with creating new dimension style using vee bee dot net, in AutoCAD 2010 environment. I am particularly trying to figure out how to set the newly created dimension style to color white, and to assign it a specific layer (for example, a layer called "test"). What the code syntax is to accomplish this?

I post the code below for what I have done thus far:

Public Shared Sub addDimensionStyle(ByVal strDimStyle As String)
Dim acDb As Database = HostApplicationServices.WorkingDatabase
Using acTrans As Transaction = acDb.TransactionManager.StartTransaction()
Dim dimTbl As DimStyleTable = acDb.DimStyleTableId.GetObject(OpenMode.ForWrite)
Dim dimTblRec As DimStyleTableRecord = Nothing

[Code] ........

View 5 Replies View Related

AutoCAD Inventor :: Newly Installed Font Unavailable As Text In Sketch

Mar 27, 2013

INV Routed Systems 2011 sp2

I needed a specific Adobe font engraved on a nameplate.

I purchased and installed the font and it is available to me in other applications.

I went to use it within my sketch and it didn't display as being available.

Do I need to do something other than install the font on my machine to use it within my model?

Inventor Product Design Suite 2013sp2
Windows 7sp1 64-bit
nVidia Quadro 2000

View 7 Replies View Related

AutoCAD 2010 :: Apply Match Properties To Newly Created Multileader?

Aug 8, 2013

I have a drawing with exsisting multileaders in it.

I am trying to apply the match properties to a newly created multileader but it isn't working.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Layer State - Ignore Any Newly Created Layers?

Aug 8, 2013

we have a good size project going on with lots of view ports of a base map (floor plan or site plan).  Then we set the viewport layers the way we would like it, but along the way, we keep getting updated base maps (floor plan or site plan) with new layer created in them.  These newly created layers are for the originator and will not affect our project.

Is there a way to have our project set to ignore any newly created layer from the originator of the base files?  That is, we have our project (viewport layers) set the way we want it.  When we get an updated base file, replace the xref(s), our layer state will still be the same, ignoring any newly created layer, automatically.  I sure hope I am clear enough here.

Our problem is that when we get a new base file, then we would have to go to every file that has a viewport related to this new base file and turn off the new layers.

AutoCAD 2014

View 1 Replies View Related

AutoCAD .NET :: Adding A Document To Document Manager Collection

Jul 30, 2013

The code below crashes with an "attempt to write to protected memory"  in debug mode (it crashes when it hits acDocMgr.add)but in the Release version it works fine. I am using Command Flags.Session

Dim acDocMgr As DocumentCollection = Application.DocumentManager Dim pStyle As Integer = Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("PSTYLEMODE") Dim acDoc As Document = Nothing If pStyle = 1 Then    acDoc = acDocMgr.Add("acad.dwt") Else acDoc = acDocMgr.Add("acad -Named Plot Styles.dwt") End If

View 7 Replies View Related

AutoCAD Inventor :: How To Get Model-document Name For Drawing-document

Feb 11, 2013

I tried to print thisdrawing.modeldocument in a vba sub, but it doesn't work.

View 4 Replies View Related

Photoshop :: Newly Supported Camera RAW For...

Oct 6, 2008

CANON EOS "50D" should be included as newly supported camera RAW as soon as possible. Which has been already on sale since 27th September.

View 1 Replies View Related

Illustrator :: Newly Created Brush Not Available?

Feb 28, 2014

I spent a bit of time creating a brush style to simulate a rope.  Artwork was created, dragged and dropped into brushes pallet, set as pattern brush.  In the AI file in which the brush was created, it is visible and available as a brush when "Show pattern brushes" is checked.  However, in other AI files I cannot find this brush!  I have closed all files and closed AI, reopened and still nothing.
 
Ubiquitous information:
Adobe Illustrator CS6 version 16.0.3 (32-bit)
Windows XP sp 3 OS

View 3 Replies View Related

Illustrator SDK :: How To Get Art Handle Of A Newly Created Art

Aug 1, 2012

Is there any way through which we can get the art handle of a newly created art, just after its creation on the document?

View 1 Replies View Related

Lightroom :: Can't See Newly Downloaded Pics

Jul 10, 2013

Ive been using lightroom for some time now and when I connect my cf card to the card reader lightroom starts and I select "import". I went to do the same as usual and it started up and I clicked import, the files started to download so I walked away. I came back an hour later and LR had frozen after the first few pictures. I gave it some time but then decided to cntrl alt dlt and end the task and tried to start over. It downloaded all of the images but they are not visible in LR. I can see all my previously downloaded images but not the new files. I can see the files and view them through my hard drive using the windows photo gallery viewer. I have checked for updates and my computer and LR are up to date, I also tried reinstalling LR and there is the same issue.

View 7 Replies View Related

Photoshop :: Unlock Newly Created Layer

Aug 13, 2002

When creating the first new layer via copy in Ph6, it is always locked to the background layer. A small but inconvenient feature.

View 6 Replies View Related

Photoshop :: Why CS6 Not Recognizing Newly Installed Video Card

May 29, 2013

I just installed a new XFX AMD ONE 1GB 5450 video card and have updated the drivers, but Photoshop CS6 is not recognizing it.

View 2 Replies View Related

Photoshop :: CS6 Bug - Can't Use Brush Tool On Newly Created Layer

May 18, 2013

I'm using a Wacom intuos 2 and working up some illustrations, but whenever I create a new layer, the brush tool goes completely defunct and makes absolutely no marks on the document. I have gotten in the habit of just restarting Photoshop, and then it works.

View 3 Replies View Related

Photoshop :: Newly Installed CS6 Closes Immediately After Opening?

Oct 9, 2012

I just installed the adobe cs6 creative suite yesterday or the day before, but today was the first time I tried to launch PS. Each successive time that I've tried, I have gotten these two messages immediately after the program finishes loading:

I can't go to the preferences panel to attempt to fix the problem addressed in the first dialogue because PS will not stay open long enough to allow me to do so. I also googled the issue and the majority of people seemed to say that holding down ctrl+alt+shift as the program loaded would present me with a dialogue that would fix the problem, but when I tried it nothing happened.

View 6 Replies View Related

Paint Shop Pro :: X5 Not Recognizing Newly Installed ICC Profiles?

May 9, 2013

A month ago I successfully installed 3 ICC profiles from a paper manufacturer and got them recognised by PSP X5. I now have 4 more profiles and have installed them but they are not recognised completely by PSP. If I open the Color Management box and click Basic Color Management, with Rending Intent 'Pictures', the printer profiles list in the dropdown shows only the three original profiles (plus a lot supplied by Canon for the MG650 printer concerned). If I select Proofing, the Emulated device profile dropdown list shows all 7 profiles (plus the Canon ones), so PSP is clearly to some extent aware of the new profiles.

I cannot remember exactly how I achieved the inclusion of my original three in the list, but I do have the printer concerned as the default primary printer, so cannot see that this is a problem. The profiles are recognised in the other software that I use, so they are definitely correctly installed.

View 1 Replies View Related

Photoshop :: CS4 Unable To Show Newly Installed Fonts

Jun 22, 2009

I've installed some new fonts into my windows vista. The fonts were successfully installed and a check in Office reflected the new fonts. when i opened CS4, these fonts were not found in the list of characters. 

View 6 Replies View Related







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