Property to see entity is delete or active

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
sen
Posts: 20
Joined: 24 Jun 2016, 12:08

Property to see entity is delete or active

Post by sen » 24 Jun 2016, 12:17

Hi,

some light please.

What is the property to see an entity is delete or active ?

I edit some mtext 3 times in autocad and open the file in "ViewerDemo" the mtext show the latest one (good)

but when I query each entity using "ImportDemo" examples the mtext show 3 times, after I PURGE the autocad DWG file "ImportDemo" is good only query the latest one.

The query each entity in DWG I'm follow examples:
image.Converter.Iterate(new CADEntityProc(ReadCADEntitiesParamsToXML), null, cadParams);



Thank You

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

Re: Property to see entity is delete or active

Post by support » 24 Jun 2016, 15:19

Hello,

The PURGE command doesn't remove graphical objects except a zero-length geometry or empty text and mtext objects. Drawing from this fact, your DWG file contained 2 empty MText objects which were deleted with PURGE command. To check if an MText is empty, you can use a CADMText.Text property which returns a string containing the multiline text contents.


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

sen
Posts: 20
Joined: 24 Jun 2016, 12:08

Re: Property to see entity is delete or active

Post by sen » 25 Jun 2016, 13:50

I'm sorry make my self not clear. Not exactly delete the entity but modify it. Cadmtext.text still have value.

My step in Autocad:
1. Text/Mtext values is ABC
2. Change the text value to ABC01 then SAVE
3. Move the entity (ABC01) around 10 point to left , change it to ABC02 then SAVE
4. Move the entity (ABC02) around 10 point to bottom , change it to ABC03 then SAVE
5. Last move it to the original place and change it to ABC04 then SAVE

your Image Control loaded the file perfectly only show the last one ABC04

but if I query using image.converter OR save it to DXF there are 5 entites ABC, ACB01, ABC02, ABC03 and ABC04.

I just need to get ACB04 like the Image Control showing. I'm using AutoCad 2013. And after I use PURGE command in Autocad only one left like the Image Control showing ABC04

So trick to get the last value ?


Thank You

sen
Posts: 20
Joined: 24 Jun 2016, 12:08

Re: Property to see entity is delete or active

Post by sen » 25 Jun 2016, 14:10

After I further test, if I am using AutoCad 2013 save as DXF , ABC04 is there and ABC, ABC01, ABC02, ABC03 do not get extracted to the DXF

But previously when I'm save as DXF from ViewerControl Demo, all the text are extracted.

Since your Image Control works perfectly there must be some property/or what else to get the newest one like shown in Image Control.

some light please

Thank You
Sen

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

Re: Property to see entity is delete or active

Post by support » 27 Jun 2016, 16:10

Hello Sen,

This is a quite strange behaviour, an entity modified in AutoCAD should not be transformed to its five instances. To shed some light on this issue, we'll have to make tests with your drawing file.

Please post your AutoCAD DWG 2013 file here using the Upload attachment option and specify your version of CADImport.dll.


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

sen
Posts: 20
Joined: 24 Jun 2016, 12:08

Re: Property to see entity is delete or active

Post by sen » 28 Jun 2016, 13:50

Im using CAD .NET 11

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

Re: Property to see entity is delete or active

Post by support » 28 Jun 2016, 20:54

Hello Sen,

If it isn't possible for some reason to attach the drawing file to a forum message, you can send it to the Technical Support e-mail.


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

sen
Posts: 20
Joined: 24 Jun 2016, 12:08

Re: Property to see entity is delete or active

Post by sen » 29 Jun 2016, 05:15

I just send the file to support@cadsofttools.com , please iqnore this if it's redundand.



Thank You
Sen

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

Re: Property to see entity is delete or active

Post by support » 30 Jun 2016, 19:27

Hello Sen,

Thank you for the file.

After some investigation we arrived at the conclusion that this problem concerns MTexts that are inside blocks and AutoCAD DWG 2013 file format. Earlier versions of the DWG format (e.g. AutoCAD DWG 2010) do not store the previous values of changed text, so, as a workaround, you may try to convert the file to the DWG 2010 format in AutoCAD 2013.


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

sen
Posts: 20
Joined: 24 Jun 2016, 12:08

Re: Property to see entity is delete or active

Post by sen » 01 Jul 2016, 04:31

I see thank you for your time.

Any future plan to support this in next release ?

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

Re: Property to see entity is delete or active

Post by support » 01 Jul 2016, 14:38

Hello Sen,

Yes, of course. This issue will be fixed in the next releases.


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

Post Reply