Property to see entity is delete or active
Moderators: SDS, support, admin
Property to see entity is delete or active
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
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
Re: Property to see entity is delete or active
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
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
Chat support on Skype: cadsofttools.support
Re: Property to see entity is delete or active
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
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
Re: Property to see entity is delete or active
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
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
Re: Property to see entity is delete or active
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
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
Chat support on Skype: cadsofttools.support
Re: Property to see entity is delete or active
Im using CAD .NET 11
Re: Property to see entity is delete or active
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
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
Chat support on Skype: cadsofttools.support
Re: Property to see entity is delete or active
I just send the file to support@cadsofttools.com , please iqnore this if it's redundand.
Thank You
Sen
Thank You
Sen
Re: Property to see entity is delete or active
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
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
Chat support on Skype: cadsofttools.support
Re: Property to see entity is delete or active
I see thank you for your time.
Any future plan to support this in next release ?
Any future plan to support this in next release ?
Re: Property to see entity is delete or active
Hello Sen,
Yes, of course. This issue will be fixed in the next releases.
Mikhail
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
Chat support on Skype: cadsofttools.support