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!

extract coordinates of vertices of a part (cuboid shape) to excel.

Status
Not open for further replies.

pravs

Mechanical
Apr 12, 2018
34
US
Hi,
I want to extract and export the coordinates of the vertices of a part(cuboid shape) to excel sheet .
any help will do .
 
Replies continue below

Recommended for you

is that a one time need or you'll nee a macro to repeat it?

Eric N.
indocti discant et ament meminisse periti
 
Dirty CATScript (not so elegant and not complete for your purposes, just a starting point...).

Code:
Language="VBSCRIPT"

Sub CATMain()

Dim partDocument1 As Document
Set partDocument1 = CATIA.ActiveDocument

Dim selection1 As Selection
Set selection1 = partDocument1.Selection

selection1.Search "Topology.CGMVertex,all"
    MsgBox selection1.Count2 & " Vertex are found from the selected face"
    CATIA.StartCommand "Extract"

End Sub

Regards
Fernando

- Romania
- EU
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top