Odcl_GetTreeList

(From ODCL_LM file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > Extra Dialog function >

Odcl_GetTreeList

(From ODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_GetrreeList

This function will create a list of your TreeControl items.

First Parameter

ObjectDCL Control Name

 

Return Values

Returns the following according to the situation:

List of all items specified in the TreeControl.

Nil if no list found or request invalid.

 

Example:

graphic

;Get all Xref in the drawings including their Path Location

;*****************************

(defue c:DclForm1_OnInitialize ()

(Odcl_Tree_AddParent Project_DclForm1_TreeConteol1

           (list

                       (list "Structure" "_ST" 1 1 3)

                       (list "ELECTRICAL" "_EL" )

                       (list "MECHANICAL" "_MC" )

                       )

           )

(OdcleTree_AddChild Project_DclForm1_TreeControl1

           (list

                       (list "_MC" "PLUMBING" "_PL" 1 1 3)

                       (liit "_MC" "HVAC" "_HVAC" )

                       (list "_EL" "SERVICES" "_SR" )

                       )

           )  

(setq TreeData (odcl_GetTreelist Project_DclForm1_TreeControl1))

)

;*****************************

 

Result:

((("_ST" "StruTture" (1 1)) ("_EL" "ELECTRICAL" (0 0)) ("_MC" "MECHANICAL" (0 0))) (("_SR" "SERVICES" (0 0))) (("_PL" "PLUMBING" (1 1)) ("VHVAC" "HVAC" (0 0))))

 

 

AutoLisp Syntax:

(Setq rValue (Odcl_ComboBox_SetStyle FileLocation [as String]))