cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

ProUITree Construction

pwilliams-3
11-Garnet

ProUITree Construction

I have a dialog with a tree component. I am filling the tree with the
components of the current assembly. However; I am only seeing the root
node in the tree and none of the children. Does anyone have any example
code that fills a ProUITree?



Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
4 REPLIES 4

Ok, I got the tree to expand but why are there no expand/collapse images?
Am I missing a tree property setting in the res file?



(Layout lytRow2
(Components
(Tree treModelTree)
)
(Resources
(treModelTree.AttachTop True)
(treModelTree.AttachBottom True)
(treModelTree.AttachLeft True)
(treModelTree.AttachRight True)
(treModelTree.TreeDragEnabled False)
(treModelTree.TreeAttributeWindow True)
(treModelTree.TreeDisplayRoot True)
(treModelTree.ResizableCols True)
(treModelTree.SelectByCell True)
(treModelTree.ShowGrid True)
(treModelTree.TreeChildOrder 1)
(treModelTree.TreeIndicateChildren True)
(treModelTree.TreeChildIndent 2)
(treModelTree.TreeVerticalSBPosition 3)
(treModelTree.TreeLinkStyle 3)
(treModelTree.SelectionPolicy 4)
(treModelTree.Columns 18)
(treModelTree.TreeInitialSashPercent 50)
(treModelTree.TreeNodeTypeNames "asm"
"part"
"bulk"
"cmodel")
(treModelTree.TreeNodeTypeHelpTexts "Assembly"
"Part"
"Bulk Item"
"Concept Model")
(treModelTree.TreeNodeTypePrefixs "
"
"
")
(treModelTree.TreeNodeTypeAppends "
"
"
")
(treModelTree.TreeNodeTypeExpandedImages "asm_image"
"prt_image"
"bulk_image"
"cmodel_image")
(treModelTree.TreeNodeTypeCollapsedImages "asm_image"
"prt_image"
"bulk_image"
"cmodel_image")

(.TopOffset 4)
(.BottomOffset 4)
(.LeftOffset 4)
(.RightOffset 4)
(.AttachLeft True)
(.AttachRight True)
(.AttachBottom True)
(.AttachTop True)
(.Layout
(Grid (Rows 1) (Cols 1)
treModelTree
)
)
)
)

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.



LarsZiegler
5-Regular Member
(To:pwilliams-3)

Hello,

int the function ProUITreeNodeAdd you have to define the node type. (Last parameter).
In the resource filetrTREE.TreeNodeTypeNames, trTREE.TreeNodeTypeExpandedImages, TreeNodeTypeCollapsedImages must have the same order. Same is with TreeNodeTypePrefixs, TreeNodeTypeAppends, and so on.

err = ProUITreeNodeAdd(m_pView->GetDlgNamePtr(), "trTREE", "Element 2", L"Element 2", "ROOT", "PRO_MDL_DRAWING");

Lars,
If that is your code can you please send me your resource file and code
that fills the tree? I have all of the TreeNodeType* arrays setup in the
same order. But I still get a non-functioning tree.

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.



Hi


Iam new to UI creation in Pro/Toolikit. Do anyone has any example on UI Tree and UI table. I need to populate assembly heirarchy with UI tree having check boxes so that required components can be selected. Can anyone help with a sample code



Srini

Top Tags