Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[V8i] Command for C#/VB.NET: import CAD file + file path as parameter

$
0
0

Hello,

we are developing a special program (.NET) that converts circuit diagram drawings from our CAD / CAE tool to Microstation v8i format (customer requirement). We have a lot of experience with our tools and less experience with Micrstation v8i. But the COM interfaces are very similar so most of the commands are self-explanatory.


Here is my problem:

I want to import DGN files into an already existing DGN template file (including border file, colour table, tag values, special settings etc.) in a loop (> 1000 loops required for each project).

FILE --> IMPORT --> CAD Files... --> File name: "FILE_PATH" --> Open

In all other CAD/CAE tools there is a command available to import a file and define the file path as a parameter, for example "importDGN (FILE_PATH As String)". In Microstation v8i we only found this command but we have to paste the path manually:

MicrostationApplication.CadInputQueue.SendCommand("MDL KEYIN CADIMPORT IMPORT CADFILE")

Is there any possibility for an additional parameter or an equivalent solution?

Best regards,

Marc


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>