save
Posted: 06 Jul 2016, 09:09
Hello,
it is possible to draw on a CADRasterImage but it seems not to be possible to save the drawing.
Is there any possiblity to save the CadRasterImage. We need to load / save the image as "project" so the customer can save the work and then continue. (All CADEntities and Images must be on the same position inside the Image)
I found the code for saveAsDXF, but it seems to exit if it's an CadRasterImage:
Is there another save method, or how can I save the Image,
Thank you,
Roman
it is possible to draw on a CADRasterImage but it seems not to be possible to save the drawing.
Is there any possiblity to save the CadRasterImage. We need to load / save the image as "project" so the customer can save the work and then continue. (All CADEntities and Images must be on the same position inside the Image)
I found the code for saveAsDXF, but it seems to exit if it's an CadRasterImage:
Code: Select all
private void miSaveAsDXF_Click(object sender, System.EventArgs e)
{
if(this.cadImage == null)
return;
if(this.saveDXFDlg.ShowDialog() != DialogResult.OK)
return;
SaveAsDXF(this.saveDXFDlg.FileName);
}
private void SaveAsDXF(string fName)
{
#region Export
#if Export
if(cadImage == null) return;
if(cadImage is CADRasterImage)
{
return;
}
CADImport.Export.DirectCADtoDXF.CADtoDXF vExp = new CADImport.Export.DirectCADtoDXF.CADtoDXF(cadImage);
vExp.SaveToFile(fName);
#else
MessageBox.Show("Not supported in current version!", "CAD .NET");
#endif
#endregion Export
}
Thank you,
Roman