Page 1 of 1

How to transform a selected entity

Posted: 18 Dec 2008, 12:03
by Anderson
Dear Sergey,

I use CADImage.AddScaledDXF to transform my dxf file. But when I save it, I cann't open the
saved DXF file. I don't know why ?
Could you show me some sample code to transform the selected entity ? (such as scale, rotate )

Thanks!

Anderson

Re: How to transform a selected entity

Posted: 22 Dec 2008, 10:28
by support
Dear Anderson,
I use CADImage.AddScaledDXF to transform my dxf file. But when I save it, I cann't open the
saved DXF file. I don't know why ?
As we previously said (post http://www.cadsofttools.com/forum/viewt ... =15&t=1413 on 09 Dec 2008) we caught this problem. We will inform you when it is solved.
Could you show me some sample code to transform the selected entity ? (such as scale, rotate )
Please try the following code:

Code: Select all

private void ChgInsScaleRotation_Click(object sender, System.EventArgs e)
{
	if(this.cadImage == null) return;
	this.cadImage.UseDoubleBuffering = false;
	for (int i = 0;i < this.cadImage.Converter.GetCounts(CADImport.FaceModule.ConvSection.Entities); i++)
	{
		CADEntity entEntity = (CADEntity)this.cadImage.Converter.GetSection(CADImport.FaceModule.ConvSection.Entities).Entities[i];

		if (entEntity.EntType == CADImport.EntityType.Insert)
		{					
			CADInsert entIns = entEntity as CADInsert;
			entIns.Scale = new DPoint(1.5, 0.5,1);
			entIns.Angle = 45;
			this.cadImage.Converter.Loads(entIns);
			this.cadPictBox.Invalidate();
		}
	}
}
Sergey.

Re: How to transform a selected entity

Posted: 22 Dec 2008, 13:05
by support
Dear Anderson,
I use CADImage.AddScaledDXF to transform my dxf file. But when I save it, I cann't open the
saved DXF file. I don't know why ?
As we previously said (post http://www.cadsofttools.com/forum/viewt ... =15&t=1413 on 09 Dec 2008) we caught this problem. We will inform you when it is solved.
What is the version of Visual Studio that you use?

Sergey.

Re: How to transform a selected entity

Posted: 22 Dec 2008, 17:59
by Anderson
Dear Sergey,

My version of Visual Studio is VS.net 2005

Anderson.

Re: How to transform a selected entity

Posted: 24 Dec 2008, 16:20
by support
Hello!

The problem has been solved.
Please contact us via e-mail to support@cadsofttools.com accordingly the question of getting updated beta version of the library.

Sergey.