Change an XRef
Posted: 26 May 2011, 01:54
Hi,
I noticed that under CADImage.Converter you have XRefs. Is there a way to change the XRef?
See code attempt:
Objective:
We have a standard template that is used for most drawings but under some circumstances we need to change this template. The simple solution is to change the XRef on the fly. Can this be done?
I noticed that under CADImage.Converter you have XRefs. Is there a way to change the XRef?
See code attempt:
Code: Select all
this.cadEditorControl1.Image.Converter.XRefs[0].Dispose();
CADXRef NewXRef = new CADXRef();
NewXRef.AddCADImage(@"Z:\MFG\WF\MYXREF.DWG");
this.cadEditorControl1.Image.Converter.XRefs.Add(NewXRef);
this.cadEditorControl1.Image.Converter.Loads(NewXRef);
this.cadEditorControl1.Invalidate();
this.cadEditorControl1.Refresh();
We have a standard template that is used for most drawings but under some circumstances we need to change this template. The simple solution is to change the XRef on the fly. Can this be done?