lklo
Industrial
- Nov 24, 2010
- 226
Hi all...
I'm in the very early beginning of next project...
But upfront I will like to ask, if some of you, have been playing with extract a specifik NX parts model preview using NXOpen (vb-net).
In my code, I will transfer all unique components parts, into a TreeListControl using BlockStyler...
some attribute manipulations and edit's shall be possible for each Part selected in the TreeList in BlockStyler dialog...
All this is straight forward - But I am also thinking about, to get the selected Parts preview, being displayed as a bitmap, in the dialog...This approach will get "things" more intuitive for the users...
I know I can extract some preview information from a specific part - by using the function X.GetPreviewImage(w As Integer, h As Integer, px As Integer()) )
But the only way I know on how to display a bitmap in BlockStyler, is pointing to a bitmap - either entire filepath to a *.bmp in OS system , or simply the string name, of one of the internal NX bitmaps..
But in my wanted scenario, I just want to display a Bitmap tempoary in the BlockStyler dialog - without first creating and saving the bitmap...
Feel free if you have any ideas or comments...
thank you...
regards Lklo
I'm in the very early beginning of next project...
But upfront I will like to ask, if some of you, have been playing with extract a specifik NX parts model preview using NXOpen (vb-net).
In my code, I will transfer all unique components parts, into a TreeListControl using BlockStyler...
some attribute manipulations and edit's shall be possible for each Part selected in the TreeList in BlockStyler dialog...
All this is straight forward - But I am also thinking about, to get the selected Parts preview, being displayed as a bitmap, in the dialog...This approach will get "things" more intuitive for the users...
I know I can extract some preview information from a specific part - by using the function X.GetPreviewImage(w As Integer, h As Integer, px As Integer()) )
But the only way I know on how to display a bitmap in BlockStyler, is pointing to a bitmap - either entire filepath to a *.bmp in OS system , or simply the string name, of one of the internal NX bitmaps..
But in my wanted scenario, I just want to display a Bitmap tempoary in the BlockStyler dialog - without first creating and saving the bitmap...
Feel free if you have any ideas or comments...
thank you...
regards Lklo