0 Members and 1 Guest are viewing this topic.
(setq MyPLINE (entmakex (list '(0 . "LWPOLYLINE") '(100 . "AcDbEntity") '(100 . "AcDbPolyline") '(90 . 6) '(70 . 1) '(43 . 0.0) '(38 . 0.0) '(39 . 0.0) (cons 10 p1) (cons 10 p2) (cons 10 p3) (cons 10 p4) (cons 10 p5) ) ))(command "._draworder" MyPLINE "" "_A" MyObject "")
(defun getOrder (/ doc spc Dic sort order) (setq doc (vla-get-ActiveDocument (vlax-get-Acad-Object)) spc (if (zerop (vla-get-activespace doc)) (if (= (vla-get-mspace doc) :vlax-true) (vla-get-modelspace doc) (vla-get-paperspace doc)) (vla-get-modelspace doc))) (if (vl-catch-all-error-p (setq sort (vl-catch-all-apply 'vla-item (list (setq Dic (vla-getextensiondictionary spc)) "ACAD_SORTENTS")))) (setq sort (vla-addobject Dic "ACAD_SORTENTS" "AcDbSortentsTable"))) (vla-getfulldraworder sort 'order :vlax-false) (if (< 0 (vlax-safearray-get-u-bound order 1)) (vlax-safearray->list order)))
What was the solution Andrea? Or are we going to have to wait for the update...