Searching for Objects in an AutoCAD drawing then highlight.

Discussion in 'AutoCAD' started by stephenlecompte, Feb 16, 2005.

  1. I was told by a fellow architect that there is an Architectural Desktop plug-in that allows you to search for a particular block and its attributes in an AutoCAD drawing and then have that attribute (or just block) and highlight in a special way. It kind of takes the block and its attribute's lines makes them into a dash and then does a type of animation where the lines become solid for a second - which allows for an effect where that block or attribute is blinking! After some research here on this site - I've got all the coding I need to find all attributes of all blocks in a particular AutoCAD drawing. But I'm not sure how to search for something I'm not sure that is out there. Is it animation that allows a particular object to be "blinking" or is there another effect that can be applied to a particular object? If I can get the VBA coding for that technical term than I would be all set to put it in place! Thanks for any help! Sincerely, Stephen LeCompte Jr.
     
    stephenlecompte, Feb 16, 2005
    #1
  2. Hi Stephen,

    Assuming you have an Object from the drawing you can change any of its
    properties sequentially to give the appearance of motion of blinking or
    anything.

    The variable Object could be a group of objects, or a layer, whatever you
    want.

    The general principle is:
    With Object
    Do while Not SomeEvent ' The method to stop it running"
    .If Linetype = Dashed Then ' This uses linetype - you could use
    anything
    .LineType = Continuous
    Else
    .LineType = Dashed
    End if
    .Update
    DelayEvent ' Code so it doesn't run too fast to be seen
    Get SomeEvent ' The opportunity for the user to insert the stop
    event
    Loop
    End with


    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    plug-in that allows you to search for a particular block and its attributes
    in an AutoCAD drawing and then have that attribute (or just block) and
    highlight in a special way. It kind of takes the block and its attribute's
    lines makes them into a dash and then does a type of animation where the
    lines become solid for a second - which allows for an effect where that
    block or attribute is blinking! After some research here on this site -
    I've got all the coding I need to find all attributes of all blocks in a
    particular AutoCAD drawing. But I'm not sure how to search for something
    I'm not sure that is out there. Is it animation that allows a particular
    object to be "blinking" or is there another effect that can be applied to a
    particular object? If I can get the VBA coding for that technical term than
    I would be all set to put it in place! Thanks for any help! Sincerely,
    Stephen LeCompte Jr.
     
    Laurie Comerford, Feb 16, 2005
    #2
  3. stephenlecompte

    krispy Guest

    instead of changing the linetype, why not just set highlight true or false? ie. Object.Highlight True
     
    krispy, Feb 17, 2005
    #3
  4. Hi,

    As I tried to indicate you can test and change anything.

    Here is an interesting effect using a selection set of lines. You can
    change the timing to get different effects:

    For i = 1 To 25
    For Each oLine In ssetObj
    oLine.Color = Int(i * 10)
    oLine.Update
    Next
    K = Timer
    Do While Timer - K < 0.025
    Loop
    Next i
    For Each oLine In ssetObj
    oLine.Color = acByLayer
    oLine.Update
    Next

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    false? ie. Object.Highlight True
     
    Laurie Comerford, Feb 18, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.