Community Tip - You can Bookmark boards, posts or articles that you'd like to access again 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