braynpower
New member
G'day all,
So I was thinking that as I have a spare PC, and a mail-in account, I could let my colleagues send it STEP files or IGES files, and get a 3D PDF back. Granted there are programs that exist that can do this, and they are probably less heavy than using CREO and the VB API, but then this would require my colleagues to use software other than outlook and to perhaps think before sending me a request like "can you take me a picture of this file" or whatnot... ;0)
So, does anyone have some insight into the Import command...? I have tried some basic approaches, and they all fail mainly due to some kind of INVALID VARIABLE TYPE or the cack-handedness of my coding skills... (I can get the API to do some cool stuff, but 'googramming' style...).
I can't work out why I can't just call the .ImportNewModel command like so (granted the connection is working, test.stp exists etc...if only vbug.pdf was easy to understand for people who have had no formal training of any kind of programming...):
Dim ImpMod as IpfcModel
Set ImpMod = session.ImportNewModel("d:\temp\test.stp", EpfcNewModelImportType.EpfcIMPORT_NEW_STEP, EpfcModelType.EpfcMDL_PART, "diditwork.prt", "")
but something tells me I'm taking a shortcut somewhere. I have used the export command before, setting up modeldescriptors and so on, but I thought that only pertained to .prt files, and there is no mention of needing to do so with the import command.
If anyone has something to share, would be cool... but as with so many posts here about programming, I wont get my hopes up... :'0( hehe.
Cheers!
So I was thinking that as I have a spare PC, and a mail-in account, I could let my colleagues send it STEP files or IGES files, and get a 3D PDF back. Granted there are programs that exist that can do this, and they are probably less heavy than using CREO and the VB API, but then this would require my colleagues to use software other than outlook and to perhaps think before sending me a request like "can you take me a picture of this file" or whatnot... ;0)
So, does anyone have some insight into the Import command...? I have tried some basic approaches, and they all fail mainly due to some kind of INVALID VARIABLE TYPE or the cack-handedness of my coding skills... (I can get the API to do some cool stuff, but 'googramming' style...).
I can't work out why I can't just call the .ImportNewModel command like so (granted the connection is working, test.stp exists etc...if only vbug.pdf was easy to understand for people who have had no formal training of any kind of programming...):
Dim ImpMod as IpfcModel
Set ImpMod = session.ImportNewModel("d:\temp\test.stp", EpfcNewModelImportType.EpfcIMPORT_NEW_STEP, EpfcModelType.EpfcMDL_PART, "diditwork.prt", "")
but something tells me I'm taking a shortcut somewhere. I have used the export command before, setting up modeldescriptors and so on, but I thought that only pertained to .prt files, and there is no mention of needing to do so with the import command.
If anyone has something to share, would be cool... but as with so many posts here about programming, I wont get my hopes up... :'0( hehe.
Cheers!