Getting Entities in between two Polylines.
Moderators: SDS, support, admin
-
- Posts: 19
- Joined: 31 Aug 2017, 09:47
Getting Entities in between two Polylines.
We have few Dimensions placed between 2 Poly lines. Please let me know how i can get only those dimensions.
Thanks
Thangaraj N
Thanks
Thangaraj N
Re: Getting Entities in between two Polylines.
Hello,
Could you please post a screenshot which shows the position of these dimensions in relation to the polylines?
Mikhail
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
Chat support on Skype: cadsofttools.support
-
- Posts: 19
- Joined: 31 Aug 2017, 09:47
Re: Getting Entities in between two Polylines.
Please find the attached Screenshot. i would need to get the dimension that are marked with arrow.
Thanks
Thangaraj N
Thanks
Thangaraj N
- Attachments
-
- Screenshot_5.png (20.07 KiB) Viewed 25681 times
Re: Getting Entities in between two Polylines.
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.
Mikhail
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");
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support