AutoCAD .NET :: Automate Importing Microstation Files

Sep 22, 2010

I'm trying to automate importing Microstation files into AutoCad (and then doing interesting things with them).  I'm stuck on the import, as it keeps throwing an "Invalid Argument Exception".

I've thrown empty strings, "hello world" strings, ensured that the string points to a valid file, ensured that the string points to a valid Microstation file... for the scale factor, I've thrown constants, symbolic constants, variable doubles... and where I think the error lies, the insertion point, I've thrown Points, Point 2d's, Point 3d's, arrays of integers, arrays of doubles, and Acad Points, and all of the above even cast as objects.

Supposedly, the signature for import is:

object IAcadDocument.Import(string FileName, object Insertion Point, double ScaleFactor)

but the <object Insertion Point> is throwing me... what kind of object is wanted? The following is a complete working program; you'll just have to add the two autocad references.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
[code]....

(Obviously the intent is not to use hard coded file names, these are for debug purposes. I'm also running as a Windows project rather than a Console project, but the exception is the same.)

View 9 Replies


ADVERTISEMENT

AutoCad :: Convert Files To Microstation

Dec 7, 2005

I am not a CAduser, but someone who is managing a CAD project whereby we need to covert the files to Microstation. My AutoCAD person has limited experiece doing this so I thought I would turn to you for your expertise.

I've read that you can convert AutoCAD files to .dxf and import into Microstation but will that keep the integrity of the file? As you cannot covert directly from one to the other because fonts, line weights, etc. don't translate well.

View 5 Replies View Related

AutoCAD LT :: Blue Screen When Opening Files Converted From Microstation

May 30, 2012

Everytime I try to open files created from Microstaion but saved as CAD it blue screens my computer! I have a newer laptop with Windows 7. However, an older computer in our office with Windows XP can open these files with no problem? Both computers have AutoCAD LT 2012.

View 1 Replies View Related

AutoCad :: Converting 1000's Of Files From Microstation J Drawings With Mail Merge Portion

Nov 9, 2011

We are a water utility and have thousands of detail drawings of service taps and hydrant connections (maybe 11,000 total). These are in the old Microstation J format. Each drawing is divided into a top half and bottom half. The bottom half of the drawing is the actual drawing portion.

The top half of the drawing is text that comes out of an Old Oracle database, into Microsoft Word 2000 through mail merge then is copied and pasted into the top portion of the card. Newer drawings done like this and opened in AutoCAD have the top portion identified as an OLE object (embedded object), while the older drawings just look like a drawing in the top.

I'm looking to update the system to ArcGIS and AutoCAD. The data will be moved to a Microsoft Access database (probably later SQL Server), and I want to convert all the old Microstation drawings into an AutoCAD format. ArcGIS will provide the basemap and be linked to the database, with clickable hyperlinks to open the AutoCAD drawings. I would like to be able to keep the bottom drawing half while changing the top half of each drawing to reflect updated data in the database. If this can be automatically updated, that would be awesome.

One is the best program to automatically bulk convert the drawings from Microstation J to AutoCAD (I have 2011). Also, I'm looking for a method to display the text from the database in the top portion of the card using either mail merge with AutoCAD or some automatic method of pulling the info out of the database. Can I just copy-paste this info into AutoCAD as we did with Microstation or is there a better way?

View 6 Replies View Related

AutoCAD Inventor :: Automate Insertion Of Several Files ILogic?

Jan 24, 2013

I have the following code to automate the insertion of several files iLogic.

Sub TestPlace(doc As String) Dim cm As CommandManager Set cm = ThisApplication.CommandManager Call cm.PostPrivateEvent(kFileNameEvent, doc) Dim cd As ControlDefinition 'Set cd = cm.ControlDefinitions("AssemblyPlaceComponentCmd") Set cd = cm.ControlDefinitions("iLogic.PlaceComponent") Call cd.Execute End SubSub InsertaIlogic() TestPlace ("ilogic1.iam") TestPlace ("ilogic2.iam") TestPlace ("ilogic3.iam") TestPlace ("ilogicN.iam") ...

When I launched the single macro inserts two.

You can insert when to introduce coordinates ?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automate Options -> Files Changes

Aug 17, 2012

As you can see, if i rename this to "acad.lsp" and put it in the network search path of AutoCAD users, it will update several settings in their Options > Files. WHAT A TIME SAVER THIS HAS BEEN!

What i want to do now is to set the "Default Template File Name for QNEW" but i don't know how to complete this line:

(vlax-put-property AcadFiles ___________ <variableName>)

How to fill in the blank?

View 3 Replies View Related

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work.  Here is my Script, mostly copied from the example script provided with Illustrator (CS5).  And, this works manually, using the file names in the script, via Load Variable Library
 
    Set appRef = CreateObject(strIllistratorVersion)
   
       'Open the file and import the datasets
        Set docRef = appRef.Open(strTemplate & "200-500.ai")
        'docRef.Datasets.RemoveAll
        docRef.Variables("Yearbook").Delete
 
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
       
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai  |  XML file:" & strXMLFolder & ""  & objFile.Name & "^')"
        If (appRef.Documents.Count > 0) Then
            Set docRef = appRef.Documents(1)

 [Code]....
 
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
 
It's simply not loading.  What do I need to do to get it to load?

View 8 Replies View Related

Photoshop :: Automate Cropping Of 20 Files?

Jul 31, 2007

I have 20 files that i need crop with same settings how can i automate that.

View 2 Replies View Related

AutoCad :: Microstation Arc Tool

Aug 23, 2012

I am a landscape architect, and have used autocad for the past three years, and I am also familiar with microstation, which I used at a previous job. My question is primarily for the users that are familiar with both products.

Unlike much of the drafting I have done in architecture (which is often straight lines and 90 angles), landscape architecture and land planning often requires long sweeping curves that lead into tangent arcs, and or lines. Microstation has a brilliant arc tool that allows one to create beautiful curves that are always tangent. The arc tool also allows placement of the next curve anywhere, as opposed to snapping to an end point. Is there a way to do the described actions in Autocad?

View 2 Replies View Related

AutoCad :: How To Convert DGN To DWG Without Microstation

Mar 21, 2012

Is there a way to convert a .dgn to a .dwg without microstation?

-I have read that you can xref a dgn in a dwg but this did not work. civil3D simply does not recognize the dgn extension in any way shape or form ....that i have found.

THE LONG VERSION AS TO WHY:

I have both a dgn and a dwg of the same thing, only difference being the dgn has colored layer linework and lineweights etc. for entites on the same layer. The .dwg is just thousands of white lines on various layers.

to make it easier id like ot be able to have the colors to at least quick select stuff to move to their own layers seperately. rather then have multiple entites on the same layer that are in no way related to each other.

View 4 Replies View Related

AutoCAD Civil 3D :: Xml Conversion To Microstation

May 8, 2012

I have a client that required us to give them a surface that they could load into microstation.  I have version c3d2010.  I gave them a land xml file.  When they uploaded it into their program, which I believe is inroads they said the contours it generation for the surface looks great in the middle, but the edges it seems to have dropped the elevations to zero. 

I did make a boundary to go around the surface to clean up any errant triangulation lines.  The polyline I used is at elevation zero.  I don't know if this is causing that?  The client thinks the inroads is forcing the edges to be elev zero.  She has limited knowledge of land xml files and has never used them till now.

Something to change on her end or is it my polyline causing this?

View 3 Replies View Related

AutoCAD 2013 :: Microstation Conversion To And Or From

Feb 6, 2013

So we have now been told by the state that all of our right of way maps must be done (finished) in microstation. We have solely been autocad users for the last 15 years. We purchase microstation, and I immediately hate it! So, the owner wants to know if we can convert back and forth. I did some quick converting but seems the textstyles are the major problems.

View 1 Replies View Related

AutoCAD Civil 3D :: CTB From Microstation Pen Table?

Nov 5, 2012

Creating a CTB file to mimic a Microstation pen table? I have a client supplied *.tbl (an intergraph pen table file I believe) and how to generate a CTB that will behave similarly (ie. plot nearly the same)..

I can open the *.tbl file in a text editor and it just looks like a bunch of "if, then" statements related to line weights and pattern files....

I have already created a template with the same layers/levels, colors, linewights, etc... (and can convert everything to dgns), but now I need to figure out how to get similar plotted results from both sets of drawings (the dwg and the dgn..)

View 2 Replies View Related

AutoCAD Civil 3D :: Tool In Microstation That Converts DGN To DWG?

May 2, 2011

Is there a tool in Microstation that converts .dgn to .dwg without any loss of styles, lineweights, etc?

View 9 Replies View Related

AutoCAD 2013 :: Converting Microstation Linetypes

Jun 17, 2013

I am working on my company template. We are trying to keep it as close to INDOT standards as we can. Indot uses microstation and provides many files for microstation users. I converted one of the files to a .DWG and impoted all the linetypes to my template. This had a lot of bad side effects.

How to extract the actual code for the Linetypes, so that i can simply re-write a code as autocad wants it and then import?

View 3 Replies View Related

AutoCAD 2013 :: How To Edit Microstation File (DGN) In DWG

Dec 17, 2012

I attached DGN file in dwg, the same way of attaching any exrefrence. I would like to make changing the this attached file. It does not respond as block or xref.

 How can I edit this DGN in the AutoCAD?

View 2 Replies View Related

AutoCAD Civil 3D :: MicroStation Cells Replaced By PAT File

Jun 18, 2012

I'm in the process of assisting a client implement Civil 3D into their work environment.  Up to this point they have been MicroStation users.  They have now seen the power of Civil 3D and are making the move.  However, they're not yet Civil 3D experts and they still have some projects in MicroStation that need to be completed.   

So in a project in MicroStation they are trying to place a pattern (similar to a hatch pattern in ACAD) into an area but the software has stopped looking for the MicroStation cell file (I believe that's what it's called) and has now started looking for the AutoCAD acad.pat file.  This has only started happening on any computer that has Civil 3D installed. 

Where that search path is located within MicroStation so I can reset it?   Until this is resolved they've halted further installs of Civil 3D. 

View 6 Replies View Related

AutoCAD Civil 3D :: Microstation To Add Surface Request For Information

Oct 22, 2013

I'm mainly work in 3D software (C4D, 3Ds Max). I have a client that wants to do high end traffic renderings. They have supplied me with the Infrastructure Design Suite 2014. 

I received an old Microstation file from them, which I have then brought in to Civil 3D. I would like to add surfaces to this file so then I can export to 3Ds Max, and use Civil View to incorporate the design, and then traffic simulation data from VISSIM.

 I have researched the entire work flow, the only thing holding me up is adding the surfaces to this Microstation file. It seems this is maybe not very common as I am having a hard time finding any tutorials or documentation on the internet.

View 8 Replies View Related

AutoCAD 2010 :: How To OPEN Legacy MicroStation Drawings

Apr 4, 2012

I'm trying to OPEN some legacy MicroStation drawings through AutoCAD. I have done this with nearly 400 files thus far but there are a dozen or so that are coming back with an error message reading 'YOU HAVE A SELECTED AN INVALID OR UNSUPPORTED DGN FILE'. I can look at these through Bentley Viewer, but do not have a full version of MicroStation to try and fix things.

How to fix things via AutoCAD?

View 1 Replies View Related

AutoCAD 2010 :: Copy Or Move Object In File Converted From Microstation

May 22, 2012

When I copy or move an object in a file converted from Microstation to Autocad 2012 the system freezes or slows down to a crawl. If I redraw the drawing in Autocad it works fine. I have a lot of drawings converted from Microstation and I don't need to be redrawing them all.

View 1 Replies View Related

AutoCad :: Lisp Routine Exist That Select Similar Microstation Blocks

Apr 17, 2012

I have a previously converted Microstation drawing in Autocad 2011. In the conversion all blocks were given unique names. I would like to edit similar blocks globally. Many of the Microstation blocks look like the standard blocks I use. Does a Lisp routine exist that can select similar Microstation blocks and give them a single name?

View 3 Replies View Related

AutoCAD Map 3D :: Importing JP2 Files?

Aug 24, 2012

Patch for AutoCAD Map 2013 which allows importing .jp2 files. We had version 2011 setup as such, but having difficulty setting up 2013.

View 2 Replies View Related

AutoCAD Map 3D :: Importing STP Files

Jan 17, 2013

I am trying to import a .stp file using Map3d. I know I need to go to import, but there is no option for choosing a .stp file.

View 7 Replies View Related

AutoCAD LT :: Importing EMF Files

Feb 10, 2012

Using AutoCad LT2011, import a EMF file to be used as an overlay.  The WMF availability is the old version and the other software I am using exports a EMF file and AutoCad LT2011 does not recognize this extension.

View 1 Replies View Related

AutoCad :: DGN Files Not Importing?

Sep 12, 2011

I am trying to import DGN (Microstation) files in AutoCAD but it does not work. Initially, I had tried with ACAD version 2012 and subsequently tried versions 2011 and 2010. Neither worked.

I think I have read most of the threads relating to this topic, but none seem to address my case, which is:

I use dgnimport command, select the file and check the following options: Import in the current drawing, Ignore duplicate names, desgin model from DGN file "Default", translate references to blocks or xrefs, DGN units to convert to Master units, mapping setup "Standard". I click OK.

What happens next is... nothing. Well, not exactly. It does import layers, text styles, blocks, etc. But there is nothing (no drawing) in the model or paper spaces. And from previews and accompanying pdf files, there should be plenty of drawing objects in the file.

The only error log I can see from the text window is that four DGN line styles could not be resolved. But I am hesitant to think such a minor issue would cause the whole drawing to be missing.

View 2 Replies View Related

AutoCAD VB :: Importing DXF Files With VBA?

Sep 15, 2011

I am trying to import-copy- a group of .dxf files (more than 50) using VBA. The idea is to copy the data from this files in anyway, either opening the file using copy command in the original files and the paste command in the final file, using insert or the regular import option.

View 1 Replies View Related

AutoCAD Civil 3D :: Importing DGN Files

Apr 22, 2013

I am using different functions in Civil 3D 2012 in order to import DGN files.

Open->DGN
MapImport->DGN
Import->DGN

Everytiome I receive "0 object(s) inserted in 0 sec(s)".

Obviously importing is not working! Am I missing some object enabler or is a system variable incorrect?

View 3 Replies View Related

AutoCAD LT :: 2011 - Importing SAT And STP Files?

Mar 18, 2013

Is there any way to import SAT or STP files into AutoCAD LT2011?

View 2 Replies View Related

AutoCAD Map 3D :: 2012 - Importing MDB Files?

Dec 19, 2011

I’m using AutoCAD MAP 3D 2012. I’m trying to import a .mdb file. The text that I’m working from says because I’m working on a 64 bit machine I will have to download from Microsoft a file called Microsoft Access Database Engine and install the proper drivers. I’ve downloaded the file and run it and rebooted my machine but I still can’t bring in the .mdb file.

View 7 Replies View Related

AutoCAD Inventor :: Importing STL Files

Sep 22, 2011

Is Inventor compatible with STL files (probably not as I haven't succeeded getting them in)? I've got an object scanned and need this scan data as template to rebuild the object in Inventor. If STL files can't be imported, are there any other ways how to get point clouds or meshes into Inventor (or is it just impossible)?

View 3 Replies View Related

AutoCAD Civil 3D :: Importing SHP Files

Feb 15, 2013

I am trying to import a SHP file to obtain a surface. The imported data come in a polyline.

The data containt x and y as well as elevation. But, when I use the command

" mapimport " , the imported data only have 4 elevation ( 1,2,3 and 4). This is rather unexpected because the line represent the topography of a large area. 

I am working under Civil-3D 2013. The original data are okay, they were exported from GIS and they works fine on this station.

View 9 Replies View Related







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