Results 1 to 2 of 2

Thread: expression to add color and box

  1. #1
    Member
    Join Date
    2016-01
    Posts
    2
    Login to Give a bone
    0

    Default expression to add color and box

    In a profile view. I have created 2 band labels in which one of the label components is:
    (Elevation difference between two profiles)
    I would like to be able to add a box and change color to display labels:red with a box if negative (out of tolerance), and in green if the difference is positive? In other words I want red for cut and green for fill.
    I added a document to help clarify.
    Thanks
    Attached Files Attached Files

  2. #2
    I could stop if I wanted to
    Join Date
    2015-10
    Location
    Central New Jersey
    Posts
    439
    Login to Give a bone
    0

    Default Re: expression to add color and box

    Edit the contents of the current elevation difference to use the modifier of "hide negative value" and leave the color format as green. This will return only green fill values and nothing for cut values. Now add a new text component but this time reverse the order of the two surfaces, again use the "hide negative values" and this time format that item to be red. This will return red cut values and nothing for fill values.

    I don't have a solution for the box. At first I thought it would be to simply frame the cut values but the result was a small frame artifact in the location where there was fill. (apparently a component with no value still gets a frame) Then I thought I could cover it up by putting a frame mask for the fill values ... this fixed the fill locations but then I had small masked areas in the middle of the cut values ... grrrr

Similar Threads

  1. some help with a macro expression
    By Doodlemusmaximus in forum AutoCAD Customization
    Replies: 4
    Last Post: 2011-03-21, 10:49 AM
  2. Expression of disapproval
    By garethace in forum DWG TrueView - General
    Replies: 0
    Last Post: 2010-06-01, 12:54 PM
  3. Help with expression
    By fclao in forum AutoLISP
    Replies: 3
    Last Post: 2010-02-24, 10:52 PM
  4. Rtext expression
    By BCrouse in forum AutoLISP
    Replies: 2
    Last Post: 2005-05-25, 04:35 PM

Posting Permissions

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