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 TugboatEng on being selected by the Eng-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
Joined
Nov 27, 2005
Messages
23
Location
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
 
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.

Part and Inventory Search

Sponsor

Back
Top