TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Kerry on August 28, 2008, 06:06:16 AM
-
I thought this may be fun and educational.
It's a relatively common belief that "it's all been done before" with regards to programming.
While I disagree with the blanket statement, there is some truth to the concept.
What code do you want ?
What problem do you want to solve ? :|
The answers should be links only to a solution ( or partial solution) ... NO CODE PLEASE
PS: be a little reasonable with the request .. some esoteric problems may not qualify :D
edit: make topic sticky
-
Awesome idea Kerry!
If I may, if you post a solution, give the post with a solution link a good post title so a search can bring it up a bit easier ;)
eg. if it's something that draws an angle bevel diagram or say a beam camber diagram or a ..., 'subject' title your reply 'Beam Camber diagram lisp' for instance.
cheers.
-
Kerry,
Good topic, though I'm not sure the subject describes it well.
Give my experience with various CAD programs the idea, "it has all been done before," is unique to those who have only used AutoCAD.
Example, the MinDist tool recently posted. It is an often used tool in Microstation. But it gets little notice within the AutoCAD community simply because users are too set in their ways IMO. They simply cannot see the value of it at first glance, so they ignore it.
So the real question may be how to encouarge folks to think outside the box.
Regards
-
Great idea Kerry!
"Problems with Solutions Links" would be my first shot at another title but it's subjective. 8-)
-
OK, Is this what we are looking for?
Break Objects by CAB - Break objects with crossing objects
http://www.theswamp.org/index.php?topic=10370.0
Trim with objects [CookieCutter] by Joe Burke
http://www.theswamp.org/index.php?topic=24646.0
LineType Loader by CAB - function to load a list of linetypes
http://www.theswamp.org/index.php?topic=23888.0
Lengthen Command with Options by CAB - lengthen command
with key press switch fron Lengthen to Shorten
http://www.theswamp.org/index.php?topic=23871.0
Advanced Offset to both side by VVA <Vladimir Azarko>
Offset selected object to both side and change (optional) layer of
new object to current
http://www.theswamp.org/index.php?topic=23069.0
Update all blocks in drawing by Keith
http://www.theswamp.org/index.php?topic=23017.0
Length of Objects by CAB - pick each object & displays
the object type, length & a running total on the command line.
http://www.theswamp.org/index.php?topic=5891.0
Clone Text Object by CAB - Clone one text string from dText mText
or Attribute to other selected dText mText or Attribute object
http://www.theswamp.org/index.php?topic=6874.0
Increment Number in Text bt CAB
http://www.theswamp.org/index.php?topic=518.0
Increment the suffix of a string by Gile
http://www.theswamp.org/index.php?topic=20907.0
Simplify a LWPolyline vertex -
http://www.theswamp.org/index.php?topic=19865.0
Areas of objects by Mark Thomas
http://www.theswamp.org/index.php?topic=20345.0
-
Good start Alan.
Links like that should make everyones searches a little easier.
This may be a good place for members to post the sucessful results of their own particular searches.
-
Here is a thread I found helpful for one with little experience. I hope it is appropriate
to add it here...
http://www.theswamp.org/index.php?topic=12845.msg156763#msg156763 (http://www.theswamp.org/index.php?topic=12845.msg156763#msg156763)
-
A few more links. 8-)
Remove a LWpolyline Vertex
http://www.theswamp.org/index.php?topic=19865.0
http://www.theswamp.org/index.php?topic=5251.0
http://www.theswamp.org/index.php?topic=10344
Add a LWpolyline Vertex
http://www.theswamp.org/index.php?topic=18720.0
Add a vertex to a Leader
http://www.theswamp.org/index.php?topic=6383.0
-
A few more links. 8-)
Remove a LWpolyline Vertex
http://www.theswamp.org/index.php?topic=19865.0
http://www.theswamp.org/index.php?topic=5251.0
http://www.theswamp.org/index.php?topic=10344
Thank you CAB. Just the other day I said to myself that I ought to go diving in The Swamp to see if I can find something like this. Your code was an exact match. Thanks again.
-
Glad to help. 8-)
-
List blocks, nested blocks, xrefs into a structured list.
Topic: How to list all the blocks in a directory form?
http://www.theswamp.org/index.php?topic=28043.msg336481#msg336481
-
This is one that I responded to in one of the other forums, but is very handy.
Batch xref attach to overlay
http://www.theswamp.org/index.php?topic=3104.0 (http://www.theswamp.org/index.php?topic=3104.0)
Disclaimer: I did not originally write the code, but I have put a fair amount of work into making it work.
This is a great thread by the way, I see it becoming extremely useful in the future
-
Great to see this thread being used ... should be more of it ! :)
Regards
Kerry
-
I would like to know if anyone has a routine to Automatically close AutoCAD after a set period of inactivity, or even something that could be used as a starting point, I just have no idea how to determine the inactivity part.
-
I found this handy:
Unload/Reload/Detach XREF's
http://www.theswamp.org/index.php?topic=23515.0
-
Updating my index this AM so I thought I would post it.
Kerry asked me if I had such a reference & I didn't at the time. So I've started keeping one.
Sorry for the repeats from other post.
====================================
Index of Swamp Articles & Code - by CAB
AND Links to Programing Guides
====================================
This list... http://www.theswamp.org/index.php?topic=24700.msg359343#msg359343
------------- LISP Logic -----------------
http://www.theswamp.org/index.php?topic=13046.msg158557#msg158557 by CAB
http://www.cadtutor.net/forum/showthread.php?52365-localizing-variables
------------- ERROR Handling --------------
There's an Error in My Visual LISP® Code. Now What?
http://www.lukewarmcoffee.com/cad/AUGI%20-%20There%27s%20an%20Error%20in%20My%20Visual%20LISP%20Code.%20Now%20What.pdf
---------- SET function -------------------
http://www.theswamp.org/index.php?topic=27226.msg328317#msg328317
http://www.theswamp.org/index.php?topic=27226.msg328322#msg328322
http://www.theswamp.org/index.php?topic=33088.0
------------- Break & Trim -----------------
http://www.theswamp.org/index.php?topic=10370.0 Break Objects by CAB - Break objects with crossing objects
http://www.theswamp.org/index.php?topic=24646.0 Trim with objects [CookieCutter] by Joe Burke
http://www.theswamp.org/index.php?topic=21324.msg258512#msg258512 by RonJon
----------- Line Type Loader / Maker ----------------
http://www.theswamp.org/index.php?topic=23888.0 LineType Loader by CAB - function to load a list of linetypes
http://www.theswamp.org/index.php?topic=31115.0 Advanced Linetype Loader by Lee Mac
http://www.theswamp.org/index.php?topic=21339.msg258481#msg258481 LineType maker by RonJ
------------- Offset -----------------
Advanced Offset to both side by VVA <Vladimir Azarko>
Offset selected object to both side and change (optional) layer of new object to current
http://www.theswamp.org/index.php?topic=23069.0
http://www.theswamp.org/index.php?topic=32743.0 VLA-Offset using Point Selection
http://www.theswamp.org/index.php?topic=24688.0 Staggered Multiple Offset by RonJonp
http://www.theswamp.org/index.php?topic=6209.0 Here is a nice example of Offset by Jürg Menzi
http://www.theswamp.org/index.php?topic=23921.0 Offset direction discussion
http://www.theswamp.org/index.php?topic=21933.msg266096#msg266096 Offset Segments by Gile
----------- Length and Area ------------------
Length of Objects by CAB - pick each object & displays
the object type, length & a running total on the command line.
http://www.theswamp.org/index.php?topic=5891.0
http://www.theswamp.org/index.php?topic=5891.msg268984#msg268984
Lengthen Command with Options by CAB - lengthen command
with key press switch from Lengthen to Shorten
http://www.theswamp.org/index.php?topic=23871.0
http://www.theswamp.org/index.php?topic=29270.0 Line Length Calculator by Lee Mac
http://www.theswamp.org/index.php?topic=20345.0 Areas of objects by Mark Thomas
http://www.theswamp.org/index.php?topic=33671.0 Show Total by Andrea
---------- Lengthen Command -------------
http://www.theswamp.org/index.php?topic=23871.0 Lengthen Command with Options
------------- Increment Number -----------------
Incremental Numbering Tool & Automatic Numbering by Lee McDonnell
http://www.theswamp.org/index.php?topic=28727.msg349955#msg349955
http://www.theswamp.org/index.php?topic=518.0 Increment Number in Text by CAB
http://www.theswamp.org/index.php?topic=20907.0 Increment the suffix of a string by Gile
http://www.theswamp.org/index.php?topic=28727.0 Incremental Numbering Tool by Lee Mac
http://www.theswamp.org/index.php?topic=12867.msg157064#msg157064 by Tim Willey
---------- WCMATCH --------------
http://www.theswamp.org/index.php?topic=28210.0
http://www.theswamp.org/index.php?topic=5004.msg60485#msg60485
http://www.theswamp.org/index.php?topic=28210.msg337978#msg337978
http://www.theswamp.org/index.php?topic=28210.msg337979#msg337979
http://www.theswamp.org/index.php?topic=27733.msg333229#msg333229
---------- Align Text ---------------
http://www.theswamp.org/index.php?topic=25824.0 Align Text CAB
http://www.theswamp.org/index.php?topic=8903.msg367635#msg367635 Tim Willey / CAB
http://www.theswamp.org/index.php?topic=29153.0 Align Text to Curve by Lee Mac
http://www.cadtutor.net/forum/showthread.php?37646-Align-Text-to-Curve
http://www.theswamp.org/index.php?topic=33735.0 Slinky Text by Lee Mac
http://www.theswamp.org/index.php?topic=30943.0 LeeMac text2object reactor
---------- Insert Text --------------
http://www.theswamp.org/index.php?topic=1392.0 CAB
---------- Box Text by CAB -------------
http://www.theswamp.org/index.php?topic=7003.0 CAB
Bounding Box for Groups of Plain Text [Older Version]
http://www.theswamp.org/index.php?topic=6045.0
----------- Text Style -------------
Merge text styles (or change text styles) by Tim Willey
http://www.theswamp.org/index.php?topic=17659.0
------------- Sorts --------------------
http://www.theswamp.org/index.php?topic=16564.0
http://www.theswamp.org/index.php?topic=6474.0
http://www.theswamp.org/index.php?topic=30262.0
-------------- Bounding Box ------------------
http://www.theswamp.org/index.php?topic=15323.msg188915#msg188915
http://www.theswamp.org/index.php?topic=15323.msg190278#msg190278
http://forums.augi.com/showpost.php?p=902301&postcount=2
http://www.theswamp.org/index.php?topic=32597
http://www.theswamp.org/index.php?topic=20534.msg250025#msg250025
-------------------------------------
DTdeformer ! Dynamic Text Deformer... [By Andrea]
http://www.theswamp.org/index.php?topic=30197.0
-------------- Match Properties -----------------
http://www.theswamp.org/index.php?topic=8163.0
http://www.theswamp.org/index.php?topic=5185.msg62997#msg62997
http://www.theswamp.org/index.php?topic=19857.msg266746#msg266746
http://www.theswamp.org/index.php?topic=23560.0
http://www.theswamp.org/index.php?topic=8940.msg115052#msg115052
-------------- Clone / Copy Text ----------------
Clone Text Object by CAB - Clone one text string from dText mText
or Attribute to other selected dText mText or Attribute object
http://www.theswamp.org/index.php?topic=6874.0
http://www.theswamp.org/index.php?topic=30368.0 CopyText.lsp v1.3 by Alan J. Thompson (alanjt)
http://www.theswamp.org/index.php?topic=28685.0 SwapText by Joe Burke
http://www.theswamp.org/index.php?topic=19805.msg241476#msg241476 Copy 2 Clipboard VVA
http://www.theswamp.org/index.php?topic=21764.msg263566#msg263566
http://www.theswamp.org/index.php?topic=30451.0 txt2mtxt w/ copy option LeeMac
-------- Message Box Utility -------------------
http://www.theswamp.org/index.php?topic=31107.0 Another MessageBox utility by Keith
------------- Viewport Routines -------------------
http://www.theswamp.org/index.php?topic=2509.0 Lock CAB
http://www.theswamp.org/index.php?topic=7097.0 Lock CAB
http://www.theswamp.org/index.php?topic=9461.msg129670#msg129670 VP Outline Tim & CAB
------------- Isolate Layer -------------------
http://www.theswamp.org/index.php?topic=30392.0 Isolate object by Tim Willey
http://www.theswamp.org/index.php?topic=30142.0 Isolate nested layers by RonJonp
http://www.theswamp.org/index.php?topic=9131.msg117714#msg117714 by CAB
http://www.theswamp.org/index.php?topic=34490.0 by John
------------- Layer Import / Create -------------------
http://www.theswamp.org/index.php?topic=23805.0
http://www.theswamp.org/index.php?topic=23805.msg288265#msg288265 Import Layers
http://www.theswamp.org/index.php?topic=8763.0 Layer Creator by Kerry
http://www.theswamp.org/index.php?topic=12845.msg156899#msg156899
http://www.theswamp.org/index.php?topic=23805.msg288356#msg288356
http://www.theswamp.org/index.php?topic=2414.0
--------- Lisp Autoload -------------
http://www.theswamp.org/index.php?topic=28857.0
http://www.theswamp.org/index.php?topic=20492.0
http://www.theswamp.org/index.php?topic=3023.msg39485#msg39485
http://www.theswamp.org/index.php?topic=2439
http://www.theswamp.org/index.php?topic=9211.0
http://www.theswamp.org/index.php?topic=9211.msg118838#msg118838 Create a file to autoload - MP
http://www.theswamp.org/index.php?topic=34610.0 Create a file to autoload - RonJonp
--------- Zoom Object -------------
http://www.theswamp.org/index.php?topic=20534.0
---------- Entmake ----------------------
http://www.theswamp.org/index.php?topic=31145.0 ENTMAKE function by CAB
http://www.theswamp.org/index.php?topic=4814.msg112107#msg112107
http://www.theswamp.org/index.php?topic=17445.0 Min codes
---------- Boundary ------------------
External Contour of Objects by VVA
http://www.theswamp.org/index.php?topic=26664.0
---------------- HATCH -------------------------
http://www.theswamp.org/index.php?topic=33975.0 delete all hatches by VVA
http://www.theswamp.org/index.php?topic=10371.0
http://www.theswamp.org/index.php?topic=6412.msg78804#msg78804
http://www.theswamp.org/index.php?topic=26463.0
---------- Remove a LWpolyline Vertex --------
http://www.theswamp.org/index.php?topic=19865.0
http://www.theswamp.org/index.php?topic=5251.0
http://www.theswamp.org/index.php?topic=10344
------------ Remove Bulge ---------------
http://www.theswamp.org/index.php?topic=34134.0 Tim Willey
----------- Add a LWpolyline Vertex ------------
http://www.theswamp.org/index.php?topic=18720.0
http://www.theswamp.org/index.php?topic=30170
----------- Polyline Reverse -------------------
http://www.theswamp.org/index.php?topic=12618.msg155016#msg155016 gile
http://www.theswamp.org/Themes/oxygen11final/images/post/xx.gif Evgeniy
http://www.theswamp.org/index.php?topic=32603.0 alanjt
http://www.theswamp.org/index.php?topic=1116.msg14511#msg14511 CAB 2004
http://www.theswamp.org/index.php?topic=12618.msg198982#msg198982 CAB
http://www.theswamp.org/index.php?topic=1116.msg14514#msg14514
----------- Point Inside Pline -------------------
http://www.theswamp.org/index.php?topic=7785.0
http://groups.google.com/group/autodesk.autocad.customization/browse_thread/thread/6ec20cba1a1f9efe/79056df13e3f42b1?q=%40cv_inside+group:autodesk.autocad.customization#79056df13e3f42b1
http://groups.google.com/group/autodesk.autocad.customization/attach/42682170bb9ac419/%40cv_inside.lsp?part=2
----------- Centroid --------------
http://www.cadtutor.net/forum/showpost.php?p=268885&postcount=4 ; gile cent
http://www.theswamp.org/index.php?topic=27429.msg330461#msg330461
http://www.theswamp.org/index.php?topic=18725.msg346553#msg346553
--------------- Xref ----------------------
http://www.theswamp.org/index.php?topic=3104.0 Batch xref attach to overlay
http://www.theswamp.org/index.php?topic=23515.0 Unload/Reload/Detach XREF's
http://www.theswamp.org/index.php?topic=24251.msg293032#msg293032 CopyNestedLayer
http://www.theswamp.org/index.php?topic=32382.0 Finding Blocks in xref
http://www.theswamp.org/index.php?topic=28062.0 List xref inserts and nested ones by Tim
---------- Blocks & Inserts -----------------
Swap Blocks
http://www.theswamp.org/index.php?topic=15234.msg184871#msg184871
http://www.theswamp.org/index.php?topic=13283.0
http://www.theswamp.org/index.php?topic=2272.0
http://www.theswamp.org/index.php?topic=28965.0
http://www.theswamp.org/index.php?topic=22479.0
Code to look at modifying:
http://www.theswamp.org/index.php?topic=17085.msg206807#msg206807
http://www.theswamp.org/index.php?topic=22999.0
http://www.theswamp.org/index.php?topic=23017.0 Update all blocks in drawing by Keith
Directly add blocks defined in any drawing file, to the current drawing. by TT
http://www.theswamp.org/index.php?topic=1821.msg24017#msg24017
Blocks, What's in there? CAB
http://www.theswamp.org/index.php?topic=29953.0
List blocks, nested blocks, xrefs into a structured list.
Topic: How to list all the blocks in a directory form?
http://www.theswamp.org/index.php?topic=28043.msg336481#msg336481 By MP
http://www.theswamp.org/index.php?topic=31524.msg370964#msg370964 by Tim Willey
http://www.theswamp.org/index.php?topic=29988.msg355655#msg355655 by Lee Mac
http://www.theswamp.org/index.php?topic=176.0 by Craig
http://www.theswamp.org/index.php?topic=3935.0 by whdjr
---------- ACAD Fileds ------------
http://www.theswamp.org/index.php?topic=33884.0
http://www.theswamp.org/index.php?topic=34974.0
---------- Attribute Modifying -------
http://www.theswamp.org/index.php?topic=10216.0
http://www.theswamp.org/index.php?topic=14194.msg171057#msg171057
http://www.theswamp.org/index.php?topic=4172.msg49951#msg49951
http://www.theswamp.org/index.php?topic=4172.msg49956#msg49956
Extract attributes from block or multileader w/block by AlanJT
http://www.theswamp.org/index.php?topic=29917.0
Multiple Attribute Modification by Lee Mac
http://www.theswamp.org/index.php?topic=29397.0
http://www.theswamp.org/index.php?topic=29124.0
---- ObjectDBX Block Modify Attributes -----
http://www.theswamp.org/index.php?topic=8661.msg120358#msg120358
http://www.theswamp.org/index.php?topic=13532.msg163961#msg163961
http://www.theswamp.org/index.php?topic=7335.msg91135#msg91135
------ ObjectDBX ----------
http://www.theswamp.org/index.php?topic=29933.msg354958#msg354958]Loop Drawings & execute a lisp
http://www.theswamp.org/forum/index.php?topic=7335.msg91135#msg91135]Re: Change the same details of a number of drawing titleblocks
http://www.theswamp.org/forum/index.php?topic=6307.0]DBX Testing
http://www.theswamp.org/forum/index.php?topic=7498.0]run a lisp in dwgs WITHOUT opening the dwgs?
http://www.theswamp.org/forum/index.php?topic=3650.0]Jeff_M or anyone familiar with ObjectDBX
http://www.theswamp.org/forum/index.php?topic=2671.0]Find Text in a Closed Drawing
http://www.theswamp.org/forum/index.php?topic=1821.0]Block Adding
http://www.theswamp.org/index.php?topic=22932.msg275882#msg275882]Copy various collections
http://www.theswamp.org/index.php?topic=22932.msg275940#msg275940]Copy a Layout
http://www.theswamp.org/index.php?topic=29933.0 MapDbxDocs by Tim Willey
http://www.theswamp.org/index.php?topic=31827.0 by Lee Mac
http://www.theswamp.org/index.php?topic=23805.msg288265#msg288265 Import Layers
-------------- Find / Replae Text ----------------------
http://www.theswamp.org/index.php?topic=4591.msg272347#msg272347
http://www.theswamp.org/forum/index.php?topic=2671.0]Find Text in a Closed Drawing
-------------- Structures in AutoLISP -------------------
http://www.theswamp.org/index.php?topic=29356.0 by Herman
----------- (vlax-release-object obj) vs (setq obj nil) -------------------
http://www.theswamp.org/index.php?topic=2005.0
-------------- Layout Export / Copy -------------------
Create separate drawings for each layout by Tim Willey
http://www.theswamp.org/index.php?topic=19721.msg240368#msg240368
Copy Objects to Layouts by Tim Willey
http://www.theswamp.org/index.php?topic=29111.0
Copy Objects to Layouts by Will DeLoach
http://www.theswamp.org/index.php?topic=3012.0
---------- grread examples ---------
http://www.theswamp.org/index.php?topic=12813.0 Examples of usage GRREAD
http://www.theswamp.org/index.php?topic=27747.0 Pline Star for fun!
http://www.theswamp.org/index.php?topic=25412.0 Text Command
http://www.theswamp.org/index.php?topic=18537.0 Detail Indicator
http://www.theswamp.org/index.php?topic=29187.msg347277#msg347277 Draw a circle dynamically
http://www.theswamp.org/index.php?topic=26774.0 DBMAN Dynamic Blocks Manipulator
http://www.theswamp.org/index.php?topic=27479.0 DLMO Dynamic Line Modeler !
http://www.theswamp.org/index.php?topic=29245.0 Dynamic Intelligent Leader
http://www.theswamp.org/index.php?topic=25195.0 Leadering Text...
---------- entsel examples ----------
http://www.theswamp.org/index.php?topic=6992.0
http://www.theswamp.org/index.php?topic=11342.msg143630#msg143630
----------- keyword examples -------------
http://www.theswamp.org/index.php?topic=15173.0
http://www.theswamp.org/index.php?topic=6992.0
---------- Save / Backup DWG with Thumbnail ----------------
with ARX
http://www.theswamp.org/index.php?topic=14394.0
http://www.theswamp.org/index.php?topic=12035.msg150963#msg150963
with NET
http://www.theswamp.org/index.php?topic=24524.msg296051#msg296051
http://www.theswamp.org/index.php?topic=28457.0 Backup Reactor
http://www.theswamp.org/index.php?topic=24992.0 VBA version
http://www.theswamp.org/index.php?topic=4735.0
http://www.theswamp.org/index.php?topic=4735.msg81888#msg81888
http://www.theswamp.org/index.php?topic=17552.msg212071#msg212071
http://www.theswamp.org/index.php?topic=8499.0
---------- Folders & Files ---------------
http://msdn.microsoft.com/en-gb/library/bb774065%28VS.85%29.aspx
http://www.theswamp.org/index.php?topic=9229.msg369104#msg369104
http://www.theswamp.org/index.php?topic=3499.0
http://www.theswamp.org/index.php?topic=30704.0
---------- Block Library Manager --------------
http://www.theswamp.org/index.php?topic=32058.0
---------- Title Blocks -------------------
http://www.theswamp.org/index.php?topic=8661.0
http://www.theswamp.org/forum/index.php?topic=7335.msg91135#msg91135]Re: Change the same details of a number of drawing titleblocks
---------- Selection Sets ----------------
http://www.theswamp.org/index.php?topic=1915.0 Select By Layer or Color
http://www.theswamp.org/index.php?topic=8451.0
http://www.theswamp.org/index.php?topic=8794.0
http://www.theswamp.org/index.php?topic=33979.msg393046#msg393046 determine which segment of the pline is selected
http://www.theswamp.org/index.php?topic=34793.msg400060#msg400060 gile
http://www.theswamp.org/index.php?topic=34793.msg400059#msg400059 Lee Mac
----------- Set the Text Editor in ACAD --------------------
http://www.theswamp.org/index.php?topic=14567.msg273739#msg273739
(setvar "dtexted" 1)
---------- Tips & Tricks for ACAD -----------------------
http://www.theswamp.org/index.php?topic=14567.0
----------- MLeaders ----------------
http://www.theswamp.org/index.php?topic=22949.msg276576#msg276576 DrawMleader by Crank
;; addd Mleader with attributed block & edit the attribute
http://www.theswamp.org/index.php?topic=24732.msg298189#msg298189
;;; Tip 2305: LeaderToMleader.lsp Leader to Multileader (c) 2008 Lyle Hardin
----------- Draw Perpendicular Lines -------------
Draw perpendicular line by Alan J. Thompson, 10.15.09
http://www.theswamp.org/index.php?topic=12813.msg369597#msg369597
Extend point as needed to make perpendicular by ronjonp
http://www.theswamp.org/index.php?topic=1468.msg326292#msg326292
----------- Logand ----------------
http://tinyurl.com/dnpl5
-------------- Rounding ---------------------
http://www.theswamp.org/forum/index.php?topic=3076.0
http://www.theswamp.org/index.php?topic=8511.msg109002#msg109002
very cool link about rounding
http://en.wikipedia.org/wiki/Rounding#Round-to-even_method
http://www.theswamp.org/index.php?topic=4747.msg57268#msg57268
----------- Leaders ----------------
http://www.theswamp.org/index.php?topic=18537.0 Detail Indicator
http://www.theswamp.org/index.php?topic=29245.0 Dynamic Intelligent Leader
http://www.theswamp.org/index.php?topic=25195.0 Leadering Text...
http://www.theswamp.org/index.php?topic=6383.0 Add a vertex to a Leader
Oops, exceeded max post size, will add another post.
-
Most excellent list CAB. Thanks
-
Good grief, nice index CAB thanks! :kewl:
-
Thanks,
Updated my index post.
-
There's an Error in My Visual LISP® Code. Now What? (http://www.lukewarmcoffee.com/cad/AUGI%20-%20There%27s%20an%20Error%20in%20My%20Visual%20LISP%20Code.%20Now%20What.pdf)
-
There's an Error in My Visual LISP® Code. Now What? (http://www.lukewarmcoffee.com/cad/AUGI%20-%20There%27s%20an%20Error%20in%20My%20Visual%20LISP%20Code.%20Now%20What.pdf)
Thanks Kerry. I was looking for that just the other day. I remember reading some time ago but could not recall what to search for.
-
My update exceeded the max post size so the remainder I will post here:
----------- Ldata - xData -------------
Quick XData Functions by Lee Mac
http://www.theswamp.org/index.php?topic=30445.0
http://www.theswamp.org/index.php?topic=31804.0
http://www.theswamp.org/index.php?topic=1283.0 Ldata vs xData
http://www.theswamp.org/index.php?topic=4395.0
http://www.theswamp.org/index.php?topic=8829.0
http://www.theswamp.org/index.php?topic=29381.0
http://www.theswamp.org/index.php?topic=23294.msg281024#msg281024
http://www.theswamp.org/index.php?topic=18054.msg218567#msg218567
http://www.theswamp.org/index.php?topic=29564.0
http://www.theswamp.org/index.php?topic=18490.0 Ldata example
--------- DCL ----------------
http://web2.airmail.net/terrycad/Tutorials/MyDialogs.htm by TerryCAD
http://www.jefferypsanders.com/autolisp_DCL.html
http://www.opendcl.com/forum/
http://www.theswamp.org/index.php?board=63.0 OpenDCL at the Swamp
---------- List Manipulation --------------
http://www.theswamp.org/index.php?topic=31473.0 list & car cadr etc
http://ronleigh.info/autolisp/afude09.htm
http://www.cadtutor.net/forum/showpost.php?p=258390&postcount=20 apostrophe by Lee
----------- Reactor ----------------
http://www.theswamp.org/index.php?topic=26380.0 Length Rector by CAB
http://www.theswamp.org/index.php?topic=8710.0 Object Reactor
http://www.theswamp.org/index.php?topic=10248.0 AreaReactor Thread
http://www.theswamp.org/index.php?topic=22733.msg273953#msg273953 Layer Create Reactor CAB
http://www.theswamp.org/index.php?topic=28604.msg349372#msg349372
http://www.theswamp.org/index.php?topic=30943.0 LeeMac text2object
----------- Close DWG Reactors -----------
http://www.theswamp.org/index.php?topic=12986.msg157991#msg157991
http://www.theswamp.org/index.php?topic=12986.msg158077#msg158077
http://www.theswamp.org/index.php?topic=26752.msg322500#msg322500
-------------------------------------------------------
Darray15.lsp [By Andrea]
I have created this New Dynamic Array function.
The only thing I don't like...is the way i've made it by using block..
but it work great. so if some one have any suggestions to doing this without creating block
I will be happy to see it.
http://www.theswamp.org/index.php?topic=26633.0
-------------------------------------------------------
Ncloud11.lsp [By Andrea]
There is my version of Cloud..
Ncloud v.1.0 (New Cloud)
this is diffrent of Dcloud and use simple Pline against blocks.
allow you to draw a cloud and see it dynamicly what is look like before draw.
also,..with Ncloud you can use TAB to reverse each buldge independent or Shift+TAB to reverse all buldge dynamicly during creation.
Ncloud allow you to have open or closed cloud if your pointer are close of the start point it will close automaticly.
you can see these 2 gif below for example.
http://www.theswamp.org/index.php?topic=27545.0
-------------------------------------------------------
Dhatch4[1]5.lsp [By Andrea]
I have created a new way to hatch...
H.O.S. v.1 (Hatch Object Scaling)
this allow user to select a closed polyline and scale in real time the hatch !
you can switch to the next Hatch patern by pressing the TAB key.
http://www.theswamp.org/index.php?topic=26444.0
------------------------------------------------------
DLMO Dynamic Line Modeler ! [By Andrea]
It will create and modify your entity Dynamicly !
For Now, I have make these Kind of edition:
"TRIM" "PICKER" "WAVE" "BUBBLE" "TRAPEZE" "SQUARE" "ROUNDED" "TWISTED" "SMOOTHTWISTED" "CANDLE"
http://www.theswamp.org/index.php?topic=27479.0
-------------------------------------------------------
DBMAN Dynamic Blocks Manipulator ! [By Andrea]
Dynamic Block MANipulator allow user to chage Dynamicly the scale, rotation and
location for block have same name in your drawing without selecting all.
http://www.theswamp.org/index.php?topic=26774.0
-------------------------------------------------------
D H L I N E [By Andrea]
Dynamic Hidden Line v.1.0
You can now draw any line without specifying level.
DHLINE auto-detect the entity made on same layer. but you can
filter entity as your need.
http://www.theswamp.org/index.php?topic=27051.0
-------------------------------------------------------
Dpush v.1.0 [By Andrea]
D y n a m i c P u s h
Allow user to push entity with a line.
Use SHIFT to move the Line and Release to Rotate.
http://www.theswamp.org/index.php?topic=29923.0
-------------------------------------------------------
Dynamic Offset by Lee Mac
http://www.theswamp.org/index.php?topic=30650.0
-------------------------------------------------------
Dynamic Text Streatch by Lee Mac
http://www.theswamp.org/index.php?topic=30578.0
-------------------------------------------------------
---------- Miscellaneous ---------------
[AutoCAD Installation] Personal Step by Step Guide
http://www.theswamp.org/index.php?topic=31678.0
-----------------------------------------------
----------- Programing References ------------
-----------------------------------------------
http://www.autodesk.com/techpubs/autocad/acad2000/dxf/index.htm DXF Codes
http://www.analogx.com/contents/articles/howtoprg.htm So you want to be a Programmer...
http://pages.cs.wisc.edu/~vernon/cs367/notes/6.RECURSION.html Recursion
http://jefferypsanders.com/autolisp.html
http://www.geocities.com/siliconvalley/2151/matrices.html
Volume 1 of The Art of Computer Programming
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%_toc_start CONTENTS
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-38.html#%_index_start INDEX
-
@CAB
This should be in your list too 8-):
http://www.theswamp.org/index.php?topic=13046.msg158557#msg158557
[added kdub]
worked examples of
IF
COND
OR
AND
PROGN
WHILE functions
[rhino]
and a perfect explanation of each of those functions!
-
Thanks,
I forgot about that post.
It will be included in the next update to the list. :)
-
My update exceeded the max post size so the remainder I will post here:
...
http://www.asmitools.com/Files/Programs.html
http://www.asmitools.com/Files/Tutorials.html
...
Post ASMI
It is possible that some of you have noticed that the site AsmiTools no longer works due to unpaid hosting services. This is my conscious decision and not due to lack of funds. My present work has nothing to do with AutoCAD, and I find it difficult to maintain this site, as well as participate in this wonderful forum. I say goodbye to your friends. In this archive with all the AsmiTools, lisps each of you can use them as he wants. Perhaps they can be placed in AutoLISP Archive at this site. If someone wants to use my site, I will give it, write me at asmirnov#inbox.lv.
Now I end my membership at the forum and erase my account.
Goodbye friends, thanks for everything.
AsmiTools AutoLISP Archive (http://www.cadtutor.net/forum/showthread.php?t=43876)
-
Thanks Vladimir.
-
Thanks, the link has been revised.. :-(
-
I don't think this has been linked to yet:
FYI... List xref inserts and nested ones
[ http://www.theswamp.org/index.php?topic=28062.0 ]
-
Updated my two post of links. 8-)
-
----- Copy Block --------
Copies a selected block using a new name specified by the
user, matching scale and rotation. Works with Dynamic Blocks.
CopyBlock by VVA (http://www.cadtutor.net/forum/showthread.php?48840-CopyBlock-COPIES-THE-SELECTED-BLOCK-WITH-A-NEW-NAME)
Copy Block by Lee Mac (http://www.cadtutor.net/forum/showthread.php?43215-Rename-Blocks&p=347515&viewfull=1#post347515)
-
Updated these post: 8-)
http://www.theswamp.org/index.php?topic=24700.msg359343#msg359343
http://www.theswamp.org/index.php?topic=24700.msg375229#msg375229
-
Thanks Alan :)
-
Just added a tutorial to my site on Localising Variables - thought it might be useful for beginners:
http://lee-mac.com/localising.html (http://lee-mac.com/localising.html)
If you guys spot any errors, or indeed room for improvement please do let me know :-)
Regards,
Lee
-
Very nice Lee. You might want to check your spelling. Couple that stood out to me:
localisation => localization
localising => localizing
localised => localized
behaviour => behavior
everytime => every time
...
Tho this (http://en.wikipedia.org/wiki/Language_localisation) seems to refute the above; hmmm.
-
Very nice Lee. You might want to check your spelling. Couple that stood out to me:
localisation => localization
localising => localizing
localised => localized
behaviour => behavior
everytime => every time
...
Tho this (http://en.wikipedia.org/wiki/Language_localisation) seems to refute the above; hmmm.
Pretty much a UK vs US english thing... Me, I'm some weird blend of both, Canadian spelling :-D
behaviour, colour, metre, centre (the middle) and center (the building) but tire and not tyre :lol:
-
Very nice Lee.
Thanks mate :-)
You might want to check your spelling. Couple that stood out to me:
localisation => localization
localising => localizing
localised => localized
behaviour => behavior
everytime => every time
lol, you and your Americanisations :lol:
-
lol, you and your Americanisations :lol:
I'll have you know I'm a proud Canuck.
(http://i54.tinypic.com/2s5xgkh.jpg)
-
Ah, dont worry MP; we dont think any less of you for it.
-
Attribute Subfunctions (http://lee-mac.com/attributefunctions.html)
Dynamic Block Subfunctions (http://lee-mac.com/dynamicblockfunctions.html)
-
Introduction to the VLIDE (http://lee-mac.com/introtovlide.html) :-)
^^ Only the basics to get a beginner started using the VLIDE - as always, if you see something wrong, let me know 8-)
-
That's a nice beginning Lee.
I hope you find time to add to it. 8-)
-
That's a nice beginning Lee.
I hope you find time to add to it. 8-)
Thanks Alan :-)
They do take a while to conceive & create, and at the same time, I don't want to make each tutorial very long as the reader will probably get bored, so its about trying to get a good balance. Also, there are no doubt quite a few typos along the way...
Thanks for your feedback though - I appreciate your opinion :-)
-
DCL List_box Synchronisation example (http://lee-mac.com/listboxsync.html)
-
Prompting with a Default Option (http://lee-mac.com/promptwithdefault.html) :-)
Nothing too complicated, but I've seen it being asked a lot. As always, if you guys see anything wrong with it, let me know :-)
-
Very well put together and informative.
Although I'd used the static technique before I'd not thought of the dynamic default before - Next time a situation like that comes up I'll have to give it a try.
dJE
-
Very well put together and informative.
Thanks Daniel - I'm glad it is comprehensible, its pretty difficult to spot mistakes when writing it yourself :|
Although I'd used the static technique before I'd not thought of the dynamic default before - Next time a situation like that comes up I'll have to give it a try.
Nice one - let me know how you get on! :-)
-
Error Handling Tutorial (http://lee-mac.com/errorhandling.html)
As always, I welcome any feedback you might have, including: suggestions for improvement, questions about the content, or any mistakes that are found.
:-)
-
> ...in my opinion the localisation is a cleaner solution.
explain please. Your comment about being "messier" does not cut it for newbies and i will explain (i hope good enough) in my comment.
Comment: You are teaching. In teaching you strive to eliminate confusion and contradiction at every avenue therefore i recommend NOT using fancy tricks (If i can use two examples: dont use (or <var> (setq <var>)) use (setq <var> (cond...) and your localization of the *error* symbol). I understand that you dont necessarily agree with me but again, teaching is different then practice. A newbie is just going to see the same THING in several places and never really take the time to see why THIS ONE is HERE and THAT ONE is THERE.
-
And so it begins :-D
*<<Insert MP's stick poking emoticon here>>*
-
And so it begins :-D
*<<Insert MP's stick poking emoticon here>>*
Why do you say that? I thought i was very polite and very descriptive. He said feedback is welcome.
-
And so it begins :-D
*<<Insert MP's stick poking emoticon here>>*
(http://www.theswamp.org/screens/alanjt/popcorn.gif)
-
And so it begins :-D
*<<Insert MP's stick poking emoticon here>>*
Why do you say that? I thought i was very polite and very descriptive. He said feedback is welcome.
Definitely - I thank you for your comments and feedback - I do welcome comments to help improve the tutorials; after all, it's my first time at writing a tutorial so there are bound to be things I can improve on.
Regarding your feedback surrounding the use of 'or' in my Prompting with Default tutorial - I would be half inclined to agree, it would be offering fancy alternatives to a user who is only just trying to understand the overall concept. But I do want to offer examples that will try to get a user to think about WHY something can be coded in such a way, if the user isn't prepared to dissect the examples, then they shouldn't really be reading the tutorial in the first place.
Where the *error* localisation is concerned, I would think this is a far simpler concept to grasp than to store the previous handler in a local variable and then reset it. I was considering not including the second method at all, but again, I felt the tutorial should require the user to actually think about what the code is trying to achieve and various ways to go about it.
Lee
-
And so it begins :-D
*<<Insert MP's stick poking emoticon here>>*
Why do you say that? I thought i was very polite and very descriptive. He said feedback is welcome.
It was in jest ... carry on. :wink:
-
I agree with the use of OR and with localising *error*. Both are rational methodology.
... but we have been having this discussion for years now.
Good introductory tute Lee.
Regards to all.
-
`rational methodology' is subjective at best (Remember Cornbread's "Making Brackets" article?). ...but i honestly don't care one way or the other; I was just trying to offer constructive help for helping people.
-
Good introductory tute Lee.
Thanks Kerry, appreciated :-)
-
Loading Programs Automatically (http://lee-mac.com/autoloading.html)
Typos may be lurking... :oops:
-
Quick one: Remembering Dialog Position (http://lee-mac.com/dialogposition.html) (was a commonly asked question)
-
Just stumbled across an AutoLISP book, free download:
http://www.4shared.com/get/ISEYpgpJ/6200_The_AbcS_Of_Autolisp_-_Om.html
Haven't read it yet.
-
Just stumbled across an AutoLISP book, free download:
http://www.4shared.com/get/ISEYpgpJ/6200_The_AbcS_Of_Autolisp_-_Om.html
Haven't read it yet.
Hi,Alan
It seems like that This link was broken now...
-
Looks like it has been removed for most sites.
Perhaps this one will work for you.
http://www.docstoc.com/docs/91142454/ABCs-of-AutoLISP-by-George-Omura-Book
-
Looks like it has been removed for most sites.
Perhaps this one will work for you.
http://www.docstoc.com/docs/91142454/ABCs-of-AutoLISP-by-George-Omura-Book
Here is a better link: http://klobouk.fsv.cvut.cz/~chour/Lisp/Contents.htm (http://klobouk.fsv.cvut.cz/~chour/Lisp/Contents.htm)
-
ssget function reference (http://bit.ly/137NmOJ)
-
ssget function reference
Lee,
This is a great reference.
ymg
-
Does anyone have a good book to recommend for all the vla stuff? (e-book would be nice) I know my way around entget/entmod, but I'm just stumbling with basics on vla, learning as I go when I see good code from others.
Just stumbled across an AutoLISP book, free download:
http://www.4shared.com/get/ISEYpgpJ/6200_The_AbcS_Of_Autolisp_-_Om.html
Haven't read it yet.
-
Does anyone have a good book to recommend for all the vla stuff? (e-book would be nice) I know my way around entget/entmod, but I'm just stumbling with basics on vla, learning as I go when I see good code from others.
Just stumbled across an AutoLISP book, free download:
http://www.4shared.com/get/ISEYpgpJ/6200_The_AbcS_Of_Autolisp_-_Om.html
Haven't read it yet.
Dan,
Have a look here:
AutoCAD expert's Visual LISP
http://en.togores.net/home
http://lispexpert.blogspot.com/
-
< .. >
AutoCAD expert's Visual LISP
http://en.togores.net/home
http://lispexpert.blogspot.com/
Luis, I noticed that Reinaldo has mentioned theSwamp and Owen at OpenDCL in his Acknowledgements.
He's been writing about Lisp for quite a while and does a good job of the subject I think.
-
Dan,
Have a look here:
AutoCAD expert's Visual LISP
http://en.togores.net/home
http://lispexpert.blogspot.com/
great, I'll take a look. Haven't bought a lisp book since Roy Harkow's in '96
-
Dan,
I don't have the book ... I have the 4 Kindle e-books which I believe make up the book.
-
< .. >
AutoCAD expert's Visual LISP
http://en.togores.net/home
http://lispexpert.blogspot.com/
Luis, I noticed that Reinaldo has mentioned theSwamp and Owen at OpenDCL in his Acknowledgements.
He's been writing about Lisp for quite a while and does a good job of the subject I think.
Hi Kerry,
Yes, he is good!
-
The Apostrophe & Quote Function tutorial (http://lee-mac.com/quote.html)
(feedback thread here (http://www.theswamp.org/index.php?topic=45779.0))
-
On building an association list (for use in a simple block counter). (http://bit.ly/1AcN6Un)
-
Not sure if this has been posted in here or not, but when looking for information for xdata, I found this link
http://www.autodesk.com/techpubs/autocad/acadr14/dxf/dxf_group_codes.htm
Which when I look at the viewport entity, it listed the meanings of the xdata group codes. I have never seen them listed before. Even though it is for an old version, the codes (mostly) should still be the same.
-
Like kerry the e-books were only $8 each so bought all 4 for less than 1 paper version.
-
Vector Images for Dialog Boxes
I haven't tried this out myself yet, but I think it's an amazing piece of code. The author didn't get enough recognition and the amazing potential this utility can produce has never really been shown off:
http://www.theswamp.org/index.php?topic=20878.msg391581#msg391581
When first stumbled upon this I was full-on into learning about DCL (my weakest area when working with LISP). Other things prevented me from trying this out.
I personally think Vector images are better than Slide Images if you can use them for a few reasons.
-
Hey guys I'm having a problem with the lisp IRT, i can´t do profiles and elevations from the Bing maps I set the options like i saw in the Javi Lapina's tutorial but AutoCAD say to me a error message: "No es válido en el nivel superior del documento" and the lisp create the cap but don't do anything. Can someone help me? I have video of my problem if someone need it
-
welcome to theswamp GABRI_RSR
let's solve your problem in a dedicated thread -> https://www.theswamp.org/index.php?topic=47908.msg608583#msg608583