Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I need to be able to programattically loop through a directory and generate images of the parts in the directory.
If I start with an existing empty assembly, I can load a part and generate the image.
However I can not seem to programmatically create a new empty assembly. Nor can I erase the part I have just loaded
to get back to the empty assembly I started from. All of my attempts at this throw exceptions.
Does anyone have any ideas?
Private
Sub createAssy
Dim
mdl As IpfcModel
Dim
session As IpfcBaseSession
session = asyncConnection.Session
If
asyncConnection Is Nothing OrElse Not asyncConnection.IsRunning
Then
msgbox("No Connection is present to any Creo Parametric Session")
Exit Sub End If
mdl = session.CreateAssembly("NewAssembly")
end sub