Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Assign Double Click action to dimensions

  1. #1
    All AUGI, all the time cadkiller's Avatar
    Join Date
    2003-09
    Location
    Bergenfield, NJ
    Posts
    697
    Login to Give a bone
    0

    Default Assign Double Click action to dimensions

    Group;

    I recently added a double click action for my dimensions. I now can double click my dimensions and the edit text command is enabled.

    1-Go to CUI double click actions and add a new one.
    2-Put dimension in the general name and advanced object name.
    3-Then drag the edit text command from the lower left hand corner to the new double click action.
    Attached Images Attached Images

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,917
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    I have a vba solution if anyone doesn't have cui (pre 2006).
    C:> ED WORKING....

  3. #3
    All AUGI, all the time cadkiller's Avatar
    Join Date
    2003-09
    Location
    Bergenfield, NJ
    Posts
    697
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    I would like to see it even though I already set mine up.
    I have a friend that is on 2004 that would be interested in your VBA solution.

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,917
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    Add this to a class that is initialized "With Events". Load the class at startup. Set its Doc property to ThisDrawing.

    Code:
    Public WithEvents Doc As AcadDocument
    
    Private Sub Doc_BeginDoubleClick(ByVal PickPoint As Variant)
        'If item being clicked on is a dimention,
        'then open the Mtext editor instead of the properties dialog.
        Dim s1 As AcadSelectionSet
        Dim oEnt As AcadEntity
        
        Set s1 = ThisDrawing.PickfirstSelectionSet
        If s1.Count > 0 Then
            For Each oEnt In s1
                Select Case oEnt.ObjectName
                    Case Is = "AcDbAlignedDimension"
                        ThisDrawing.SendCommand "ddedit "
                    Case Is = "AcDb2LineAngularDimension"
                        ThisDrawing.SendCommand "ddedit "
                    Case Is = "AcDb3PointAngularDimension"
                        ThisDrawing.SendCommand "ddedit "
                    Case Is = "AcDbDiametricDimension"
                        ThisDrawing.SendCommand "ddedit "
                    Case Is = "AcDbOrdinateDimension"
                        ThisDrawing.SendCommand "ddedit "
                    Case Is = "AcDbRadialDimension"
                        ThisDrawing.SendCommand "ddedit "
                    Case Is = "AcDbRotatedDimension"
                        ThisDrawing.SendCommand "ddedit "
                End Select
            Next oEnt
        Else
        
        End If
    End Sub
    C:> ED WORKING....

  5. #5
    Active Member jim.dozorec's Avatar
    Join Date
    2001-11
    Location
    Edmonton, Alberta, Canada
    Posts
    62
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    Hi, All

    Maybe I'm a little daft, but I can't find out what CUI means. Can someone enlighten me?

    Thanks, Jim

  6. #6
    All AUGI, all the time cadkiller's Avatar
    Join Date
    2003-09
    Location
    Bergenfield, NJ
    Posts
    697
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    Customize User Interface

    Type CUI at the command prompt and see if your version has one.

  7. #7
    Active Member jim.dozorec's Avatar
    Join Date
    2001-11
    Location
    Edmonton, Alberta, Canada
    Posts
    62
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    Thanks, I tried that and I guess ACAD 2005 doesn't have it, since nothing came up. I'll try the other method.

    Regards, Jim

  8. #8
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    8,747
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    Quote Originally Posted by jim.dozorec
    Thanks, I tried that and I guess ACAD 2005 doesn't have it, since nothing came up. I'll try the other method.

    Regards, Jim
    The Custimze User Interface was first introduced in 2006. It replaced the MN? style menus.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  9. #9
    All AUGI, all the time cadkiller's Avatar
    Join Date
    2003-09
    Location
    Bergenfield, NJ
    Posts
    697
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    A friend of mine told me about this AUTOLISP option.
    The following is what he sent me.

    Another way for invoking edit dimtext is simple DDEDIT:
    (defun c:N ()(COMMAND "DDEDIT"));Text, MText, Attributes & Dims EDIT

    AutoLISP N command with space bar = almost the same speed as double click + less work for the hand holding the mouse. And as you can see it works with four groups of objects.


  10. #10
    Active Member jim.dozorec's Avatar
    Join Date
    2001-11
    Location
    Edmonton, Alberta, Canada
    Posts
    62
    Login to Give a bone
    0

    Default Re: Assign Double Click action to dimensions

    Thanks for the lisp. It works great.

    Regards, Jim

Page 1 of 3 123 LastLast

Similar Threads

  1. Double-Click Action Items
    By Wish List System in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2012-05-09, 03:45 PM
  2. Replies: 9
    Last Post: 2011-08-06, 06:53 AM
  3. Double click action on AEC dimension
    By Yancka in forum ACA General
    Replies: 0
    Last Post: 2010-02-02, 01:39 PM
  4. Assign functions to double click
    By lawson in forum NavisWorks - Wish List
    Replies: 1
    Last Post: 2009-10-26, 10:17 AM
  5. Double Click Action
    By SRBalliet in forum AutoCAD Civil 3D - General
    Replies: 6
    Last Post: 2009-03-05, 02:28 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
  •