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

Automatic DWG Export

$
0
0

Hello ,

i want to automatic the DWG Export.
My first idea where to record a Makro, looks fine but doesnt working.

I want to record: File --> Export --> DGN/DWG..
and then i choose DWG.

But the MacroRecorder doenst recognice the FileType (Filter) Choice.

The Recorded Macro looks like:

 If DialogBoxName = "Datei exportieren" Then

        CadInputQueue.SendCommand "MDL COMMAND MGDSHOOK,fileList_setDirectoryCmd C:\Users\ivbi\Desktop\"

        CadInputQueue.SendCommand "MDL COMMAND MGDSHOOK,fileList_setFileNameCmd Model_Halle 8_new.dwg"
        
       

    '   Remove the following line to let the user close the dialog box.
        'DialogResult = msdDialogBoxResultOK

    End If  ' Datei exportieren

Ich improve and use the additional command:

CadInputQueue.SendCommand "MDL COMMAND MGDSHOOK,fileList_setFilterCmd *.dwg)"

But this doesnt work , without an error.

The result of the Makro is, this Makro saved the file als dwg but intern the file is an dgn file (same size as the dgn)

Can some one help me.

Thanks

Alex


Viewing all articles
Browse latest Browse all 4331


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