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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Part details macro from PPR manufacturing

Status
Not open for further replies.

cisradu

Mechanical
Joined
Nov 11, 2014
Messages
1
Location
RO

Hello,
I would like to create a macro which is scanning my part details(part number,nomenclature,revision) from manufacturing and than to have the info in to a template file (html).I recorded a macro for one file for this is k ,but for another new part...

Language="VBSCRIPT"

Sub CATMain()

Dim documents1 As Documents
Set documents1 = CATIA.Documents

Dim partDocument1 As Document
Set partDocument1 = documents1.Item("TestPP.CATPart")

Dim product1 As CATBaseDispatch
Set product1 = partDocument1.GetItem("Part1")



aTextStream.Write " <p class=MsoNormal><b>TEST : " & product1.Definition & "</b></p>" & EOL


End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top