Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Jul 19, 2011
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
 
Replies continue below

Recommended for you

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