title: Acquiring the ProcessDocument of DELMIA in CATIA AUTOMATION vb.net
body: <p>I was trying to  acquire the Process document of DELMIA in vb.net automation.<br/> After I opened the process file in DELMIA and ran my code,<br/>the code segment of acquiring process document is as follows:</p>
  <pre><code>  Imports PPR
    Imports PROCESSITF
    .....
    .....
    .....
    Dim CATIA As Application
    Dim CATDoc As ProcessDocument
    Dim PPRProduct
  
    On Error Resume Next
    CATIA = GetObject(,&quot;DELMIA.Application&quot;)
    
    If CATIA is Nothing Then
  
       Exit Sub        
  
    End If
  
    CATDoc = CATIA.ActiveDocument
    PPRDocument = CATDoc.PPRDocument
  </code></pre>
  <p>And I failed to acquire the process document, the variable CATDoc was not nothing but PPRDocument was nothing shown by the breakpoint. I don't know why. Can someone help me out?<br/> Thank you very much!</p>