How to select all entities?
Moderators: SDS, support, admin
How to select all entities?
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,
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,
Re: How to select all entities?
Hello,
Please try this code:
Mikhail
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();
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support