Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Re: How to load a model from Windchill in Creo via vba api

$
0
0

Found it after looking into Excel attachments :

 

'Create a modeldescriptor to the Pro/E Model
Dim oModelDescriptorCreate As New CCpfcModelDescriptor
Dim oModelDescriptor As IpfcModelDescriptor
Set oModelDescriptor = oModelDescriptorCreate.Create(EpfcMDL_PART, sNumber, Null)

'Retrieve the model into the oModel handle
Set model = gSession.RetrieveModel(oModelDescriptor)

'Create a new window which displays the Pro/E Model
Dim oWindow As pfcls.IpfcWindow
Set oWindow = gSession.OpenFile(oModelDescriptor)

'Activate the new window
oWindow.Activate


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>