How to get the entity value from entity text

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
曹Jin
Posts: 3
Joined: 16 Sep 2021, 14:38

How to get the entity value from entity text

Post by 曹Jin » 16 Sep 2021, 14:57

how to get the entity value from entity text ?

for case , the text is 2×∅3.2512+0.127+0.0254
and i want to get quantity=2, value =3.2512 , upper tolerance=+0.127, lower tolerance=0.0254

may be get the computable value from other formated text 4×60°,2×M5×0.8 ......

thank you.
Attachments
1631793362(1).png
1631793362(1).png (4.2 KiB) Viewed 3559 times
1631793282(1).png
1631793282(1).png (4.23 KiB) Viewed 3559 times
1631793192(1).png
1631793192(1).png (9.48 KiB) Viewed 3559 times

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

Re: How to get the entity value from entity text

Post by support » 17 Sep 2021, 17:23

Hello,

We did not quite understand, what would the entity value be in this case. Do we understand it right, that you have a DWG/DXF drawing and you would like to get certain text from this drawing and then split this text into several parts according to your requirements?
Please correct us, if we are wrong. Or provide some more details on your task.

Thanks

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

曹Jin
Posts: 3
Joined: 16 Sep 2021, 14:38

Re: How to get the entity value from entity text

Post by 曹Jin » 23 Sep 2021, 16:03

Hi Andrei,

Sorry for my unclear description.
Your understandarding is right.

Now i can get the full text "2×∅3.2512+0.127+0.0254", but i want to get the seprated parts.
and every attribute of the seprated value.

The seprated value may be the "quanity" or may be the "upper tolerance" ......

Can this be possible?

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

Re: How to get the entity value from entity text

Post by support » 23 Sep 2021, 18:15

Hello

Thanks for the additional information,

CAD .NET allows to get the text from a DWG/DXF drawing. You can then process this text the way you need, e. g. split it into parts according to your custom rules, this is not the task of CAD .NET.

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

曹Jin
Posts: 3
Joined: 16 Sep 2021, 14:38

Re: How to get the entity value from entity text

Post by 曹Jin » 26 Sep 2021, 14:47

support wrote:
23 Sep 2021, 18:15
Hello

Thanks for the additional information,

CAD .NET allows to get the text from a DWG/DXF drawing. You can then process this text the way you need, e. g. split it into parts according to your custom rules, this is not the task of CAD .NET.

Andrei
Hello, thank you for your kindly support.

Post Reply