The number of entities on a specific layer?

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
andyseo
Posts: 4
Joined: 23 Apr 2007, 22:00
Location: USA

The number of entities on a specific layer?

Post by andyseo » 09 Sep 2007, 07:29

Hi,

How can I get the number of entities on a specific layer?
I know xx->Converter->Counts[csEntities] gives you the number of total entities, but when I tried to use similar commands to get the number of entities on a specific layer, the only number I am getting is "0" (xx->Converter->Layers->Count)
Thanks in advance.

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

Post by support » 10 Sep 2007, 12:45

Hello!

xx->Converter->Layers->Count gives total amount of layers in the file.

It is necessary to analyse property <b>Layer.Name</b> of all CAD entities to determine what entities belongs to a specific layer.

Sergey.



Please post questions to the forum or write to support@cadsofttools.com

Post Reply