Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

extract the details of part file - by using CATScript 1

Status
Not open for further replies.

DomKum

Automotive
Nov 27, 2005
23
0
0
IN
Capture_jrlmtz.png


Hi All,

Is it possible to extract the list of itmes in a opened CATPart file.
Prompt the user to ask if it required to store this in txt format if option is yes else just display on the scren and exit the marco
 
Replies continue below

Recommended for you

Hi.

It is possible.

Code:
Dim sel: set sel = CATIA.ActiveDocument.Selection
sel.Search "Name=*,all"
Dim i: for i = 1 to sel.Count
  MsgBox sel.Item(i).Value.Name
Next
 
Hey Cthulhu,
thank you for your support.
Its working fine.

will it be possible to know by message which is the active Geometrical Set or Body active.
 
Status
Not open for further replies.
Back
Top