i'm trying to copy some operations (vialocs) from one TxObjGridCtrl to another.
It is my first time to write some code for tecnomatix so pls be gentle if my problem is too ordinary
I've got some vialocs in grid1 and I need the accelaration of each vialoc in grid2 in the same order (transfer by using a button).
Any ideas how to realize it? Maybe with some code for me to understand
Use the Objects property of TxObjGridCtrl to get the list (TxObjectList) of operations that are populated in the first grid.
Then for each operation calculate the acceleration and populate it in the second grid.
thanks for your answer.
TxObjectList operation_list = List_Operations.Objects;
to get the operations. (List_Operations = TxObjGridCtrl1)
I can show every single operation with MessageBox but now I don't know how to write the content (or even the name) in the second grid. How can I populate them in the 2nd one?
How many columns does the second grid have? How do you Init it?
There is a method SetTextValue(int nRow, int nCol, string val)
Does the second grid need a column that supports pick, column where you can pick model objects from the application?
If the second grid does not need such column, if you only need to display static text there, you can use a regular System.Windows.Forms.DataGridView.
The TxObjGridCtrl is designed to always have a pick (green) column that is populated with model objects(parts, resource, operations, etc.).