+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34
  1. #1
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default Legend Check Box

    Registered forum members do not see this ad.

    Hey guys

    I really would like to get some help in a getting a starting place to make a legend checkbox button.

    I'd like to create a button that would bring up a list of symbols and lines with a check box next to them and once all symbols and lines are checked and insert button down the bottom of the list and finally a insert comand - just at scale 1:1

    Any ideas?

    Could each symbol be a separate block that is inserted with the appropriate text?

    Thanks for any help

  2. #2
    Senior Member bsamc2000's Avatar
    Computer Details
    bsamc2000's Computer Details
    Operating System:
    Windows 7
    Computer:
    HP Z400
    CPU:
    Intel Xeon 2.66GHz
    Graphics:
    NVIDIA GeForce 9500 GT
    Monitor:
    E228WFP (2x)
    Using
    AutoCAD 2011
    Join Date
    Mar 2007
    Location
    Columbus, Ohio
    Posts
    120

    AutoCAD

    The short answer is yes. The question then becomes are you wanting to do this using dcl, vba or .net?

    Thanks,
    Brian

  3. #3
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    vba would be great - so you know how - have you done this for your self have you?

    Any help would be appreciated

    Thanks

  4. #4
    Senior Member bsamc2000's Avatar
    Computer Details
    bsamc2000's Computer Details
    Operating System:
    Windows 7
    Computer:
    HP Z400
    CPU:
    Intel Xeon 2.66GHz
    Graphics:
    NVIDIA GeForce 9500 GT
    Monitor:
    E228WFP (2x)
    Using
    AutoCAD 2011
    Join Date
    Mar 2007
    Location
    Columbus, Ohio
    Posts
    120

    AutoCAD

    I'm in Japan, half way around the world for my workstation, but I wrote this little code. Is this similar to what you are looking for?

    Thanks,
    Brian
    Attached Files

  5. #5
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    I'm now looking at using dcl

    i'm currently just setting up a dcl file at the moment - would be handy if someone had a example i could go off.

    cheers

  6. #6
    Forum Newbie
    Using
    AutoCAD 2008
    Join Date
    May 2006
    Location
    England
    Posts
    9

    Default

    MMmm...I'm looking for just a tool, but I have no programming experience.

    Does anyone know of a solution?

    I have tried a script by Peter Jamtgaard, but it seems a little unstable on my setup.

    I'd also appreciate a count function, which would tell you how may occurrences of the block exist in the drawing.

    Icing on the cake would be a simple math function, to multiply an attribute numerical value, by the qty. (I do lighting design, and would like to calculate the total load for example).

    Cheers
    Graham

  7. #7
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    i have a legend creater written that simply inserts blocks that describe linetypes and symbols throughout a drawing.

    Its old and kinda messy because it was one of the first lisp/dcl routines i wrote.

    But it doesn't check what blocks are contained within a drawing - it only works by manual ticking of the check boxes.

    You could create something more advanced if you want but its up to you.

    My one at the moment just inserts differnt blocks that were set up for different scales

    ive attached a pic of the result

    also a pic of the form.

    i'll give you the code if you want for it all and you can edit it from there.

    Atleast its a start you know.

    But what you are talking about you will need some experience and help with writing it to suit your needs

    Let me know if you want it
    Attached Images

  8. #8
    Forum Newbie
    Using
    AutoCAD 2008
    Join Date
    May 2006
    Location
    England
    Posts
    9

    Default

    Hi Russell,
    Sorry for not getting back sooner....new to all this!
    I fumbled through the drawings I needed to do, but this is something I'd like to crack, so any help would be marvellous.

    With my workload, I really don't have time to learn programming (as much as I would like to) so I need to use what I can find.

    Thanks again for taking the time to reply.

    Graham

  9. #9
    Super Member asos2000's Avatar
    Computer Details
    asos2000's Computer Details
    Operating System:
    WinXP
    Using
    AutoCAD 2007
    Join Date
    Sep 2007
    Location
    Cairo Egypt
    Posts
    573

    Default

    Thanks Russell

    but there is a question, could that lisp read from a folder?
    means, I created a seperete file and saved in a folder (and sub-folders for groups like Roads, Jointing ...) for each detail, and the lisp reads those files and show the groups in window

  10. #10
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Posts
    115

    Default

    Registered forum members do not see this ad.

    Russell,
    Your Legend Creator look great.
    you wouldn't want to share the Lisp and DCL file would you?
    I'm still learning how to write lisp programs. I started out using a "Ksoft DCL & AutoLisp generator program, but dosen't completly finish
    creating the lisp & DCL file. But I learning to Manipulate lisp files.

Similar Threads

  1. Check these Tutorials
    By CADTutor in forum AutoCAD 3D Modelling & Rendering
    Replies: 3
    Last Post: 16th Dec 2008, 06:07 am
  2. Legend or Key
    By happyunited in forum AutoCAD Drawing Management & Output
    Replies: 11
    Last Post: 20th Jul 2007, 12:42 am
  3. Looking for 3D models? Check this out.
    By ReMark in forum Blocks, Images, Models & Materials
    Replies: 0
    Last Post: 26th Feb 2007, 01:07 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