Jump to content

Leaderboard

  1. GLAVCVS

    GLAVCVS

    Community Member


    • Points

      42

    • Posts

      133


  2. BIGAL

    BIGAL

    Trusted Member


    • Points

      27

    • Posts

      19,159


  3. pkenewell

    pkenewell

    Community Member


    • Points

      13

    • Posts

      679


  4. SLW210

    SLW210

    Moderator


    • Points

      12

    • Posts

      10,859


Popular Content

Showing content with the highest reputation since 01/04/2025 in all areas

  1. @pondpepo9 I can't tell you if what you are looking for exists unless you can be more specific on what you want. Ideally, post a DWG with the Before and After and explain in more detail what the workflow should be. Then if someone has something they are willing to share, write, or alter - we can let you know. PLEASE NOTE: This is not a forum just to order up free programs. We prefer...
    3 points
  2. 2012年的发的文章,时隔13年居然依旧是互联网上延曲线填充唯一的解决方案,谢谢!伟大无需多言。 现在已经是2025年了,应该不用我翻译成英文回帖子了 表达一下感谢
    3 points
  3. Try changing this line : (setq gap (getvar "dimtxt")) To this line : (setq gap (* 2.0 (getvar "dimtxt")))
    2 points
  4. I am on holidays back tomorrow will have a look at it
    2 points
  5. Here is the little modification that was missing: you already have the functionality But you should simplify the code a bit. One test you could do is to obtain the triangles using minimum circles to compare the differences. Do your tests (defun SX:M3DFACEF3DPL (/ enameOne enameSecond old_layer layerNameBase dataOne ptOne ptlistOne dataSecond ptSecond ptlistSecond len i j pt1 pt2 ...
    2 points
  6. I'm put it because i didn't know what all is in the drawing (for e.g. multiple "blll" blocks in different layers, and to avoid selecting those which are not on polylines...), but after all, it is unnecessary for the selection filter. Thank you for suggestion . P.S. Your code was much better than my, concise and with a lot good skills. Best regards.
    2 points
  7. Is the (arxload "acetutil.arx") working in your image ARXLOAD failed, you may need a full path use "\\" between directories. Just find acetutil.arx with explorer. Look Program files\Autodesk. Accoreconsole may not support acet functions. It does have limitations. If you can not get past the load will need to use maybe OBDX or an old fashioned script. Make sure with all testing...
    2 points
  8. Thanks everyone for the replies I understand that importing external DWG files with Entmake is very difficult, maybe not even possible. Many people (like you @pkenewell, thanks) have suggested me vla-InsertBlock, which I tried and it works. I will use that one. Thanks again Riccardo Ferrari
    2 points
  9. There are various reasons for using associative dimensions. Previously the DimAssoc setting only had a 0 or 1 value. This meant all dims were either created as "exploded" or as one unit. Very few people would even consider using DimAssoc=0 as the dimensions are then next to useless. With DimAssoc=1 the dimensions could be stretched and the value would adjust...
    1 point
  10. Glad to here its working, Just having a layold.laynew csv file is probably the simplest way. Can loop through the file very quick can use Excel to make csv file.
    1 point
  11. Nice! This should speed up your process considerably!
    1 point
  12. @Engineer_Yasser Some of your linework is not drawn as tight as your first example. Look at the start point of this polyline in relation to your block insertion point. To 'fix' my code up the variable 'fz' to something like 2. In the scenario where the block is located on an end does it still pick a route since they are both on the same side? I'm curious, what are these drawings used for? ...
    1 point
  13. Thanks all for your suggestions, and yes i have been testing on a dummy directory . I've decided to abandon the laytrans route, instead will use a script that renames and updates any other parts of the layer instead - as I'm typing this it is running in the background updating 100files as a test, I think i was trying to be too clever before and when i only have very basic knowledge of...
    1 point
  14. You're welcome. I'm glad it helped.
    1 point
  15. The error occured because the "layer name" of the "blll" block was changed into "HH Block" (old "layer name" was "BLK"), that is the reason. ;; OLD (setq ss (ssget "X" '((0 . "INSERT") (8 . "BLK") (2 . "blll"))) ;; NEW (setq ss (ssget "X" '((0 . "INSERT") (8 . "HH Block") (2 . "blll"))) Try this modified code: ; ************************************************************************ ...
    1 point
  16. @Wilkibob Normally you should be able to run command line lisp statements from a script file, but I don't know when it comes to BATCH (.bat) file. See if adding the code into the lisp file and loading it works? If not - then I don't think your going to be able to use a BATCH file anyway. You can always use a SCRIPT (.scr) file with a 2nd instance of AutoCAD open in the background. Add to...
    1 point
  17. Hi @Engineer_Yasser, I agree with @ronjonp, i'v tried many option to choose the true "right" side from to block (which I also don't know where it is), but, after all I made something (which "I hope") that will help you for this situation (or even help to someone to improve this code or even made a new one). Try the following: ...
    1 point
  18. Well that's pretty easy to do. 'Right' is not orientation but one or the other. The code below will select the side with the smallest cumulative length ( because I'm a dork ). Enjoy (defun c:foo (/ a b c fz bks p s x) ;; RJP » 2025-01-08 (cond ((and (setq s (ssget "_X" '((0 . "INSERT") (2 . "blll")))) (setq bks (mapcar 'cadr (ssnamex s))) (setq s (ssget "_X" '((0 . "LWPOLYLINE") (8 . "Poly")))) (setq s...
    1 point
  19. You could try my post, October 5th linked below. It might fail completely. This one works by looping through all the files in a directory, open each one and runs the commands in order. Commands might be AutoCAD commands, might be LISP routines - add them in just as you would using the command line (so for example, no need to put (Command "Line" 0,0 10,0), you can just do...
    1 point
  20. yeah, got it already. anyways, you had suggested a revised code a bit shorter and it worked for me. thanks!
    1 point
  21. @Wilkibob you cannot run "acet-laytrans" like an AutoCAD command. It has to be run directly as a function. Try changing: (command ("acet-laytrans" "c:/users/joe.bloggs/Downloads/Steelwork.dws" 0)) to just: (acet-laytrans "c:/users/joe.bloggs/Downloads/Steelwork.dws" 0) NOTE - you can run this directly from the script with no need to define it in a...
    1 point
  22. @NanGlase Not talking about your code, but how you post code into this forum. See Nikon's example above.
    1 point
  23. Step 1 Step 2 It will look like this: Paste your text from notepad++
    1 point
  24. Here's a video exploring one of the rarest Autodesk programs. Enjoy!
    1 point
  25. @smitaranjan The "OD:New_strand > Measured" property must be from a custom application or vertical. It does not show up in my properties when opening the drawing in vanilla AutoCAD, So personally I would not know how to extract it without knowing what created it. @dexus Note - the property shown on the OP's drawing is a custom one, which seems to be a rounded representation...
    1 point
  26. Select the <> in the editor and place your code in the code box that pops up.
    1 point
  27. I did the code tags for you, please use them in the future. (just select the <> in the editor toolbar)
    1 point
  28. THANK YOU. ITS WORKING PROPERLY
    1 point
  29. @NanGlase I'm afraid you don't have much control over how the command line wraps. I suggest you just make your prompts a bit shorter: (strcat "\nSelect a point (or Enter to finish): " "North: " (rtos (cadr (last points)) 2 3) "East: " (rtos (car (last points)) 2 3)) P.S. Please edit your original post and put your code in code tags. i.e. select the code and cut it to the clipboard, then use the...
    1 point
  30. @smitaranjan OK this is a bit more involved for the layout select - Give this a try: I'm using Lee Mac's List Box V1.2 for the layout select dialog: https://www.lee-mac.com/listbox.html (defun c:LLINK (/ ch e ll ly ss) (vl-load-com) (initget "Select All") (if (not (setq ch (getkword "\nSelect a Single Layout or All [Select/All] <Select>: ")))(setq ch "Select")) (cond ((= ch "Select") (setq ll...
    1 point
  31. One day I should really make up a LISP to add to the downloads section the number of times this gets asked!
    1 point
  32. Please place code in code tags! (<> in the editor toolbar)
    1 point
  33. Set DIMZIN to 0 before using rtos and then restore its original value.
    1 point
  34. alternative : from master Lee
    1 point
  35. @Riccardo_Ferrari to insert a drawing from an external file, you have to use either (command "._Insert ...) or use (vla-InsertBlock) https://help.autodesk.com/view/OARX/2025/ESP/?guid=GUID-17F86FDD-B7FC-4F43-9F16-B4958F73A66D
    1 point
  36. Try https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-block-with-quot-entmake-quot-on-new-drawings/td-p/9097551
    1 point
  37. @BHenry85 Give this version a try for nested values. ;; https://www.cadtutor.net/forum/topic/75699-remove-duplicates-in-list/page/2/#findComment-660223 ;; Detail Extractor v2.5.lsp ;; Write list of details used in model/lot to csv file in location defined by user ;; Removes duplicates from list and only lists unique values ;; Prompts user to open file once complete or not ...
    1 point
  38. To remove those pesky legacy color tags in forum code I use this regex in Notepad++ : \[.*?\] The "Find what" box should contain \[.*?\] The "Replace with" box should be kept empty. The "Wrap around" option should be selected The "Search Mode" should be set to "Regular Expression". Hitting the "Replace All" button will remove everything within Square Brackets including the brackets.
    1 point
  39. Maybe start with a clean DWT way simpler than wading through hundreds of variables.
    1 point
  40. I don't know ArchiCad, are the walls just normal lines? In which case I would be looking at layers (on /off), scaling for dashed lines etc, or colours that make the lines vanish. I assume that they don't show on the screen and in plotting? Are the line types supported in LT2024, if you can convert them to continuous lines on layer 0 to see if they show up then? If the lines show up OK...
    1 point
  41. Country by Country - Mainly FREE Events. http://www.autodesk.co.uk/adsk/servlet/event/search?siteID=452932&id=6664037 UK Based FREE Events http://www.imass-ids.co.uk/news/EventsCalendar.php See you at the Glasgow IV 2008 launch in June. Nick
    1 point
  42. Hi Matthew If you have a 2D plan of the site then 1- make sure all areas are closed plines and not lines - Once imported in 3dsMax you can extrude the closed shapes into 3D form and build your model 2- make sure you set the scale correct BEFORE importing your drawing into Max 3- In AutoCAD move your drawing to 0,0,0 and delete what is not needed - remove lines/objects far away...
    1 point
  43. Here is some sample code (no error checking) that will set the plot style in the current layout in the current drawing. (setq *acad-object* (vlax-get-acad-object)) (setq *active-document* (vla-get-activedocument *acad-object*)) (setq *active-layout* (vla-get-activelayout *active-document*)) (vla-put-stylesheet *active-layout* "mycustom.ctb")
    1 point
  44. You're welcome! This is actually due to a setting in Windows (hiding default extensions). To turn this off, open Control Panel, then the Folder Options item. Under its View tab scroll down to "Hide extensions for known file types" and turn that option off (un-check). It should now show the txt extensions as well and allow you to rename them properly. There are various ways you can...
    1 point
  45. You can also enable 'Snaps' and set your Snap option to 'Grid Points'. Then set your 'Grid Dimensions' to whatever you need for your project. Make sure the Grid is displayed in your viewport and now you can draw straight lines which snap to the points on your grid.
    1 point
  46. Hi,GP,Thanks for your wonderful routine. I have some improvement for you code,It fix some BUG for hatch line is too long. AlignH.lsp
    1 point
  47. I'm trying to really get hold of a way to edit object's scales and / or Delete scales from the DWG programmatically. The command-line version is just too slow! I had something like this previously, but as mentioned caused crashes because deleting the scale (if it's already assigned) would cause errors in the DWG. See this thread on AUGI: http://forums.augi.com/showthread.php?t=74324 ...
    1 point
  48. The main reason i used the hatch command is to get an defined Area. For instance if i have 17 hatched squares of different shapes and sizes and i want a total area. i can either 1. hatch every square on the one hatch command hence giving me one hatch, ie this would give me one snap point to check all 17 squares. 2. Hatch every 17 square individually and have 17 snap points. However...
    1 point
  49. Student Software Q: I'm a student, can I get AutoCAD and other Autodesk software for free? A: Yes, you can. You can download free full-working versions of Autodesk software from the Autodesk Student Community site provided you are a registered student at a recognised college or university. In order to prove you are a registered student, you will need to sign up at the Student...
    1 point
×
×
  • Create New...