×
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

Macro to create points

Macro to create points

Macro to create points

(OP)
Good morning everyone,
i'm a young engineer with very few knowledge about the macro language in Catia.
I'm looking for a macro to do this:

in the active file i have on the screen
i'd like to start the macro
select one entity (a solid cilynder, or a hole, or a cilyndrical surface)
then create its axis
select a second entity (a solid cilynder, or a hole, or a cilyndrical surface)
then create it's axis
use the command distance (between the two axis created above) to create the two points long the distance line (if the 2 axis don't have points in common, or just the first point if the two axis have a common point) and also keep the distance measure just on the screen.

Repeat it from the beginning to select two other entities and create new points.

Does anybody have any idea to create it?

Thanks a lot

Matteo

RE: Macro to create points

macro could be nice but I would suggest you look into power copy. I don't know if PC could handle measure, but you could investigate :)

If you really and a macro I am sure you could find some very good starting point in the CATIA script center:

search things like filter on selection (to have only cylindrical surface/face), measure between 2 elements... then put your code here and we'll help you.



Eric N.
indocti discant et ament meminisse periti

RE: Macro to create points

if it's a standard hole like nutplate I would also suggest to use power copy together with macro. there are some examples over the Internet how to do that. if to use only macro for that there's no point in automation for me.

RE: Macro to create points

(OP)
Thanks for all the suggestions,
i was learning how the power copy works.
But it seems it cannot manage the measure command (i tried and the power copy copies everything, but it creates the measure in the same first selection).
I'll try better in the next days.

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