Jump to content

Search the Community

Showing results for tags 'lisp'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

  1. Lee Chu Chu

    ESC User Input

    Is there anyway to check to see if the user has inputted into the command line and using a lisp, to tell that as soon as the user has pressed esc to not only cancel the command but to also set quantities?
  2. I get this: laysch: redefining key. Help
  3. I have the command syntax in my lisp file to create a splined Mleader but I when I try to add text to the Mleader using the Mleader settings, I end up getting text at the landing. How can I put the text at the arrowhead?
  4. Hello all, Trying to do a simple thing here but I can't figure it out. I'm trying to change the default text color of all tables in a drawing to black. I can do it by selecting each table, going to properties, and changing the Color property at the top of the list to black (as in attached picture where it's ByLayer), but I am trying to do this in autolisp (vlax-for tablestyle (vla-item (vla-get-Dictionaries (vla-get-ActiveDocument (vlax-get-acad-object))) "acad_tablestyle") (vlax-put-property tablestyle 'Color 0 0 0) ) Above was me taking a stab at it by changing the tablestyles (seemed easier than going through each table), but after playing with it for a couple hours, I still couldn't get anywhere. Can anyone point me in the right direction?
  5. Hello, I am trying to get a LISP reactor to work whist a function is running. So my scenario is, is that I have I have a function that draws certain things in AutoCAD. While this function is running, I want to have my reactor activated, so it sets things and when the function is cancelled, the reactor will revert everything back to the way it was before I used the function in the command line. Right now, I have the function that draws stuff and a command Reactor. Can someone point me to the right direction on how to get the reactor to activate inside the function?
  6. Lee Chu Chu

    Lisp Command Reactor

    I want a command reactor to be able to activate inside a function however I am not sure if command reactors work with a user defined command or function. For an example, I want to be able to get the reactor to work on some (defun c:drawsomething () ....) and I want it to look for when the command drawsomething is called up? Can someone please point me in the right direction.
  7. Hello, I am working on a tunnel alignment. I have to draw multiple closed 3d polylines from AutoCAD Points (which form the tunnel sections from the excavation). I use the 3POLY command and then the option "PN. Is it possible to write a script (or a lisp routine) that repeats this process? For example, I wrote this script 3POLY 'PN 1-10,1 (1 row blank) 3POLY 'PN 11-20,11 It draws the first closed 3dpoly (from point numbers 1 to 10 and closes to 1) but it not continues to second 3poly. Thank you in advance
  8. I am trying to Check in a Autocad drawing into the vault 2013v(Basic) using Visual lisp or Visual basic. I can't find any clues how to get connected to the Vault. Has somebody some experience using AutoCad 2013 and Vault with Visual lisp/basic. Need a push into the right direction. Regards, Johg
  9. TheyCallMeJohn

    Lisp to Sync Attributes

    Gents, I am looking for a lisp to sync attributes. For example block Alpha has an attribute called "LOCID" and its surrounded by blocks Beta, Charlie and Delta. All four blocks have diffrent names, attributes, and paramenters but they all have "LOCID" in common. Alpha already has a value for "LOCID" but the others do not. I would like to the lisp to sync "LOCID" for all four blocks to Alpha's value by selecting all four. Also all four may not always exist together but Alpha is always there. And there are multiple groups of Alpha & friends. Does anyone have a lisp that can do this? It is way above my experience level.
  10. I have created a view to zoom to my titleblock and plot stamp so that I may check revision dates. I then put this to a macro for easy access to the view (I keep the ribbon closed for maximum screen size most of the time). It seems that these saved views are only saved in the current drawing and I would need to save a view for each drawing file. This can be cumbersome for many drawings. Is there an easier way to view a certain area in paperspace? Or is there a lisp out there to create a saved view in multiple drawing files? Thanks for your time, -Nobull P.S. I also just realized this saved view not only goes to certain position but also switches to that specific layout. Is there a way to just save a position in paperspace to use on any layout?
  11. Looking for a solution to search thousands of dwg's to see if they have a region in them. And if so display this list or save the list for later use.
  12. Hello, I am looking for a LISP for enclosing an object in order to figure out material requirements. In the past I had a huge list of pre-loaded LISP routines on my PC at work. So the issue is this: Need to get a hold of a LISP routine to enclose and object in AutoCAD. Second how exactly does one insert it into the program and make it a standard to each drawing. Third how does one know what the command would be? Any help would be great. Thank you
  13. ;; If the selection set (txt) can be obtained and it holds more than one item ;;then we will use (if (< 1 (sslength txt)) (do this) ) ;;what if selection set (txt) don't have any entity. (if (= nil (sslength txt)) ;;but it is not working plz suggest right way (do this) )
  14. I have parcel IDs (numbers as text objects) in a layer. I like to find out duplicate Parcel IDs and Missing Parcel Ids in sequence.
  15. Hello Community After many hours looking for a solution to my 'problem' I have been forced to sign up to a website in which there are far more skilled people than I in their programming skills. My issue isn't new but I am unable to find a straightforward solution. It is this...I wish to update individual blocks with different attributes using their handles from an excel spreadsheet on loading any applicable drawing. As I have it I have Handle | Blockname | Attribute 1 | Attribute 2 | Attribute 3 | etc. I have found Lee Mac's Update Titleblock Attributes and (as I see it) this is similar to what I am after in a different form however, I could be wrong...! Could someone please advise me? Many thanks in advance.
  16. Hello Everyone, I'm new on forum. I search for a very simple LISP which inserts (on centre in object or bottom, no matter) text with AREA and PERIMETER from RECTANGULAR or closed LINES. e.g. area - "1,23 m2" and perimeter - "2,45 m" Best when I can select more objects and than for the all selected the text will be written. And this function for the two parameter should be writen together. Not that I must first use one command than second. The font height should be possible to change. Precission should be: 0,001m or 0,01m. Could anyone help me? Sorry for my english Thanks!
  17. Hi All, I have created a menu file that contains a ribbon tab. I can load the menu and make sure the pull down and toolbars are visible, but I can't find a way using LISP to make the new ribbon tab visible. I know that I can go to the CUI manager, edit the workspace, tick the ribbon tab and save the workspace, but I need to do all this via lisp on startup. Any and all help greatly appreciated. Colin Holloway
  18. I'm not sure the correct wording of what I'm trying to do so google hasn't been too helpful. I have a command that invokes a dialog box with the option to "edit" an object, among other things. I'm looking to automate some things. I want to run the command, (Defun C:bbb () (command "BEAM") Then select the option to edit, (don't know where to go here...) Then choose "select previous" and confirm the selection. If I could get that far I think I could get the rest regarding adding this to a double-click feature in the CUI.The ultimate goal of this for me is to double-click the "beam" and automatically open this dialog box in the edit mode and skip the steps of calling out the "BEAM" command, click edit and then select the beam. I'm trying to learn how to call out options within a dialog box using lisps as most of the commands I use all day have a dialog box that is used after beginning the command and then options after that. Hopefully this is clear enough for someone to understand. If not, I'll try to supply more info that I can. Thanks, Nobull, i.e. "Noob"
  19. Hi boys and girls! I have a good one for you... I have a set of LISP routines (around 20 of them), which I use pretty much all the time. I used to autoload them into each drawing using either StartUp suit (if I was lazy), or by ACADDOC.lsp, if StartUp suit was glitching... Never had a problem. However, I've just had my CAD upgraded from 2011 to 2013, and SOME of my LISP files simply won't autoload, whatever I do! About half of them... I've tried StartUp suit. I've tried creating autoload functions within both ACADDOC.lsp and ACAD.lsp. I even tried to copy ALL codes from ALL files into a single file (ACADDOC)... Some of routines just won't autoload. I know that both ACAD.lsp and ACADDOC.lsp are loading within each drawing. I know that LISP files are not corrupt, because they load manually without a problem. It's just a pain to do it manually each time I open a drawing. The only reason I can think of that some of my routines have some old code, incompatible with 2013 release autoloading feature (strange!). It does my HEAD in! Any thoughts??? Thanks in advance!
  20. Hi, currently i found on the web , this lisp to draw Road profile or any other profiles by the lisp that contains two commands : 1- " NGL " : To draw natural ground elevation in terms of station and elevation from an excel sheet with a Datum . 2- "PGL" : tO DRAW DESIGN ELEVATION from excel sheet too , with same datum. the lisp states an error message "error no function definition , (ACET-STR-FORMAT ) after loading " NGL" and entering datum , BUT it work with " PGL" without any error ... ??!! i use AutoCAD2012 ? , what do you think that the problem is ? lisp and excel are attached . https://www.mediafire.com/?dqbumocn3gm3132 https://www.mediafire.com/?dqbumocn3gm3132 PROFILE #NGL# - #PGL#.lsp
  21. AVLDraftsman

    Issues with "CMDECHO"

    Hello anybody... ; error: An error has occurred inside the *error* functionAutoCAD variable setting rejected: "CMDECHO" nil Anytime I run a lisp it craps out as soon as the command is executed Also every time I set the CMDECHO variable back to (1) it resets back to (0) as soon as the Lisp is exected. I had cleaned out the Lisp command that I believe was the culprit but it is still having the problem. Any direction on this will be greatly appreciated.
  22. Hi there .. This lisp helps you to quick draw pile section and profile with annotation text around entities. Just drag & Drop. Command : "PILE" Please feedback )Pile.lsp
  23. sanju2323

    Text As Chainage Format

    I want Required lisp Selected Text As Chainage Format Example. 100.00 Required 0+100.00 or See Attachment Image
  24. Hello. I would like to know if there is any lisp that can find and list any polylines with unsnaped endpoints? I have a large file where i have many 2d Polylines in two different layers (AR_RAMAL_LIGACAO_PVC_125 and AR_COLECTOR_PVC_200). Every 2D polyline in layer AR_RAMAL_LIGACAO_PVC_125 must have an endpoint snaped to a 2D Polyline in layer AR_COLECTOR_PVC_200. Attached is a file with a small example of what I mean. Using drawing cleanup to find those fails doesn't work UnsnapedLines.dwg
  25. Hello, I am both new to the CADTutor forums and to AutoCAD itself. I have been dealing with AutoCAD 2014 and Civil 3D 2010 for Contouring my drafting files since only mid December as of last year. I have a few simple questions to ask about LISP and any replies or help would be very appreciated. First of all, what is LISP? Is it a form of virtual language or is a LISP a set of commands that are created to meet a need? Is it sort of like creating a program in Java, but for AutoCAD purposes? Secondly, is LISP used with other programs other than AutoCAD products, or is it tied with a single AutoCAD product such as Civil 3D etc.. Or is it a global AutoCAD code? And lastly, would this site be able to tutor me to learn such a code? Is the code an easy one to learn, or will it require a fair bit of studying for even the basics? I am wondering whether I should start learning this language or if it will be of any use to me now or in the future, as I plan to continue this career in the drafting field for life. Thank you in advance! ~Trekiez
×
×
  • Create New...