Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: VB GUI using parameters

You are not authorized to post a reply.   
Author Messages
DPATTERSON

22 Aug 2008 06:39 AM

Does anyone have a GUI sample that links to parameters in a part?

LMalmstrom

25 Aug 2008 12:29 PM

Are you looking for code to connect with the parameters? If so, there is this....

With CATIA
     cFileSys = .FileSystem
     objDocs = .Documents
End With 'CATIA
cFolder = cFileSys.GetFolder(strToFolder)
objSeedDocs = cFolder.Files
With objSeedDocs
    For intI = 1 To .Count
        If .Item(intI).Name.IndexOf("Position_1.CATProduct" <> -1 Then
          objDoc = CATIA.Documents.Read(strToFolder & "\" & objSeedDocs.Item(intI).Name)
          productDocument1 = CType(objDoc, ProductStructureTypeLib.ProductDocument)
          product1 = productDocument1.Product
          parameters1 = product1.Parameters
          Exit For
        End If
    Next
End With

This was taken from a program that has a CATProcess as it's Active document.


Leonard Malmstrom
Spirit AeroSystems
Wichita, Ks
You are not authorized to post a reply.
Forums > COE Forums > CATIA V5 Programming > VB GUI using parameters



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)