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!

Exporting points from one face at a time?

Status
Not open for further replies.

tmillar

Mechanical
Joined
Jul 19, 2011
Messages
23
Is it possible to export points from one face, edge, vertex at a time? When I go to export a list of points it always chooses the full part body
 
Is it possible to create multiple geometric sets? If this was possible I could seperate the faces, edges and vertexs into different sets and this problem would be solved
 
You can create multiple geometrical sets with a macro.

Regards
Fernando
 
Would you be able to tell me how I would go about creating this macro?

How do I assign geometric sets to individual faces, edges, vertices?
 
Paste the code bellow in a CATScript and run the CATScript in an active CATPart (not inside a CATProduct).

Sub CATMain()

Dim partDocument1 As PartDocument
Set partDocument1 = CATIA.ActiveDocument

Dim part1 As Part
Set part1 = partDocument1.Part

Dim hybridBodies1 As HybridBodies
Set hybridBodies1 = part1.HybridBodies
Dim hybridBody1 As HybridBody
Set hybridBody1 = hybridBodies1.Add()
hybridBody1.Name = "Faces"

Dim hybridBodies2 As HybridBodies
Set hybridBodies2 = part1.HybridBodies
Dim hybridBody2 As HybridBody
Set hybridBody2 = hybridBodies2.Add()
hybridBody2.Name = "Edges"

Dim hybridBodies3 As HybridBodies
Set hybridBodies3 = part1.HybridBodies
Dim hybridBody3 As HybridBody
Set hybridBody3 = hybridBodies3.Add()
hybridBody3.Name = "Vertices"

part1.Update

End Sub

This macro is creating only new Geometrical Sets, what you want is a little bit more elaborated. Basically it can be done using selection method.

For the time being I'm in my summer vacation, so I cannot help you anymore.

Regards
Fernando
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top