Your Products have been synced, click here to refresh
Dim app As PCDLRN.Application Dim cmds As Object Dim cmd As PCDLRN.Command Dim part As PCDLRN.PartProgram
For Each cmd In cmds
Made me look in mine. Doesn't work. Check mine out..
Dim app As PCDLRN.Application Dim cmds As Object Dim cmd As PCDLRN.Command Dim part As PCDLRN.PartProgram
Then go ahead and use this
For Each cmd In cmds
Intellisense pops up with '.Commands' but bombs out during execution yet it's OK with".Command". Weird.
It's the exact same problem I'm having, you're just getting there a different route. You've got cmds declared as Object, when it should be declared PCDLRN.Commands. I've got a bad feeling that this is a problem with the way all of the pc-dmis collections are setup. Hoping like crazy that I'm wrong, and there's just something that I don't know.
Dim app As PCDLRN.Application 'PCDLRN.Application Dim cmds As Object 'PCDLRN.Commands Dim cmd As PCDLRN.Command 'PCDLRN.Command Dim part As PCDLRN.PartProgram 'PCDLRN.PartProgram 'Dim parts As PCDLRN.PartPrograms 'PCDLRN.PartPograms Dim s As String = "" 'string to hold dimensions ID Dim r As Integer = 1 'row
Hate to say it but I didn't have much time to look into it therefore I didn't have time to get it done 'right'.
Oh, I didn't mean to imply that you did anything wrong. You found the solution and moved on. I did the same thing today. We've both got "real work" to do.
Hopefully AndersI will find this soon and show us that everything is just fine, and all we needed to do was read the help file.
Dim cmds As PCDLRN.Commands = part.Commands Dim cmd As PCDLRN.Command For i = 1 To cmds.Count cmd = cmds.Item(i) Next i
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |