Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATIA macro to read Sketch Analysis Window

Status
Not open for further replies.

rjorgetto

New member
Jun 22, 2017
1
BR
thread560-377244

Hi guys, I´m referring to that thread because what I need to do is basically get the text from the "Sketch Analysis" tool, like our friend 2briancox asked.

I need to do this because I´m trying to count how many holes (circles) are on a DXF. I know that the easiest way was to search for all circles using - selection1.Search "CATDrwSearch.2DCircle,all", but my problem is that usually after I input my DXF, the arcs are named as "circles" too, and when I search they appears as circles. Another problem is that some holes from the 3D comes as open 2arc next to each other and are not recognized as circles in the search.

Test_quiqoj.jpg



So I try to hit the Sketch Analysis tool and the text shown in that window allows me to count the circles correctly, even for the imperfect 2arcs circles that appears as "implicit profile" with 2 elements. So my goal is to search this text and count the circles + the implicits profiles with 2 elements. Is this possible or you have another way of achive this?

This image shows the correct number of circles (I couldnt generate a imperfect 2arc circle as example)

Sketch_Analysis_kmumjd.jpg


Any help?

Thanks
 
Replies continue below

Recommended for you

i think you might need to use what we call WIN API, meaning OS basic function to access windows elements on our screen.

it is not difficult but you will need to get familiar with several windows function like FindWindow and FindWindowEx to access that list in the GUI.

Once you're there, and if you still have question, post your progress then we will go next step which will be to read that list.

Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top