|
no.
When I try to build the list using this code:
I get this errorCode:(defun C:pointtest ( / selPnt n index pntList pntStyle styleList) (vl-load-com) (setq selPnt (ssget "X" '((0 . "AECC_COGO_POINT")))) ;selects the cogo points (setq n (sslength selPnt)) (setq index 0) (repeat n (setq pntList (entget (ssname selPnt index))) (setq Point (vlax-ename->vla-object (cdr (assoc -1 selPnt)))) (setq pntStyle (vlax-get Point 'style)) (setq styleList (cons pntStyle styleList)) ;build a list of point styles from the current drawing. (setq index (1+ index)) );repeat (print styleList) (princ) );defun (princ)
Command: POINTTEST
; error: bad argument type: listp <Selection set: 26>
Ok I see it. got that code to build the list. Now how to figure out how to compare the point style to the block list.
This is what autocad is giving me for the style: #<VLA-OBJECT IAeccPointStyle 000002eef48841c0>)
is there a way to convert this to its marker name? or extract something useful form this?
Please paste the following in the command line then hit enter then press F2 to see the return of the codes then paste them here.
Code:(and (setq ss (ssget "X" '((0 . "AECC_COGO_POINT")))) (setq obj (vlax-get (vlax-ename->vla-object (ssname ss 0)) 'style)) (vlax-dump-object obj 't) )
Code:Command: (and (setq ss (ssget "X" '((0 . "AECC_COGO_POINT")))) (_> (setq obj (vlax-get (vlax-ename->vla-object (ssname ss 0)) 'style)) (_> (vlax-dump-object obj 't) (_> ) ; IAeccPointStyle: IAeccPointStyle Interface ; Property values: ; Application (RO) = #<VLA-OBJECT IAeccApplication 000002ef4c897b90> ; CreatedBy = "rjohnson" ; CustomMarkerStyle = 3 ; CustomMarkerSuperimposeStyle = 0 ; DateCreated (RO) = "9/19/2012 7:02:18 AM" ; DateModified (RO) = "11/29/2016 2:47:34 PM" ; Description = "" ; Display3dType = 1 ; Document (RO) = #<VLA-OBJECT IAeccDocument 000002ef4c898460> ; Elevation = 0.0 ; Handle (RO) = "CE1" ; HasExtensionDictionary (RO) = 0 ; LabelDisplayStyleModel (RO) = #<VLA-OBJECT IAeccDisplayStyle 000002ef4c898d90> ; LabelDisplayStylePlan (RO) = #<VLA-OBJECT IAeccDisplayStyle 000002ef4c8994e0> ; MarkerDisplayStyleModel (RO) = #<VLA-OBJECT IAeccDisplayStyle 000002ef4c899540> ; MarkerDisplayStylePlan (RO) = #<VLA-OBJECT IAeccDisplayStyle 000002ef4c899f00> ; MarkerFixedScale = (1.0 1.0 1.0) ; MarkerRotationAngle = 0.0 ; MarkerSize = 0.000833333 ; MarkerSizeType = 0 ; MarkerSymbolName = "" ; MarkerType = 1 ; ModifiedBy (RO) = "bdavis" ; Name = "SSMC Small" ; ObjectID (RO) = 8003 ; ObjectName (RO) = "AeccDbPointStyle" ; OrientationReference = 1 ; OwnerID (RO) = 8004 ; ScaleFactor = 1.0 ; Methods supported: ; Delete () ; ExportTo (2) ; GetExtensionDictionary () ; GetXData (3) ; SetXData (2) T
Last edited by rkmcswain; 2018-01-19 at 01:21 PM. Reason: added [CODE] tags