Getting Entities in between two Polylines.

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
nthangaraj
Posts: 19
Joined: 31 Aug 2017, 09:47

Getting Entities in between two Polylines.

Post by nthangaraj » 27 Sep 2017, 09:26

We have few Dimensions placed between 2 Poly lines. Please let me know how i can get only those dimensions.

Thanks
Thangaraj N

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

Re: Getting Entities in between two Polylines.

Post by support » 27 Sep 2017, 17:19

Hello,

Could you please post a screenshot which shows the position of these dimensions in relation to the polylines?


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

nthangaraj
Posts: 19
Joined: 31 Aug 2017, 09:47

Re: Getting Entities in between two Polylines.

Post by nthangaraj » 28 Sep 2017, 07:30

Please find the attached Screenshot. i would need to get the dimension that are marked with arrow.

Thanks
Thangaraj N
Attachments
Screenshot_5.png
Screenshot_5.png (20.07 KiB) Viewed 25573 times

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

Re: Getting Entities in between two Polylines.

Post by support » 29 Sep 2017, 19:37

Hello

If the marked dimensions are located on a separate layer, you may easily filter them off using the following code. If they are not, you will have to find another property that distinguishes these dimensions from other objects.

Code: Select all

using CADImport;
using System.Collections.Generic;
...

var cadDimensions = cadImage.CurrentLayout.Entities.FindAll(ent => ent.EntType == EntityType.Dimension);
var cadDimensionsOnLayer = cadDimensions.FindAll(dim => dim.Layer.Name == "SomeLayer");
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply