hi -
I have builded a program (NXOpen API , VB.net) , that find and open drawing specifications from current workpart.
When there are more than one specification ,they will be displayed in a listbox ,and the user can pick one of them ,and then the drawingpart opens ,and switch to Drafting Application after OK button is pressed.
Everything Works fine - even if the drawingfile's not is loaded ,when the program is launched .
But I would like to enhance the program ,so it could display the drafting-parts previewimage, when the displayed Items is picked in the listbox.
I have tried to test the command GetPreviewImage() , but as far as I can figure it out ,this command only allows the parts model preview.
But does someone here on Eng/Tips know a command, so it should be possible to "catch" the preview from a drawing file , (the same image as when NX standard FileOpen is used ,or the image in the History Bar).
Another way way to catch the preview could be to "ask" for the drawingspecification's preview in Teamcenter - could this be a option?
lklo
I have builded a program (NXOpen API , VB.net) , that find and open drawing specifications from current workpart.
When there are more than one specification ,they will be displayed in a listbox ,and the user can pick one of them ,and then the drawingpart opens ,and switch to Drafting Application after OK button is pressed.
Everything Works fine - even if the drawingfile's not is loaded ,when the program is launched .
But I would like to enhance the program ,so it could display the drafting-parts previewimage, when the displayed Items is picked in the listbox.
I have tried to test the command GetPreviewImage() , but as far as I can figure it out ,this command only allows the parts model preview.
But does someone here on Eng/Tips know a command, so it should be possible to "catch" the preview from a drawing file , (the same image as when NX standard FileOpen is used ,or the image in the History Bar).
Another way way to catch the preview could be to "ask" for the drawingspecification's preview in Teamcenter - could this be a option?
lklo