Message 1 of 2
IFC import to Civil 3D
Not applicable
04-19-2020
11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to develop a VB.Net Application in Civil 3D 2018 so I can convert some IFC files to dwg. I've tried using the SendCommand, but this doesn't wait until the process has completed, before moving to the next task and this is causing an error. This there a better way to access the IFCIMPORT command?
This is my code
Dim FileName as String = "C:\Test.ifc"
Dim DrawingName as String = "C:\Test.dwg"
Dim CommandLine as String - "-IFCIMPORT" & vbCr & FileName & vbCr & "NO" & vbCr & DrawingName & vbCr & "IMPORT" & vbCr
ActiveDocument.SendCommand(CommandLine)
Thanks in advanced
Steven Houghton
