Thank you again Lukaszsz. I will give it a try.
We have some users that want to skip the double-click because each node under the VSYS_CHASSIS node represents a bill of material that needs to be positioned along a chassis frame rail. Expanding and activating the node allows them to save...
Here is an image of the tree and the node selection. The node VSYS_CHASSIS is persistent.http://files.engineering.com/getfile.aspx?folder=6a7a7172-d4b7-4130-99f5-2ee8ccf8aed4&file=CATIA_V5R19_SP9_x64_Daimler_AG_-_[FR8032.jpg
We have a fairly consistent tree that is generated by another process. What I would like to do is create a macro that will select a node that is two levels down, expand it, then activate it for editing.
I've tried a few things, but nothing seems to activate the node (like a double-click...
Ok...got it to work, partially (thank you) - but it only expands the tree - it does not activate the selected node as a double-click does.
Any ideas on that?
My code:
ActiveSel.Add cattree.Products.Item(i) 'Selects My product
CATIA.StartCommand "Expand Selection"
SendKeys "1"
SendKeys "~"
doesn't work
This also doesn't work:
ActiveSel.Add cattree.Products.Item(i)...