How to select all entities?

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
agvs
Posts: 30
Joined: 16 Jun 2016, 11:10

How to select all entities?

Post by agvs » 29 Jul 2016, 10:54

Hi,
I'd like to be on selected all entities continually.
I tried to make sources.
Let you check below:
private void button1_Click(object sender, EventArgs e)
{
//int l = this.clipRectangle.ClientRectangle.Left;
//int t = this.clipRectangle.ClientRectangle.Top;
//DPoint pt1 = this.GetRealPoint(l, t, false);
//DPoint pt2 = this.GetRealPoint(this.clipRectangle.ClientRectangle.Right, this.clipRectangle.ClientRectangle.Bottom, false);
DRect tmpRect = new DRect(?,? ,? ,? );
cadImage.MultipleSelect(tmpRect, true, true);
cadPictBox.Invalidate();
}
I want to set full size of cadPictBox at 'DRect tmpRect = new DRect(?,? ,? ,? );'.
How do I have to set at '?'?
Let me know!!!
Thanks,

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to select all entities?

Post by support » 29 Jul 2016, 20:03

Hello,

Please try this code:

Code: Select all

DPoint pt1 = this.GetRealPoint(cadPictBox.ClientRectangle.Left, cadPictBox.ClientRectangle.Top, false);
DPoint pt2 = this.GetRealPoint(cadPictBox.ClientRectangle.Right, cadPictBox.ClientRectangle.Bottom, false);
DRect tmpRect = new DRect(pt1.X, pt1.Y, pt2.X, pt2.Y);
cadImage.MultipleSelect(tmpRect, true, true);
cadPictBox.Invalidate();
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply