Counting entities
Moderators: SDS, support, admin
-
- Posts: 49
- Joined: 06 Feb 2008, 03:26
- Location: Mexico
Counting entities
Im havin a trouble counting entities....im using this:
CadImage.Converter.count;
and the curious thing is that i get more entities than i have...
lets say my dwg...acording to autocad has 45378 entities but the converter.count on my project gets me 45492 so there was a
115 difference....
if i try to use one of this supposed entities that are after the 45378 im getting an error, let say if try to read the name of the entitiy number 45400...
so i guess the error is because the entity doesnt exists....and there for....the Converter.count numbre is wrong...
First what i did was just ignore those 115 entities,with something like this
for I := 0 to Form1.Img.Converter.count - 115 do
begin
end
and i had no problem....
but later on...we made changes to the dwg file and now the difference isnt 115 entities, it more....like 300,...and as i said before
when im attempting to list the entities by running with a for statemant, it gives me an exception beccause of this non existent entities....
why are this counts wrong? i hope i made myself clear.... thanks a lot for your time
CadImage.Converter.count;
and the curious thing is that i get more entities than i have...
lets say my dwg...acording to autocad has 45378 entities but the converter.count on my project gets me 45492 so there was a
115 difference....
if i try to use one of this supposed entities that are after the 45378 im getting an error, let say if try to read the name of the entitiy number 45400...
so i guess the error is because the entity doesnt exists....and there for....the Converter.count numbre is wrong...
First what i did was just ignore those 115 entities,with something like this
for I := 0 to Form1.Img.Converter.count - 115 do
begin
end
and i had no problem....
but later on...we made changes to the dwg file and now the difference isnt 115 entities, it more....like 300,...and as i said before
when im attempting to list the entities by running with a for statemant, it gives me an exception beccause of this non existent entities....
why are this counts wrong? i hope i made myself clear.... thanks a lot for your time
Everything is Posible!
Re: Counting entities
Hello!
We recommend to use the following construction:
Sergey.
We recommend to use the following construction:
Code: Select all
CadImage.Converter.Counts[csEntities]
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 49
- Joined: 06 Feb 2008, 03:26
- Location: Mexico