I've searched online and I realize that there is no directly way using API to create hatching automatically in CATIA V5. But I find a bypass to do it and meet a problem.
I notice that if I create a point in for example a circle and run the command "Area Fill Creation", then I select the point again. Now the hatching will be created inside the circle.
I want to do it using C# and my logic is (pseudo code),
INFITF.Application.StartCommand("Area Fill Creation");
Selection.SelectElement2("Point2D","Select the point",true);
Selection.Add(point2D);
I know the SelectElement2 function runs an interactive command, but if I set the last parameter to true, there is possibility that the selection does the job automatically (if I read the helper doc and understand right).
Can someone help me figure out if my logic correct or available?
Thank you
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP