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
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
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.
indocti discant et ament meminisse periti
RE: Macro to create points
RE: Macro to create points
I would use Measure between command with Create geometry option (it will create first point, second point and line between them). But this depend on what you want, the idea is to use Create Geometry....
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Macro to create points
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.