AutoCAD .NET :: Batch Process And Transaction Not Declared?

Jul 2, 2013

I have a command to open some dwg files and print them. I´m using the Sub imprimePDF. When I did the code with (AutoCAD 2011 and VS 2008) , it runs ok but now it´s wrong.

This is the sub

Sub imprimePDF()
Dim myDWG As Autodesk.AutoCAD.ApplicationServices.Document
myDWG = Application.DocumentManager.MdiActiveDocument

[Code]....

When I´m debugging the code, last sentence produces an error: 'tr not declared'  and I don't know why.

View 4 Replies


ADVERTISEMENT

AutoCAD Inventor :: Cannot Coalesce Given Transaction With Previous Identified Transaction

Jul 23, 2007

I get the following message when I try to update a view on a drawing. Cannot coalesce given transaction with a previous identified transaction. Some times it shows up other times everything works out perfectly fine.

View 7 Replies View Related

AutoCAD .NET :: Commit Transaction Within Transaction

Aug 15, 2012

Transactions -- Can you commit a Transaction within a Transaction without any problems? I have one transaction that cycles through all objects in drawing..

I have another transaction that purges all purgable objects. Can I call the Purge Function if I've already started a transaction? What's the proper protocol here?
 
'Purge Database Dim count As Integer = PurgeDatabase(DatabaseIn) Debug.Print("Number of Items Purged: " & count) 'Level 1 Start(Transaction/Drawing Database)----------------------------------------------- Using myTrans As Transaction = DatabaseIn.TransactionManager.StartTransaction 'Read Drawing Database
[Code] .........

View 1 Replies View Related

AutoCAD .NET :: Database Parameter In Batch Process - By Reference?

Nov 21, 2012

I have a master batch process which comprises several steps each of which will change the database. I am gettting the database once, then pass it thought the subsequent steps. Simple example in pseudo

void BatchAll(){
database db = new database
BindXref(db)
PurgeAll(db)
DoSomethingElse(db)
save dwg
}finish BatchAll

Should the database db be passed by reference (ref db)?

View 4 Replies View Related

AutoCAD .NET :: How To Execute - Overkill Command Using Batch Process

Dec 12, 2012

How to execute -Overkill command in autocad using batch process.

View 2 Replies View Related

AutoCAD Civil 3D :: Process Error Batch While Converting Drawings

Mar 26, 2012

Why I get a process error batch converting these drawings? The command line says could not bind xrefs but I clearly checked the option not to bind.

View 2 Replies View Related

AutoCAD Inventor :: Turn Off Work Planes Sketches - Macro / Batch Process

Aug 23, 2012

Is there anyway to batch-process a load of parts and assemblies to turn off work planes, sketches etc in the master design view rep?

I'm aware of the Object Visibility feature but I want them turned off in the model tree.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Running A Batch File - Automated Process?

Aug 15, 2012

I have a batch program which I want to launch from a LISP program.

First this is an attempt at an automated process whereby user input is extremely restricted. Other than the first click of the mouse on the menu item to save a copy of the file to a very restricted folder, no other user input is allowed.

AutoCAD, like most commercial apps writes a temporary file and then renames it when you choose save or saveas. And due to the restrictions in this folder that will not work. Crazy, I know but it's the parameters I must work within.

The batch file I'm launching calls another batch program in it's execution and I'm wondering if that could be where control is lost. But the thing is I can type this at the command line in AutoCAD:

(startapp "//a_very_long/novell_server_path/my_folder/vlisp/mybatchfile.bat")
 
The whole process works great. The command window flashes briefly AutoCAD closes the active drawing window just like I want it to. And when I check that the dwg file has been copied to the restricted folder it's there and done. But when I place that same command within my LISP program or one like this:

(command "._STARTAPP" "CMD //a_very_long/novell_server_path/my_folder/vlisp/mybatchfile.bat")or(command "._STARTAPP" "CMD ""//a_very_long/novell_server_path/my_folder/vlisp/mybatchfile.bat"")
 
or just about anything else I try it fails to run. Perhaps I've been looking at this problem too long. I think I may move on to a VB.NET process to do this but I am really baffled why it will run from the command line but not within the program.

View 4 Replies View Related

Photoshop :: Batch Process?

Nov 21, 2005

I really hate the "JPG Options" Dialog Box while I was doing a batch job of Autocolor + Duplicate Layer > Mode SofLight. Is there any way to disable that Dialog box , or saving the settings as default so it won't come again in future ?

View 7 Replies View Related

Photoshop :: Batch Process?

Feb 26, 2008

I’ve set up a retouching process in photoshop cs2

Now at the moment, I have to open each image and hit the retouching button which takes ages when I have 500 images to touch up

How do you process multiple jobs at a time?

I remember seing a guy just dragging all the pictures he wanted touching up in a folder and that’s it.

think its called batch progess?

View 2 Replies View Related

Photoshop :: Process A Batch Of Files?

Feb 27, 2012

Process a batch of files?

View 5 Replies View Related

Photoshop :: JPG To PNG [Batch/Automation] Process?

Aug 5, 2008

completely remove the white background. Because this will be a batch process that includes others lighter hats, I can only use a maximum of 10 as a tolerance. When placed on a black background, it reflects some white fringe.

I'm starting with the Magic Eraser (10 tolerance), then doing Layer/Matting/Defringe, and no matter what tolerance I apply there (up to 20), some white pixels remain around the edge. Very frustrating to find a happy medium process in order to batch various colors to an acceptable quality.

View 9 Replies View Related

Photoshop :: Watermarking In A Batch Process?

Aug 9, 2004

Is it possible to put a watermark on images in photoshop,like putting the word "preview" or "sample" on the jpeg,with a transparant type of effect on it?

Also would it be possible to do this in a batch process?

View 2 Replies View Related

Photoshop :: Batch Process 1000 Images

Aug 11, 2012

I have a batch of 1000 images that all need to be processed with the exact same levels adjustments and the exact same crop command. I recorded the necssary actions in photoshop, and I can now open up approximately 20 of my images and batch apply the actions to all 20 images automatically. The trouble is that I have 1000 images to process like this, and I can't open all 1000 in photoshop at once; it just kills my machine. I don't want to do the whole 1000 in little batches of 20 either. I'll be getting a new pile of 1000 images to process like this every day or two, so I need a way to do the whole 1000 automatically without user intervention.
 
Is such a thing possible?
 
I'm a software develoeper by profession, so if doing this sort of massive batch processing requires any command line work or scripting then I would totally be up for that.

View 2 Replies View Related

Photoshop :: CS5.5 / Batch Process With Preserving Subfolders?

Apr 12, 2013

I'm using Photoshop CS5.5, and I'd like to batch process a folder with thousands of images ordered in several deeper subfolders.

The problem is, that I'd like to do this with preserving subfolders order, as it's the most important part of my project.

View 2 Replies View Related

Photoshop :: Batch Process (save As) - Not Working?

Jul 17, 2013

I have a set of actions i need to run on a couple of hundred jpegs, they simply need a lens correction, auto colour and auto contrast, then need saving as tiffs, all works fine when i record the action, but when i run it on a folder full of jpegs, the tiffs are huge! original jpegs are around 5mb and the tiffs are 30mb, if i apply the save as to a file individually it seems fine (file size around 2mb)

In the save as section i have specified jpeg compression at a quality of 8, but it seems to miss this in the batch process, am i missing something?

View 4 Replies View Related

Photoshop :: How To Batch Process PSDs Into SWFs

Dec 4, 2012

I have several .psd images that I need to turn into .swf's. The only solution I can figure is to place the psd into illustrator and save. Is there a faster/easier option as I have hundreds of files that I need to do this to! I also need them to be .pngs.

View 13 Replies View Related

Photoshop :: Exporting Panels Batch Process

Apr 2, 2013

I work at an animation studio where our artists work directly in Photoshop CS5 to draw storyboards (3 panels across). We are having major difficulties figuring out how to successfully convert our action (which exports the three panels as tiff images) into a batch process,

The action basically just selects each channel of the main storyboard (three channels for the three panel areas), copies/pastes the image into a new canvas, saves that new image as a tiff to the desktop. It does that for all three panels and yields three tiff images on my desktop, which I then have to drag and drop into a folder before running the action on the next page or else it will replace the previous round of images (saving over them).
 
Using Automate > Batch doesn't work and I am wondering if it is even possible to run a batch or if the action is simply too complex because it creates three new image files.

View 4 Replies View Related

Photoshop :: HDR Toning Auto Batch Process

Jun 14, 2013

Just recently got into time lapse photography and have been batch processing away to my hearts content. I have one scene that looks unbelievable with the "surrealistic" HDR toning preset. However, I record my action and set up the folders and set it to go, but it seems to want me to click "ok" after filtering each photo...there's 1685 of them, so not very keen on that.

View 1 Replies View Related

Photoshop :: Batch Process Color Replacement?

Jan 20, 2008

I am making sets of wedding stationary for a photography studio. Each set contains an invitation, dinner card, place card etc.

Each set has a dominant color throughout the series.

What I want to do is offer each set in a variety of colors but going through each image, replacing the color in each layer with the new color for each image in the set would take forever.

Is there a way to "Batch process" this where I can replace a color in each image with a new color. I think I may have to make a separate action for each new color I want to use but that is still better than nothing.

Also, I need to keep the new images in layers as the studio wants the ability to go in and make layer changes if necessary.

View 3 Replies View Related

Photoshop :: Creating A Batch Process Action

Mar 2, 2006

I need to add a logo onto several jpg images and then re-save them as jpg's.

I start the action recording, then open the image, then opening the psd with the logo, I then duplicate the logo layer onto the jpg file. I then move it into place and then save the jpg. After this I stop the action from recording.

Now when I go to run it in batch mode, at the point it should duplicate the layer from teh psd file onto the jpg, it says cannot open "new document"

way I can create an action and get the image onto the jpgs and avoid thsi error?

View 1 Replies View Related

Photoshop :: Batch Process Saving As Jpeg?

Dec 12, 2007

Is there way to get around the process of...

I setup to batch some images with a Action i created.

I chose Save and Close, but each time it goes to save the JPG window pops up to ask me what quality, etc..

I want them to just save as JPG quality 10.

I don't want to have to hit enter after every image is processed.

View 2 Replies View Related

Paint.NET :: Simple Batch Process For Resizing?

Aug 5, 2005

there were a simple batch process for resizing ... primarily for resizing width. This would be good for quickly creating thumbnails from larger images.

View 15 Replies View Related

Photoshop Elements :: Batch Process Multiple JPG?

Nov 22, 2013

I have PSE 12.  I need to batch process jpg files to a lower quality for the web.  This was easy in PSE 9.  The choice is under FILE but it is faint and will not activate.

View 2 Replies View Related

Premiere Pro :: How To Export Job Script So Batch Process Can Run It After

Feb 12, 2014

I would like to know if it's possible to export a job script in PP so a batch process can run it after? A sort of script where all the operations on the video would be encoded in a sort of metadata. I am working at ubisoft and we have a lot of video to process and transcode and we use Media encoder and Premier and eventually, we would love to use the multi machine philosphy to optimize our productivity. Does PP or media encoder can be suitable for multi machines operations...maybe something like a cloud?

View 1 Replies View Related

Photoshop :: How To Batch Process Multiple Layers To JPEGs

Aug 28, 2012

I have over 500 layers of different texts over a simple background image. I need to move through each one of these layers, making only one and the background visible, then doing the same for the next, and saving each out as a separate .jpeg. I know how to batch process the jpegs giving each a different filename, but how do I move through the layers?

View 6 Replies View Related

Paint Shop Pro :: Resizing Images Via Batch Process?

Oct 2, 2011

I frequently use a script to resize .jpgs from 3600x3600 to 1000x1000 dpi to save space on my hard drive. After resizing 300+ .jpgs last night, I found that they all retained their original file size. An image that started out as 3600x3600 dpi with a file size such as 3.5mb that was resized to 1000x1000 dpi using the script in X4 still had a file size of 3.5mb when it should have been considerably smaller than 1mb. I relaunched the application and rebooted my computer but no change. To fix the problem I had to run the .jpgs thru the batch process again using the same script but in X3.

The script I was using was created in X3 so I tried creating an identical script in X4. Regardless of which script I used in the X4 batch process, the same thing happened.

This problem seems to be unique to the script and/or batch process. I can open a .jpg file in X4, resize it from 3600x3600 to 1000x1000 dpi, save the changes, and the file size changes accordingly.

View 14 Replies View Related

CorelDRAW X4 :: How To Combine 2 Macros Or Run A Batch Process On Each Macro

May 8, 2012

I have created a macro to change the Country of Origin text in a cd label file and I also have created a macro to remove some guide rings in the same label file but I am unable to combine the 2 macros into one macro I can run on the cd label file.  The code for each macro is as below.

Sub Rings()    ' Recorded 27/04/2012    ActivePage.GuidesLayer.Visible = True    ActivePage.GuidesLayer.Visible = False    ActivePage.Layers("Guidelines_2").Visible = True    ActivePage.Layers("Guidelines_2").Visible = False    ActivePage.Layers("Guidelines").Visible = False    ActivePage.Layers("Guidelines").Visible = True    ActiveLayer.Visible = False    ActiveLayer.Visible = True    ActivePage.Layers("Graphic Elements").Visible = False    ActivePage.Layers("Graphic Elements").Visible = True    ActivePage.Layers("Guidelines").Visible = FalseEnd Sub

'TextReplacePublic Function FindReplace(ByVal str As String, ByVal toFind As String, ByVal toReplace As String) As String    Dim i As Integer    For i = 1 To Len(str)        If Mid(str, i, Len(toFind)) = toFind Then   ' does the string match?            FindReplace = FindReplace & toReplace               ' add the new replacement to the final result            i = i + (Len(toFind) - 1)               ' move to the character after the toFind        Else            FindReplace = FindReplace & Mid(str, i, 1)        ' add a character        End If    Next iEnd Function

Public Sub TextTranslate()    Dim s As Shape    ActiveDocument.BeginCommandGroup "Text Translate"    For Each s In ActiveDocument.ActivePage.Shapes        If s.Type = cdrTextShape Then            s.Text.Story = FindReplace(s.Text.Story, "Recorded in Ireland", "Recorded in China")            s.Text.Story = FindReplace(s.Text.Story, "Printed in Ireland", "Printed in China")        End If    Next s    ActiveDocument.EndCommandGroupEnd Sub

how I could (1) join the 2 macros above or (2) create a batch macro for each macro above I could run to update all coreldraw cd label files in a folder.

View 7 Replies View Related

Photoshop :: Batch Process Stops And Asking How To Save For Each Picture?

Mar 21, 2005

Whenever I batch process something using an action it stops after each picture asking how to save. I want it to do it automatically. HOW do i do it. Am I missing a setting?

View 3 Replies View Related

Photoshop :: Batch Process Makes Image Resolution...

Feb 19, 2008

In my work I use a batch process to run an action that converts EPS files to TIFF files. I have been using this successfully in Photoshop 7 on a Win2000 PC for a number of years. The process is as follows...

Open EPS file
Flatten Image
Save
Close

When I recorded the action I made sure that the resolution was set to 300dpi as we require the TIFF produced at the end to be that resolution.

I am now testing PSCS3 on a WinXP machine as we are upgrading all of our equipment. When I run the action as a batch process the TIFFs that are saved end up being 72dpi - They should be 300dpi. This worked in PS7 on the Win2000 machine and I am using exactly the same process in PSCS3 on the new WinXP machine, but something must be going wrong somewhere for the TIFFs to be saved at 72dpi instead of the required 300dpi. Any ideas?

View 3 Replies View Related

Photoshop :: Batch Process To Resize Image But Limit...

Jul 5, 2009

I'm trying to create an Action that will resize images to a constant and absolute width (600px), and save as a JPEG with a filesize of less than 160kb. I've tried Image>Image size... and Save for web with only partial sucess. Image Size does not allow you to set the filesize as a parameter - you can only set the dimensions and resolution and hope that it comes out under 160kb. Save for Web does have an optimise feature, which does work for an individual image, but not for a batch. The optimisation is done by adjusting the quality of the jpeg, but when you save this as an action, it does not record this as "optimise the image for 160kb". Instead it saves just the quality % used when recording the action. Any other images processed by that action will just be saved at that %, regardless of their filesize. Is there a way to write the action so that Save for Web will dynamically optimise each image? I'm using CS3 Extended.

View 9 Replies View Related







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