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


ADVERTISEMENT

AutoCAD Inventor :: Address Document Collection Item By Name?

Mar 13, 2012

I was hoping to address a document within the collection by name alone but it never seems to work regardless of which name i use.

Dim oDrawing as DrawingDocument: Set oDrawing=Thisapplication.Documents.Item("TEST.idw")

or

Dim oDrawing as DrawingDocument: Set oDrawing=Thisapplication.Documents.Item("C:WorkspaceTEST.idw")

PS The document is not in the visible documents collection as i don't want the user to see me opening and closing the reference documents.

View 2 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

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

Photoshop :: Error Opening The Portable Document File (PDF) Document

Nov 5, 2013

I've created a pdf file (with illustrator cs3). when I try to open it on photoshop CS3 I receive this message:

"error opening the portable document file (PDF) document. error code = 0X20030055"

I can open this pdf file outside photoshop.no problem openning other pdf files on photoshop.

View 1 Replies View Related

Photoshop Elements :: Can Save JPG Document Into Non Photo Document File

Nov 23, 2013

I inadvertently saved a document as a jpg and wondered if there is any way I can convert it to a document file that is handled more easily with a file that is other than a photo file?

View 1 Replies View Related

Photoshop :: Target Document Has A Different Depth Than Source Document?

Jul 5, 2013

as of yesterday i have been receiving an alert when i try to move a jpeg into a new photoshop doc stating that my target document has a different depth than my source document and will (which it definiately does) result in lower than expected quality.

Photoshop specs: CS6; RGB; 16 bit; Res 300 pixels/inches; size: letter; (advanced setting - don't know what these are) color profile: sRGB IEC61966-2.1; Pixel aspect ratio: square pixels

View 7 Replies View Related

Photoshop :: Adding PSD Element To PDF Document

Nov 10, 2013

How do I add a psd element to a pdf file? I'm trying to add a logo in psd to a pdf document. 

View 1 Replies View Related

Photoshop :: Adding Sound To PS Document?

Feb 23, 2005

is there anyway of adding sound to a photoshop document in image ready or just regular photoshop, i wanna the sound of a gun firing,

i have ps 7.0 with image ready and photoshop 8.0 cs with image ready

View 3 Replies View Related

Photoshop :: Adding Several Images To One Document

Oct 30, 2008

I am creating some documents in CS2 that will be used on a waiting room monitor to show announcements, pictures, etc.

I need to add several images to the same document.

What is the best method to take three images and add all three to the same document?

View 1 Replies View Related

AutoCAD Inventor :: Adding Document Settings To Quick Access Toolbar Causes To Crash

May 29, 2013

When I add "Document Settings" to the quick acess toobar it causes Inventor to Crash when I close the active .ipt, idw, etc.

View 6 Replies View Related

Photoshop :: Adding Vector File To Document

Apr 4, 2013

I want to add a vector image(.ai file) to my photoshop document, how would I do that?
 
Currently I export the vector image as png, then i import the png to PS, but it is a raster image, I would like for it to be vector, like a custom shape...

View 2 Replies View Related

Photoshop :: Adding Text Outside Document Name When Mass Saving

May 31, 2013

I have 300 photos that are being saved as thumbnails for my online store. I am looking to see if I am able (in automated batch saving) to add "-TN" after the document name, before the extension. It will let me add the dash but not "TN."
 
An example of how my document name needs to be is "MyFile-TN.gif".

View 1 Replies View Related

CorelDRAW X5 :: Adding Page Numbers To Existing Document

Sep 26, 2012

I am trying to add page numbers to an existing document.  I have tried to add them in Prepress, but all I see is the "Print File Information" and even that is not in a location I want.  I have the "Position Within Page" checked.

View 1 Replies View Related

CorelDRAW Graphics Suite X5 :: Document Palette Adding Colors

Feb 22, 2012

My document palette adds the same colors that are NEVER in my art every time. I swear it's a glitch. The colors are so bizzare. And when I go to delete any of them, it says I can't because they are in use. But they are for sure not being used.

Here's a list of the colors:

Black A0QM, Pantone 142, Black A0QM (1), Black A0QM (2), Black A0QM (3), DIC 2287p* (1), PANTONE 142 (1), Black A0QM (4), PANTONE 142 (2), Black A0QM (5), Black A0QM (6), Black A0QM (7), DIC 2287p* (1) (1), PANTONE 142 (3)

That's the order they are always in. I don't even know where you would get any of those colors and what they would be used for? Except the Pantone of course.

View 1 Replies View Related

Lightroom :: Adding Photos To A Collection?

Nov 1, 2012

till LR 4.1 it was easy to add photos to an existing collection. I just selected photos and dragged+dropped them on the name of the collection. Job done. This seems not to work in LR 4.2 any longer. I can only add photos to a collection by using the context menu of the collection ("Add marked photos to this collection" [most probably the correct English term is different as I work with the German edition of LR 4.2]). Is this supposed to be a feature - or just a bug?
 
Additionally I can't put photos in an individual order any more. Sorting them by date, name etc - easy! But rearranging the manually doesn't work any longer with my version. Again: feature or bug?

View 1 Replies View Related

AutoCAD .NET :: How To Run From Document Context

Jan 3, 2012

I am using the Application.Invoke() method on 2011+ and am finding it to not work well other than from the command line of a single document.

When I declare a Commandflag.Session flag for my command, and try calling Invoke using more than one parameter on a new drawing where the command was not run from, it bombs out.

So, Drawing1.dwg - Run command

A new Drawing2 is opened, saved, and Invoke called to run some LISP, it will fail.

I did read somewhere that Invoke() may need to be run from a Document context. Does that exclude the Session flag?

View 1 Replies View Related

Lightroom :: Adding Photos To Existing Collection

Nov 12, 2010

I'm having such a hard time adding several photos at once to an existing collection. Not sure what I'm doing wrong as I am following the instructions. First I select all the photos by clicking shift and the 1st photo, then I select the last photo. All photos I want to add are highlighted. But I can't drag all the photos at once. When I try to drag, the 1st photo is only selected. What is are the correct click, drag and drop key strokes to get it right?  Dragging and dropping one photo at the time is just not feasible.

View 3 Replies View Related

Lightroom :: Adding Images Into A Book Collection

Apr 9, 2013

I am producing a book via lightrom. Just about completed it and hit save. The problem is that when I did this only my currently selected images in the film strip were included in the book collection (files starred 2 and above) and I cant work out how to make all f the files in my route folder (unstarred, etc) appear in the collection.
 
I had been building the book from a folder on my E drive, not a collection.

View 1 Replies View Related

AutoCAD Inventor :: Calling Sub From Different Document

Apr 4, 2013

In an object type Project I have a form with a button that calls another sub of the same form, the code looks something like this:

Private Sub CommandButton1_Click ()

'Set a Part Document as active document
Dim oDoc As Inventor.PartDocument
Set oDoc = ThisApplication.Documents.Open ("C: Users oZteC Documents Inventor Experiment part1.ipt", True)
oDoc.Activate

'Call "ModelParameters" within the same form
Call ModelParameters

End Sub
____________________

Public Sub ModelParameters ()
....
End sub

I want to move the sub "ModelParameters" to the object type PartDocument, the problem is when I move it the call doesn't work.
I want to run something like this:

ApplicationProject> Form> ClickButton ----> call to ----> DocumentProject> ThisDocument> Sub

View 1 Replies View Related

AutoCAD 2013 :: Can't Start New Document

Aug 30, 2013

I may have no prior experience of autocad, but I'm pretty sure what it is doing isn't quite right. When clicking on the IPub icon, then 'New', an options window titled 'Insert...' opens. If I click on the 'New' button the same thing happens. If I click on 'Insert Model', I get the same dialogue window. I have started following a tutorial and I cannot get the 'New' > file types window that the video author gets.

I did a reinstall (not an uninstall > reinstall) and the problem persisists. It is the 2013 version on an education license. 

View 1 Replies View Related

AutoCAD LT :: How To Set Values For Document Fields

Feb 25, 2013

The insert fields dialog box contains several fields that must allow the user to define the values for those fields but I cannot find where. For example, in the documents fields category there are fields named "comments" "keyword" "author" etc. Where do I enter the value for them so that when I insert the field I get more than just "---" returned?

View 5 Replies View Related

AutoCAD .NET :: Lock Document Without Open It?

Jun 19, 2012

I'm trying to update a xref path of a autocad document without open it. I've tried something like this to access the database of a document

using (Database db = new Database(true, false))
{
db.ReadDwgFile(fullpath, System.IO.FileShare.ReadWrite, false, "");
// rest of the code ....
}

In order to do that the readdwgfile the document must be locked right? Because i'm going to modify blocks of the document. So how can I lock a document without open it?

View 2 Replies View Related

AutoCAD .NET :: Temporary Document And Database

Oct 18, 2012

I have a preview control on a window that I want to display temporary custom entities that the user can build before adding to the current working document. Is there a way to create a temporary document and database that I can show in my preview control? The Preview Control was created with the guidance of the BlockView.net sample.

What I mean by temporary, is a document / database that cannot be displayed or edited in the editor window.

View 2 Replies View Related

AutoCAD .NET :: How To Get Available Table Styles In A Document

Jul 4, 2011

I am building a COM interop using visual basic .NET

I've managed to add a new table, I wish to give the user an option to choose which table style to apply.

I just cannot find how to get the document's available table styles.

I'm developing for AutoCAD 2012.

View 4 Replies View Related

AutoCad :: How To Delete Text In PDF Document

Jul 6, 2009

I need to delete text in a PDF document. How can I do it?

View 8 Replies View Related

AutoCad 2D :: New Document Not Scaled Correctly?

Apr 22, 2013

Just started using autocad 2013 this weekend and was able to create a document and draw some rectangles with specific dimensions for a project I'm working on. The idea is to print it out and cut the rectangles out on a piece of foam board.

So I printed it out but all of the rectangles are crazy small. Like 50% smaller. I checked the objects and they're all showing as being the right size. Then I realized the background grid is the 8.5 x 11 landscape paper and that my rectangles were to scale of the printout but not 1:1 of the dimensions that I entered and the objects said they are.

View 9 Replies View Related

AutoCad :: Document Exchange PDF Files Are Used

Dec 10, 2013

I got some information from my fried like PDF (Portable Document Format) files are not dependent on operating system. For document exchange PDF files are used.

View 3 Replies View Related

AutoCAD .NET :: Edit On Layers On Number Of Document?

Jul 24, 2012

how can i edit on layers on a number of document 

View 2 Replies View Related

AutoCAD Inventor :: Get Vault File ID From Document?

Dec 25, 2013

I'd like to get the Vault file Id from an inventor document on the local workspace in order to be sure that it has been checked in (I want to be sure  that all the files on the local disk have been checked in).

View 2 Replies View Related

AutoCAD Inventor :: Setting Document Visibility Via API

Jul 11, 2013

Is it possible to make a document invisible after it´s open? I would like to keep it in memory but not reachable to the user.

Making the document view(s) invisible is not what I´m looking for. I need to clear/close/delete all views WITHOUT closing the document..

( So it has the same state as if opened through API with the visible parameter set to false, e.g.  Document.VIews.Count = 0

View 7 Replies View Related







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