AutoCAD .NET :: MDI - Iterating Many DWG Files

Jan 8, 2012

I'm working on translating a VBA routine that worked just fine, to VB.NET & I have had a lot of porblems with it. Yes, I am new to VB.NET. My routine renames XREF file names & opens  drawings that have these files XREF'd into them & resets their paths to the renamed file. My VBA routine used a few thisdrawing.sendcommand operations to do things like reload xrefs, unlock layers etc. Some of these worked in the VB.NET version while I only had getten as far as having the only DWG open that  was the one which I call the routing from. When it gets into opening another drawing I start getting all sorts of problems.

I worked these out by creating a NEWDOC as DOCUMENT object & setting autodesk....MDIcurrentdocument to the filename of the just opened DWG file &  then eliminating my sendcommand calls & replaceing them with record table operations.

Now I'm getting a file access error when trying to reload an XREF using document.reloadxrefs(objectidcollection).

I've tried not to nest transactions. I've tried to make sure all my transactions frpm  the current DWG not the original.

How to work with multiple DWG files. Maybe a simple example of reloading an XREF named "X" in a bunch of DWGs saved at some specific location could be given? Focusing on transactions, documents, & databases.

View 1 Replies


ADVERTISEMENT

AutoCAD .NET :: Iterating Through All Plot Devices?

Jun 16, 2011

I am trying to iterate through all the Plot Devices (plotDeviceName) available to the user.

View 3 Replies View Related

AutoCAD .NET :: Best Method For Iterating A Type From Modelspace?

Aug 16, 2012

performance differences between:

1) Using a selction filter to get the objectIDs of a particular type, then iterating them, or

2) Iterating all modelspace objects, checking ObjectID.ObjectClass.Name for the desired type.

View 1 Replies View Related

AutoCAD .NET :: Iterating Trough Items In Block

Feb 16, 2012

at multiple places i have drawn the same block in a drawing, and i would like select one block in the drawing, then iterate through the items in the block, and find the actual coordinates of a 3d-polyline (that is drawn in that block) in modelspace. How can I do this?

View 8 Replies View Related

AutoCAD VB :: Accessing And Iterating Selection Sets

Jul 18, 2012

I have already a Selection Set called objSS. All the objects in this Set are Multi Text, so I am wondering how is possible to have access to the property Text Height of these objects inside the Set in order to change the value of this property. I have created a variable as  AcadMText but is not possible for me to loaded it with any item from objSS.

View 3 Replies View Related

AutoCAD Civil 3D :: Iterating Height Levels For A Polyline

Jan 20, 2013

I have a problem iterating heights when making a polyline between two different points that have Z-values. I've used Autocad Civil 3D for working with geodetic data with height measurements before and I remember using geodetically measured height values, transforming them into a surface and then when I create a 3Dpolyline within this area the polyline automatically gets z-values that change along the line.

In other words, I could use this 3Dpolyline to obtain a profile that gives me z-values even where there is no exact point with a value has been physically measured. It was a while ago I worked with Autocad and now when I started again I have a similar problem but can't manage to create a surface and get iterated values.

My exact problem this time is:

I have a sewage pipe that runs for several kilometers that is drawn as a 3Dpolyline, with correct x- and y-values. It doesn't have any z-values yet and these are what I want to obtain. I want the polyline to have continuous z-values that changes along the polyline (not only in vertexes) so that a smooth profile can be drawn if wanted. I have data of measured actual z-values for approximately every 500 meters or so along the sewage pipe and these are currently drawn as 3Dpolylines of around 20 meters going perpendicular to the pipe (as in the picture). In other words there are bars with z-values crossing the pipe all along the stretch. Now, what I want to do is to somehow make the polyline that represent the pipe to get the heights from these perpendicular bars with the measured z-values. If I try to draw a new 3Dpolyline between two of the measured bars where the actual pipe is supposed to be, the end vertexes of the 3Dpolyline gets the z-values of the bars. However, the value in between the bars gets the Z-value 0. So, if I start a 3Dpoly on bar 1 then continue the pipe with another vertex, and then finish off at the second bar I will have 2 vertexes with the correct z-value but the middle vertex will be incorrect (0). How do I get the pipe to get the correct z values automatically iterated from the values on the crossing bars? Is this even possible to do? Should I create a surface from the bars first, and in that case how do I do that? If possible I don't only want the vertexes between bars to have iterated z-values, I also want the entire line to have a correct value.

I've attached a crappy image made in paint (since I don't have Autocad on my home PC, only at the office). And just to make things even clearer I'll give an example. Let's say the pipe distance from 1 to 2 is 10 meters, the distance between 1 to 3 is 30 meters and the z-values of bar A and bar B is 10 and 25 respectively. So, when I draw a 3Dpolyline from 1 to 4, I want the vertex 2 to automatically get z-value 15 (since it's 1/3 on the way to B). In the same way, I would like for example the point on the pipe that is right in between 2 and 3 to have the z-value 20. I won't mind redoing the bars to for example singular points instead, if that makes it all easier.

View 9 Replies View Related

AutoCAD Inventor :: Huge Delay After Iterating Through Component Occurrences

Jul 27, 2012

My application, writing in C#, exports all vertex-data of parts in an assembly to external files.It uses the surfacebody.getExistingFacets method to do this and shows a progressbar to visualise progress.

The application works fine, only when it is finished, when I zoom in or zoom out in inventor, a huge delay exists before the actual zoom is done. And everytime I scroll the mouse wheel or touch my 3D mouse the delay is there.It's really up to several seconds everytime.

However when I close the assembly and re-open it again immediately after my app finished, these delays are not there anymore.Do I have recalculate something, or do I have to invoke a 'free-something' command ?

View 6 Replies View Related

Illustrator Scripting :: Iterating Over The Art Tree?

Apr 5, 2012

I am trying to write a 'duplicateLayer' function, and I've read all the related posts on these forums.  It seems most of the responses have only addressed art inside a layer, and not nested layers/groups.  I need to be able to duplicate ALL items in a layer.
 
I can get the sub-layers, but I can't figure out how to preserve order of the items in the new layer.  For example, if my layer looks like this:
 
layer 1
art 1
art 2
sub layer 1
sub art 1
art 3
 
I can call layer.pageItems to get my three art objects and duplicate them, and I can call layer.layers to get my one sub layer and duplicate it.  But how do I preserve the same order of the art objects and sub layers with respect to each other?

View 3 Replies View Related

AutoCAD .NET :: Read Excel Files Through Script Files / Declare Variables

Oct 1, 2013

1. Is it possible to read excel files through script files.
2. Can I declare variables in script files.

View 4 Replies View Related

AutoCAD 2010 :: Automatically Updating DWG Files Made From DWT Files

Mar 26, 2013

I have loads of dwgs made by a former employee at another site that have our company logo in the tile block. I need to replace the company logo with a new one.  If it were not made from a dwt, I could change the .dwg file and just reinsert the block and let it redefine the block, done. But since all of the text in each drawing was input using a template, I cannot do this without losing all of that data. We are not permitted to explode the title block, delete the old logo & add a new one as the drawing format needs to remain as one entity. Is there a way to automatically update these dwgs without re-entering all of the title/revision block text on every drawing?

View 2 Replies View Related

AutoCAD 2013 :: Exporting Existing DWG Files As DWFx Files?

Jan 8, 2013

what is the command in AutoCAD 2013 for exporting drawings as DWFx files so that clients who do not have AutoCAD can open or plot a DWFx file using a current version of Internet Explorer or Safari for Apple as an alternative browser.

View 2 Replies View Related

AutoCAD LT :: Unable To Save Files / Creating TMP Files Instead 2014

Apr 17, 2013

I have just recently installed AutoCAD LT 2014 on Windows 7 (Running on an intel iMac through Bootcamp). Ever since then i am receiving notifications when performing a save.

AutoCAD is telling me it cannot perform the save and is creating a .tmp file in the same location on the server as the file should be.

this is causing major performance issues and happens almost every second time I attempt to perform a save. The issue is that we are getting multiple versions of the same file duplicating on the file server which is very quickly going to cause capacity issues considering most files are 2-4mb in size.

View 5 Replies View Related

AutoCAD Civil 3D :: Files Range From TMP Files To Texture Folders

Feb 5, 2013

Deleting temp files, if I can just do a blanket Erase, or will this potentially damage autocad drawings.  My temp file is on my local drive, but all of our drawings are stored on a network drive.  It seems to me I remember these things storing up over time with crashes, etc.  But as they build up performance seems to dwindle.

These files range from .tmp files to Texture folders, .cvr files, and nonsense names like A$C5DCD5F31.Can I just window and Delete All?

View 4 Replies View Related

AutoCad :: How To Attach Number Of TIFF Files To Individual DWG Files

Oct 30, 2013

I am trying to attach a number of tiff files to individual dwg files. There are about 300 so I am writting a script that will open a new dwg, insert the tiff and save the dwg at a given name, so i have filedia set to 0 and everything is user input.

The problem I am having is that when I use the iinsert command and enter the path for the tiff I get this error: (filename)was not found or is not valid. This is pathed to a network drive. When I copy the same folder to my c: drive and run the command everything works as should. is there any reason for this?

When pathed to the c: drive and working correctly it looks like this:

C:UsershbrittDesktop11301 DCS Migration Phase 2 Execute Engineering Detail DesignDRAWINGSWORKING SETLOOPSDEMOD70-B-F101.TIF

When pathed to the network it looks like this:

G:EngineeringCURRENT JOBSMOTIVA11301 DCS Migration Phase 2 Execute Engineering Detail DesignDRAWINGSWORKING SETLOOPSDEMOD70-B-F101.TIF

I get this error:

G:EngineeringCURRENT JOBSMOTIVA11301 DCS Migration Phase 2 Execute Engineering Detail DesignDRAWINGSWORKING SETLOOPSDEMOD70 was not found or is not valid.

I noticed in the error message it cuts the end of the file name off. Is there a character limit?

I have done this before with a path to the network and everything worked as should. We have recently upgrade to 2013 but i would'nt think that would be an issue.

So basically, file on local drive everything inserts fine. File on network, get error.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert DGN Files To DWG Files?

Feb 8, 2013

I want to convert my DGN files to DWG files.

So I write this code in LISP:
 
(defun C:Batch_DGN2DWG (/path dgnfile SDI_Mode) (setq path "C:\DGN\" ;;Default path for DGN files location. DGNIMPORTMODE 0 ;;Imports the DGN file in a new drawing file. SDI_Mode SDI ;;Save Current SDI MODE SDI 1 ;;SET Single Drawing Mode for AutoCAD. );;setq (foreach dgnfile (vl-directory-files path "*.DGN" 1) (progn (command "-dgnimport" (strcat path dgnfile) "" "" "" "y" (strcat path dgnfile ".DWG")) (delay 100) );;progn );;foreach (setq SDI SDI_Mode) ;;restrore SDI Mode to previous value.)

but I can't finish it!

I attached some DGN files for test purpose.

View 9 Replies View Related

AutoCAD Inventor :: Project Files Vs Assembly Files?

Mar 8, 2013

I am deep into my first Inventor project. I am approaching the point where I would like to make a comprehensive set of drawings with bills of material etc. I have discovered that all this time I have actually been working in one big assembly file. My main project file is NOT a project file (so I have discovered). It is a *.iam file. 

So, my question is, should I create a project file, and then add my main assembly to it? Should one normally create a new Project file for each new job? What does one gain by doing this versus simply using the *.iam file?

Inventor 2013

View 1 Replies View Related

AutoCAD .NET :: Batch Converting CTB Files To STB Files?

Nov 19, 2009

As an organization, we have opted to go with STB as we have some complicated requirements that CTB doesn't accommodate. The wisdom of that decision is a moot point and I'm aware of the vast array of opinion.

We have a legacy of CTB drawings that occassionally need to be brought forward when projects get resurrected (state government highway designs are prone to getting shelved).

Up to AutoCAD 2009, I've had a VBA routine that performed a few operations on a list of files stored in a text file:

- Open the file

- Convert to STB using "CONVERTPSTYLES" with a specified STB file.

- Run a script to load a layer state file to change the plot styles from Style1, Style2 etc, to their correct named plot styles.

- Manage a recalcitrant layer that refused to play ball.

- Save and close the document

- Get the next file........

This was all fine until 2010 came along with the announcement that VBA was to be phased out. 2010 is OK with the VBA enablers, but now I've got some work to do.

Our organisation's development language is C# and I'm using Visual Studio 2008 Professional Edition to develop my C# .NET code.

Is there another mechanism than "SendStringToExecute" for sending a command such as convertpstyles to AutoCAD and getting .NET to wait for it to finish before proceeding.

I've got CommandEnded code that handles waiting for MTEXT and DTEXT commands to finish and I've tried constructing a CommandEnded for CONVERTPSTYLES, but it seems to me that commands that throw dialogue boxes such as CONVERTPSTYLESand SCRIPT aren't handled the same way.

I've tried setting FILEDIA to 0 prior to running the CONVERTPSTYLES command, however the message box that CONVERTPSTYLES presents before asking for the STB file appears to be getting in the way.

View 1 Replies View Related

AutoCAD Inventor :: Exporting Dwg Files From Idw Files

May 31, 2013

Does the exported dwg file always have to be a zip file?  I have tried save as a dwg file but it seems to be an Invnetor dwg which has the geometry as a block when opened with AutoCAD.  It is a little easier to explode the block in AutoCAD rather than open and extract the zip file, save the extracted dwg then delete the zip file.

View 3 Replies View Related

AutoCad :: Can Solidworks Files Be Saved As DWG Files

Aug 8, 2012

I have 2 questions.

1. Can Solidworks files be saved as dwg. files?

2.Can Inventor files be converted to 2D files in AutoCAD 2011?

View 4 Replies View Related

CorelDRAW Graphics Suite X5 :: Saves Of CDR Files Stopped Working Just Get Blank Files?

Oct 28, 2013

Resetting the User Setting with the the F8 key didn't solve the problem. Once the user gets caught up on a couple projects I'll try to update the version to SP3 and the hotfix.   

View 14 Replies View Related

Illustrator :: Files Don't Show Up In Acrobat File List When Trying To Combine Files Into Single Pdf?

Sep 24, 2013

Illustrator files don't show up in Acrobat file list when trying to combine files into a single pdf

View 9 Replies View Related

Lightroom :: Will Current Plugins For Sigma DP1/2 RAW Files Work With Files From DP1/2 Merrill Cameras

Oct 24, 2012

Will the current plugins for Sigma DP1/2 RAW files work with files from the DP1/2 Merrill cameras? And if not, is Adobe developing plugins for these cameras?

View 2 Replies View Related

Photoshop :: Any Way To Batch Process Color Corrected RAW Files To TIFF Files

Nov 11, 2013

I got over 160 color corrected RAW files from my photographer when I thought I was getting TIf or PSD files. I need to put them into an in design doc to send out for printing. Is there a way to convert all of these in one fell swoop without messing up the work that has already been done?

I didn't allow in my timing to save each one individually since i didn't know I was going to need to do this. I am really unfamiliar with batch processing, so how to best go about this, or if I even can. I am working in Photoshop CS6. version 13.06 x 64.

View 2 Replies View Related

Illustrator :: Linked PSD Files Not Found When Opening AI Files Via Shared Folder

Mar 17, 2013

My main user folder on the iMac is set to be shared (read/write, including all enclosed files) with my MacBook Pro. The job is a series of one-page InDesign files (they are newspaper advertisements). The IDD files contain a series of Illustrator files with linked PSD files.The idea is that we can both work on the .idd and .ai files in the same folder at the same time.
 
It's all working fine EXCEPT that whenever an .ai file is opened on the MacBook, Illustrator doesn't know where the linked PSD files are. We can update the link, but when the .ai file is then opened on the iMac and saved, the same thing happens the next time it is opened on the Macbook.
 
I don't want to embed the PSD files into the .ai files as sometimes I have to modify them and they can be linked to up to 20 .ai files.
 
G5 iMac OSX 10.7.5 / Macbook Pro OSX 10.8.2 / networked via FireWire cable / file sharing on, laptop user has Administrator status, all files are read/write, permissions include all enclosed files / CS6

View 7 Replies View Related

Photoshop Elements :: Copy New Files Only (Ignore Already Imported Files) Not Working

Dec 27, 2013

I am using Photoshop Elements 10 Version 10 (20110831.m.17215) and everytime I plug in a memory card to upload images it wants to upload every image on the card, even though it has previously uploaded images from that card, even though I have the "Copy New Files Only (Ignore Already Imported Files)" box ticked in the preferences Camera or Card Reader section. This gets very frustrating and time consuming when I have to go through the images every single time to uncheck the images that have already been uploaded.

View 3 Replies View Related

Lightroom :: Scrambling Raw Files - Affected Raw Files Open Fine In Other Programs?

Mar 27, 2014

After many years of using LR this is the first time I've encountered this issue (see 1st screenshot below). LR is scrambling my files. The affected raw files open fine in other programs, including adobe photoshop cc (see 2nd screenshot).

View 15 Replies View Related

Photoshop :: CS6 Won't Play Or Process Dolby Digital (AC-3) Audio Files From AVCHD Video Files

Jun 13, 2013

Photoshop CS6 Extened won't play or process Dolby Digital (AC-3) Audio Files from my AVCHD video files.The video plays fine just no sound at all. When processed still no sound. Are there any (AC-3) audio codecs I can download and install. How would I install them. Do I need to convert audio files to another format & if so how & what format.

View 1 Replies View Related

Lightroom :: Nikon D600 - Deleting Files And Saving Files Brings Up Error Message?

Feb 25, 2013

Deleting files and saving files brings up an error message. Files can't be deleted from lightroom which makes editing a nightmare. Also Saving Files (raw of jpeg), brings up an error message everytime.

View 1 Replies View Related

Photoshop :: Unable To Open Files Or Create New Files In CC Trial

Oct 15, 2013

After getting no support from your phone support line. I am writing here in hopes that this issue can be resolved. I cannot open files or create new files in Photoshop CC trial.

View 3 Replies View Related

Photoshop :: Convert Full Resolution Files To Web Based Files

Jun 6, 2012

I am working on a museum project. I have been asked to convert full resolution files to web based files using "Save for Web and Devices". The problem is in the file naming. Museums typically use accession #s for each work. Example   1999.63.102  So the digital file would be named 1999.63.102.jpg (or tif).

When I attempt to save the file using "Save for Web and Devices" the resulting name is converted to 1999.jpg  I believe the . (periods) to be the culprit. There are hundreds to do so renaming is not an option. This does not occur when I use "Save as".

View 19 Replies View Related

Illustrator :: Batch Export Of EPS To BMP Files Creates Extra EPS / AI Files

Dec 20, 2012

A simple action.
 
File>Export>.bmpClose 
 
If I run the action on one file, it works perfect.
 If I try to run it as a batch, it creates the bmp files fine.
But it also creates either a .ai file, or two .eps files!
 
Writing one or two extra files signifiantly shows the process down.
 
After I run the batch it is not hard to simply delete the extra .eps/ai files of course. 
 
But writing those files seriously slows the process down, and I have about 89,000 more files to go.
 
Illustrator CS4.  Windows XP

View 1 Replies View Related







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