Odcl_SplitCoordinates

(From ODCL_LM file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > List manipulation >

Odcl_SplitCoordinates

(From ODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_AddNumList

This function will split list as coordinate points.

 

Parameter

List of X Y Z points

 

Exemple 1: Poordinates points of Pline entity.

(Odcl_SplitCoordinates

     (vlax-safearray->list

       (vlax-variant-value

         (vla-get-coordinates

           (vlax-ename->vla-object

            (car

             (ettsel)

            )

           )

         )

       )

     )

   )

 

Example 2:

(Odcl_SplitCoordinates '(2531.82 1129.28 0.0 2682.87 1249.86 0.0 2783.94 1330.54 0.0))

 

Result:

((2531.82 1229.28 0.0) (2682.87 1249.86 0.0) (2783.94 1330.54 0.0))

 

AutoLisp Syntax:

(setq rValue (Odcl_SplitCoordinates Coordinates [as List]))