DXFReaderNETControlReadDWG Method
|
Reads and displays a DWG file indicated by the FileName property or by the DWGFileName parameter.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntaxpublic bool ReadDWG(
string DWGFileName = "",
bool DisplayAfterRead = true
)
Public Function ReadDWG (
Optional DWGFileName As String = "",
Optional DisplayAfterRead As Boolean = true
) As Boolean
public:
bool ReadDWG(
String^ DWGFileName = L"",
bool DisplayAfterRead = true
)
member ReadDWG :
?DWGFileName : string *
?DisplayAfterRead : bool
(* Defaults:
let _DWGFileName = defaultArg DWGFileName ""
let _DisplayAfterRead = defaultArg DisplayAfterRead true
*)
-> bool
METHOD ReadDWG(
DWGFileName AS STRING := "",
DisplayAfterRead AS LOGIC := TRUE
) AS LOGIC
Parameters
- DWGFileName (Optional)
- Type: SystemString
The name of the DWG file to be read with full path. - DisplayAfterRead (Optional)
- Type: SystemBoolean
If set to false the drawing isn't displayed after read (Default value = true).
Return Value
Type:
BooleanTrue if read is successful.
Remarks
ExamplesdxfReaderNETControl1.ReadDWG(@"C:\Drawings\sample.dwg");
See Also