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!

Part details macro from PPR manufacturing

Status
Not open for further replies.

cisradu

Mechanical
Nov 11, 2014
1
0
0
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.
Back
Top