+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Senior Member
    Computer Details
    BLOACH85's Computer Details
    Operating System:
    Windows XP Pro.
    Computer:
    HP xw4600 Workstation
    CPU:
    Core 2 Duo
    RAM:
    3.48 GB
    Graphics:
    NVIDIA Quadro FX 570
    Primary Storage:
    227 GB
    Monitor:
    ViewSonic VA2226w LCD (x2)
    Using
    AutoCAD 2009
    Join Date
    Sep 2008
    Location
    Whats left of Salem, Alabama
    Posts
    136

    Default Is there anyway to make a program make an edited dimension standout?

    Registered forum members do not see this ad.

    Is there anyway to make an edited dimension stand out from non edited? such as a text box under a non plotting layer or some sort of identification? if so does anyone know where to start with a routine like that?
    ~WWJD~~Watch What Jesus Did~

  2. #2
    Senior Member
    Computer Details
    JohnM's Computer Details
    Operating System:
    xp pro
    Using
    AutoCAD 2006
    Join Date
    Feb 2009
    Location
    houston, texas
    Posts
    380

    Default

    this will turn the dimension text to red for all over ride text
    change the interger to what color you like.

    HTML Code:
    (defun c:dov (/ ss cnt obj)
    (setq ss (ssget "X" '((0 . "DIMENSION")(-4 . "<NOT") (1 . "")(-4 . "NOT>"))));_get all over ride dim objects
    (setq cnt 0)
    (if ss
    (repeat (sslength ss)
    (setq
    obj (vlax-ename->vla-object (ssname ss cnt))
    cnt (1+ cnt)
    )
    (vla-put-TextColor obj 1) ; 1 = red
    );_repeat
    );_if
    (princ)
      );_defun

  3. #3
    Senior Member
    Computer Details
    BLOACH85's Computer Details
    Operating System:
    Windows XP Pro.
    Computer:
    HP xw4600 Workstation
    CPU:
    Core 2 Duo
    RAM:
    3.48 GB
    Graphics:
    NVIDIA Quadro FX 570
    Primary Storage:
    227 GB
    Monitor:
    ViewSonic VA2226w LCD (x2)
    Using
    AutoCAD 2009
    Join Date
    Sep 2008
    Location
    Whats left of Salem, Alabama
    Posts
    136

    Smile

    Thanks JohnM now I wan to understand how this was written because i just had crazy amounts of trouble.
    ~WWJD~~Watch What Jesus Did~

  4. #4
    Senior Member
    Computer Details
    BLOACH85's Computer Details
    Operating System:
    Windows XP Pro.
    Computer:
    HP xw4600 Workstation
    CPU:
    Core 2 Duo
    RAM:
    3.48 GB
    Graphics:
    NVIDIA Quadro FX 570
    Primary Storage:
    227 GB
    Monitor:
    ViewSonic VA2226w LCD (x2)
    Using
    AutoCAD 2009
    Join Date
    Sep 2008
    Location
    Whats left of Salem, Alabama
    Posts
    136

    Default

    Now this is using vla format but its just checking the selection to see whiich dims are overriden correct?
    ~WWJD~~Watch What Jesus Did~

  5. #5
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,718

    Default

    The selection set is filtered to only allow OverRidden Dimensions, then the colour is changed for each of these.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  6. #6
    Senior Member
    Computer Details
    BLOACH85's Computer Details
    Operating System:
    Windows XP Pro.
    Computer:
    HP xw4600 Workstation
    CPU:
    Core 2 Duo
    RAM:
    3.48 GB
    Graphics:
    NVIDIA Quadro FX 570
    Primary Storage:
    227 GB
    Monitor:
    ViewSonic VA2226w LCD (x2)
    Using
    AutoCAD 2009
    Join Date
    Sep 2008
    Location
    Whats left of Salem, Alabama
    Posts
    136

    Default

    Gotcha i understand that now i was just making it way more complicated than needed
    ~WWJD~~Watch What Jesus Did~

  7. #7
    Senior Member
    Computer Details
    JohnM's Computer Details
    Operating System:
    xp pro
    Using
    AutoCAD 2006
    Join Date
    Feb 2009
    Location
    houston, texas
    Posts
    380

    Default

    It takes a few hundred programs before you start thinking of the simplest way to write code. Like the code that I submitted.
    I want to gather all dimensions that have been over written
    I want to make them unique.

    The first statement is almost simple except you would have to know that the “over written” part is a property

    The second statement is simple but not defined enough. The word unique leaves too much for the imagination. You need to learn how to define an action down to a definitive action. Once you train your self to define actions in extreme detail the coding becomes clearer to you and hopefully easer to write.

    Also, it helps to know as much as possible about an object and it’s properties. The more you know the easer it is to figure out a simple way to change it.
    If you spend some time clicking on various objects and looking at the available properties in the properties dialog box you will gain a better knowledge of the objects.

  8. #8
    Senior Member
    Computer Details
    BLOACH85's Computer Details
    Operating System:
    Windows XP Pro.
    Computer:
    HP xw4600 Workstation
    CPU:
    Core 2 Duo
    RAM:
    3.48 GB
    Graphics:
    NVIDIA Quadro FX 570
    Primary Storage:
    227 GB
    Monitor:
    ViewSonic VA2226w LCD (x2)
    Using
    AutoCAD 2009
    Join Date
    Sep 2008
    Location
    Whats left of Salem, Alabama
    Posts
    136

    Default

    Registered forum members do not see this ad.

    Thanks Guys
    ~WWJD~~Watch What Jesus Did~

Similar Threads

  1. updating edited parts in an assembly
    By bigmousepusher in forum Autodesk Inventor
    Replies: 12
    Last Post: 8th Apr 2009, 02:53 pm
  2. Guidance to make first program
    By russell84 in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 13th Nov 2008, 08:13 am
  3. Lisp Program to make regions and find area
    By arulmozhi in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 12th Nov 2008, 08:16 am
  4. Does Autodesk make a Landscape Program??
    By n8dgrt in forum AutoCAD Drawing Management & Output
    Replies: 1
    Last Post: 6th Dec 2006, 10:29 pm
  5. how do i make dimension arrows fit externally?
    By dave_b in forum AutoCAD General
    Replies: 7
    Last Post: 6th Jun 2006, 10:24 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts