Home > Software engineering >  VB connecting CAD software, how to read the CAD of tolerance?
VB connecting CAD software, how to read the CAD of tolerance?

Time:09-17

The following is a VB connecting CAD software, read the CAD drawing the size of the circle,
If acadapp. ActiveDocument. ModelSpace (I) EntityType=acCircle Then 'enumeration model control entity, find round
'access to circle the center coordinates and radius values
CurrCentPt=acadapp. ActiveDocument. ModelSpace (I). The Center
Red=acadapp. ActiveDocument. ModelSpace (I). The Radius
Text1=CStr (red)
Ask: 1. If I want to read the tolerance? What should I do? Acadapp. ActiveDocument document this class the following method?

CodePudding user response:

There is no tolerance concept in CAD object, you can only be obtained from the text box or mark information, are usually the artist tagging

CodePudding user response:

CAD drawing inside with a lot of tolerance, is a designer label, but read management is very useful for us

CodePudding user response:

Are generally text annotation, from AcadMText or AcadText tolerance derived in the text box

CodePudding user response:

Trouble you help me to write a few lines of code signal, is not very well, thank you!

CodePudding user response:

Suddenly write not to come out, your online to find a good, a lot, such as
http://blog.sina.com.cn/s/blog_3f6643ee0102wxhy.html
http://blog.sina.com.cn/s/blog_5d25ac4e0100vzoh.html

CodePudding user response:

Thank you very much! I'll give it a try
  • Related