Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Reorder Geometrical set based on given direction or spline?

Status
Not open for further replies.

DanielMadureira

Automotive
Joined
Apr 13, 2017
Messages
16
Location
CA
Hello everyone,

In my short experience with CATIA V5 automation, there are two major factors that impact VBA automation:

1. Surface orientation (natural normal)
2. Geometry sorting

1. For surface orientation, i've been able to make a script that compares the natural normal vector of each surface, with a "master" direction vector.
Then, it's an easy step to decide which orientation I need.

2. As for geometry sorting, this is where i've hit a wall.

When you do a loop for example, of 1000 surfaces to be split to each other, you need to have the geometry properly sorted in your tree. See first picture.

Question: Is there a way to re-sort the geometry like this?

2017_07_25_09_39_54_CATIA_V5_R19_DBM_Design_Part5__fqxvxy.jpg



Maybe use a direction vector to sort it?
2017_07_25_09_41_36_CATIA_V5_R19_DBM_Design_Part5__udcfjf.jpg


Or an intersecting spline or intersecting extrusion?

2017_07_25_09_44_37_CATIA_V5_R19_DBM_Design_Part5__fhwaoj.jpg



Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top