pBe Posted October 6, 2010 Share Posted October 6, 2010 (edited) To All.. please help what i'm trying to do is update the annotative state ot a TEXT/MTEXT with mulitple Anno scale i was able to drill down up to the point "ACDB_ANNOTATIONSCALES" which shows me the number of annotative scale the entity have .... testing it .. then deal with it .. after that i'm stumped.. cant seem to update the entity to loose the other annotative scales, say i the text has 4 annotative scale.. i'll take out 3 then update the text.. but nada heres what i have so far... (defun c:kj ()(vl-load-com) (setq disdg (vla-get-activedocument (vlax-get-acad-object)) dd_utl (vla-get-utility disdg)) (vla-getentity dd_utl 'obg 'pwnt "\nSelect object: ") (setq str_scl (vla-GetExtensionDictionary obg) frst (vla-item str_scl 0)) (gt_scl frst) ) (defun gt_scl (frst) (setq scl_lst (vla-item frst 0) prcd2 0) (repeat (vla-get-count scl_lst) (setq dlkd (vla-item str_scl prcd2)) (setq i2nyun (entget (vlax-vla-object->ename (vla-item dlkd 0))) txt_scle (assoc 40 i2nyun)) (if (/= txt_scle ******) ; the condition is met (vla-delete dlkd)) ) ) ;;;; or this method (defun gt_scl (frst) (setq scl_lst (vla-item frst 0));(vla-addxrecord scl_lst "New_SCale_list") (vlax-for vegeta scl_lst (setq i2nyun (entget (vlax-vla-object->ename vegeta)) txt_scle (assoc 40 i2nyun)) (if (/= txt_scle ******) ; the condition is met (vla-delete dlkd)) ) ) or am i better off not using enames? and stick with vla-objects? vla-update? vla-replace? i think i hit a stonewall which brings me to another question.. vlax-item gave me this : IAcadDictionary: A container object for storing and retrieving objects vlax-for gave me this : IAcadObject: The standard interface for a basic AutoCAD object whats the main difference? Edited October 6, 2010 by Tiger added codetags Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.