×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

CATIA macro to read Sketch Analysis Window

CATIA macro to read Sketch Analysis Window

CATIA macro to read Sketch Analysis Window

(OP)
thread560-377244: CATScript/VBA for Sketch Analysis

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.




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)



Any help?

Thanks

RE: CATIA macro to read Sketch Analysis Window

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources