Jump to content

All Activity

This stream auto-updates

  1. Today
  2. You never know what might inspire a Tuesday Tip. This time, it came from my favorite streaming music service when it played David Bowie’s 70s hit, Changes. I immediately thought about the awesome AutoCAD command, CHSPACE, or Change Space. It’s certainly worth discussing here, but I felt there wasn’t enough meat there to write a full blog on it. This happens occasionally, and I’ve been known to package them up into an AutoCAD Potpourri post. You can find the latest one here. But how do I play off the song for the blog? Well, the answer came in the lyrics; there are four “Ch’s” before Changes (is it in your head yet?) Fortunately, I know of three other AutoCAD Change commands that start with CH, so here we go! AutoCAD Change Commands #1: Ch – CHSPACE The main entry here gets top billing. Have you ever run into a situation where the text, dimensions, or other objects were drawn in the wrong space? As a Tuesday Tip reader, we’ll assume it was someone else who made the mistake, and you’re tasked with fixing it. This is where CHSPACE comes in. This handy command will move your objects from paper space to model space (or vice versa), all while preserving the scale of the objects. No need to redraw or rescale anything. CHSPACE does it all for you. Plus, it’s an easy workflow. Issue the command (see the image below for the ribbon location, or just type it in). First of all, this only works from a layout tab. You can’t use it in the Model Space tab. If you do make that mistake, it will remind you. You’ll be prompted to select your desired objects. If they are currently in paper space, you’ll be asked to select the viewport to send them into its model space. If the objects are within an activated viewport (model space), CHSPACE will move them into paper space for you. And again, your scaling will be preserved. AutoCAD Change Commands #2: Ch-Ch – CHANGE Boy, this one goes back a long way. There was a time when changing an object’s properties wasn’t as easy as it is now. We had to use the CHANGE command, which does not appear in the ribbon and is only available from the command line. It prompts you to select your objects, then you can select or enter change points (the coordinates of the object – a most inefficient way of doing that), or you can specify Properties from either the command line or your dynamic input. Doing so will present you with a menu (see below) of the available properties you can change. Be aware that if you select something named, like Layer, you’ll have to type it manually, so you’ll probably need to memorize all of your layers and their proper spelling. Riiiight… Okay, I get it. There are many easier ways to accomplish this these days. However, it can come in handy if you’re writing scripts or AutoLISP routines. In fact, I’ve used it in the latter myself. Please note that if you do, you might want to turn off DYNPROMPT first. AutoCAD Change Commands #3: Ch-Ch-Ch – CHPROP The third “Ch” command is a more direct approach to the previous Change command; it’s called CHPROP, which means Change Prop(erties). And again, it’s command line only. It doesn’t have the option to change an object’s coordinates, and it goes right to the Properties option instead. Streamlining your workflow by saving a few clicks? Who doesn’t like that? You’ll get the same menu as you see above, and it works the same way. Well, almost. Notice entry number two in the menu. For some reason, Elevation is not included in the CHPROP menu. I’ll just leave you to ponder that strange omission. But hey, it made for a third “Ch” entry. AutoCAD Change Commands #4: Ch-Ch-Ch-Ch – CHURLS Last but not least is a member of the AutoCAD All-Name team. It is called CHURLS, and it stands for Change URL’s. And check this out, you can find it in the menu. It’s in the last panel of the Express Tools tab. Yes, it’s an Express Tool, but like a lot of ET’s it can come in quite handy. In today’s world, it’s not uncommon to attach hyperlinks to certain objects. And, like most things in AutoCAD, they sometimes need to be changed or edited. Granted, you could use the HYPERLINK command, but CHURLS acts as a shortcut for you. After launching the command, select your object with the attached URL. Hit enter, and you’ll get the dialog as shown below, showing the current URL, already highlighted. I suggest already having the new URL on your clipboard so you can just paste it over the highlighted old one. That’s All Folks I’d like to thank the late David Bowie for inspiring this post. I was also lucky to know that AutoCAD has these four “Change” commands. Granted, a couple of them aren’t too useful in today’s world, but two of them are. So arm yourself with these CH-powered changes, and make your drawings Hunky Dory** again. (** The name of the 1971 album that Changes was on.) You’ll also be glad to know that no AutoCAD command begins with “HUN.“ More Tuesday Tips Check out our whole Tuesday Tips series for ideas on how to make AutoCAD work for you. The post Ch-Ch-Ch-Ch-Changes – AutoCAD Change Commands: Tuesday Tips With Frank appeared first on AutoCAD Blog. View the full article
  3. pkenewell

    Set Pline Z value by selecting text

    @darshjalal Nice work! Your added Automatic mode, and the code to strip numbers out of the text is over and above!
  4. pkenewell

    Set Pline Z value by selecting text

    @PaulyPHI Here is a quick walk-though: This uses Visual LISP to pull the text string from the selected object and convert it to a real number. See the added comments below. (if (and ;; Logical AND = All conditions must be met. ;; 1) an object must be selected. (setq es (entsel "\nSelect Text Object: ")) ;; 2) The selected object must have a text string property, i.e. TEXT, MTEXT, ATTRIBUTE, MLEADER, etc. (vlax-property-available-p (vlax-ename->vla-object (car es)) 'TextString) ;; 3) Retrieve the textsting value if the above conditions are met. (setq newZ (vla-get-textstring (vlax-ename->vla-object (car es)))) ;; 4) The textstring value must evaluate to greater than 0 when converted to a real number. This only works if the text is numerical. (> (setq newZ (atof newZ)) 0.0) ) ;; if all conditions are met, then continue to the (progn) block that performs the changes.
  5. Welcome. To make a cleaner look I would make a master Chart (or multiple BH SW MW or by area with a box around them) with all the relative call outs. this would allow a larger view of the area. eliminate the use/need of leaders that aren't really doing anything but cluttering the drawing. -edit Then updating would be adding borehole location and adding to the chart.
  6. I agree 100% I've been on several of the "free STL" sites and that stuff is nice, especially for new people, but I like the satisfaction of knowing I built that and you're definitely right with some of that stuff needing tweaked. I've run into that a few times. I have a Flashforge AD5X and I'm still learning to use the software. If I remember correctly, I just used the STLOUT command to export the file from AutoCAD, then I open Flashforge and click/drag it from my desktop onto my slicer
  7. Like I stated, I still like leaning on AutoCAD for making things for the 3D printer, but also learning Blender and playing with TinkerCAD, etc. The main goal is getting nice 3D Prints, I can tell you from experience, the stuff you get from online, supposedly ready to print, sometimes needs a little tweaking or outright re-modeled. I also have been learning to work in the 3D printer software, in my case, Bambu Studio, it's a lot easier cleaning up, scaling, adding text, etc. right before slicing. Like anyone that uses tools to do a job, learning what tools to use, how to use them, when to use what, etc. is usually the best way to go forward, it's a learning process. By all means start with AutoCAD and improve, we are here to help. Do you know how to export to STL and import that into your slicer?
  8. I messed around a little with tinker cad but figured since I already had some knowledge of AutoCAD that it would probably be more useful to stick with AutoCAD. as I mentioned above, I just started learning AutoCAD in November of last year through Penn Foster (don't hold that against me. I'm basically teaching myself at this point with the help of you fellas).
  9. Well, I just started learning AutoCAD in November of last year through Penn Foster (don't hold that against me. I'm basically teaching myself at this point with the help of you fellas). I didn't realize you could set the text height BEFORE you press pull. I just started the press/pull then typed the number I want. As far as architectural, I'll be honest, that's all we used when I was in college so that's all I really know
  10. Did you try doing these in TinkerCAD? Not sure why your have issues with exploding the text in AutoCAD, I'll look when I get back to work tomorrow. Even as you describe it "When I tried txtexp it shot the text way off to the left and made it huge", you just have to move it and scale it. What you really want to do is learn to do this with the 3D Printer tools. https://www.youtube.com/watch?v=9McpK4nNf2k
  11. Thank you, but I am looking for something more general (I don’t think a LISP will solve the problem). I remember seeing something on YouTube where we can control layer properties without opening the drawings. I uploaded the picture for this specific XREF (x-A2-landscape). I don’t want to change these properties for this xref ....... Your LISP is too specific because, on some floors, more or fewer architectural XREFs are attached.
  12. PaulyPHI

    Set Pline Z value by selecting text

    Thank you very much sir, works perfect. I have compared the modified text file to the original and my brain just melted.... i can see some text that makes sense but the rest is just gobldee goop to me.... I'm just not programmed to understand it... Thank you once again.
  13. Version 1.0.9637

    4 downloads

    EGBoundary is a CAD plugin designed to generate clean outer boundaries from complex 2D drawings. It is intended for situations where standard boundary creation methods may struggle due to: small gaps overlapping geometry dense drawings complex spline/arc combinations EGBoundary is designed to simplify boundary creation workflows and reduce the amount of manual cleanup and time often required in complex drawings. Workflow Overview: Type EGBOUNDARY (Case Insensitive) on command line. Select the drawing geometry Configure tolerance/output settings if required by typing ' S ' on command line Press enter to generate the outer boundary polyline Demonstration Video: CADTEGB.mp4 Key Features: Generates clean closed outer boundaries from selected geometry. Automatic and manual tolerance handling. Supports multiple outer boundary detection from a single selection. Custom output layer and color options. Custom linetype options. Works with large and complex drawings containing many entities. Supports lines, arcs, splines, ellipses, polylines, and blocks. Supports Wipeout generation. Compatibility: AutoCAD BricsCAD GstarCAD ZWCAD Official Website: For more information, updates, documentation, or EGBoundary for other CAD platforms, please visit: Official Website For EGBOUNDARY For any queries related to EGBoundary or CAD customization, feel free to reach out to us at: contact@engenext.com or aniruddha.raste@engenext.com Would really appreciate feedback, suggestions, or difficult test cases from the community.
  14. Don't know what is going on about Textexp but here is a favour for you. I just made A-Z 0-9 exploded. Convert to correct plines then can extrude into a solid say 1 unit high, will need to check the 36 shapes. The sample dwg really needs more thought say text size =1 and height equal say 0.1. It took about 10 minutes to make these. With a bit of practice much faster and use other fonts. You can use presspull to change height. BUT SET TEXT HEIGHT CORRECT BEFORE EXTRUDE. Oh yeah why do you have units set to Architectural when your talking mm ? new block.dwg
  15. Becaus I don't want the drawing to be denser especially when trying calculate the earthwork for a raft with huge number of drops That is why I made this code.
  16. So give this a try. Just load the xrefs in a dwg then run this code will reset all the xref layers. Note will do all current XREFS. Just do it as part of adding the XREFS to current dwg. ; https://www.cadtutor.net/forum/topic/99138-layer-properties/ ; Set all xref colors in a dwg ; By AlanH May 2026 (defun c:setxrefcol ( / lst blk lays xname tc) (setq lst '()) (setq blk (tblnext "BLOCK" T)) (while blk (if (member (logand (cdr (assoc 70 blk)) 4) '(4)) ; bit‑4 = xref (setq lst (cons (cdr (assoc 2 blk)) lst)) ) (setq blk (tblnext "BLOCK")) ) (reverse lst) (setq lays (vla-get-layers (vla-get-activedocument (vlax-get-acad-object)))) (repeat (setq x (length lst)) (setq xname (nth (setq x (1- x)) lst)) (vlax-for lay lays (setq lname (vlax-get lay 'name)) (if (wcmatch lname (strcat "*" lname "*")) (progn (setq tc (vla-GetInterfaceObject (vlax-get-acad-object) "AutoCAD.AcCmColor.20")) (vla-SetRGB tc 180 180 180) (vla-put-TrueColor lay tc) ) ) ) ) (princ) ) (c:setxrefcol) There is no need to try and do it as a after task.
  17. When I tried txtexp it shot the text way off to the left and made it huge
  18. Just to be clear, I don't mean that the way you did it was wrong. I mean, what can I change earlier in the project to make this part easier? I reread what I wrote and it definitely didn't sound like I meant it to
  19. So this is something I want to set up so that I can do multiples and just change the name and number. What's the easiest way to go about this? Doing what you did, seems like there's gotta be an easier, more efficient way from the begginning...lol
  20. Ok I used Txtexp on "MACEY", then went to a 3d view so could see what was going on VPOINT -1,-1,-1. You have to check that all the objects that appear are plines I had to join the little "A" triangle. Ok extruded the base 1.5 Extruded the circles 2.5, then unionid both, to base, subtracted the inner circle from the new solid. Extruded the ""M" 4.5 then did a union again. Extruded the two parts of the "A" unioned together with base then subtracted the inner triangle, You can see the progress. What you want is not a single step but rather multiple steps, lastly can export the STL file. Once you get the hang of extruding, subtrcat and union you can do multiple objects at one time. This is a bit rough as a solid and can be done better, by moving the text to a Z matching base height before you start.
  21. Yesterday
  22. Why not just use the inbuilt "FEATUREELEVSFROMSURF "
  23. Sorry it took so long to get back. I never got notifications that there were any replies. OK, so maybe I'm missing something here and ChatGPT and Gemini are of zero help so far. I have this drawing. I'm trying to make a 3d printed ATV number plate. Extrude absolutely won't work for me, not sure why. I was able to use the "presspull" command to punch out the holes (which I don't believe is the correct way) and I can raise the plate up the 3mm I want and the support around the holes the additional 1mm I want but it absolutely won't do anything with the text. I tried MTEXT and single line text. Neither works My printer is a FlashForge AD5X Mark Macey Rear Plate.dwg
  24. Hi everyone, I’m working on a complex borehole location drawing in AutoCAD with many boreholes and corresponding data tables. When a new borehole is added, I would like to have an AutoLISP routine that can automatically place a new table and leader for that borehole without overlapping the existing tables. The layout concept is roughly like the attached image: Each borehole is a point/block near the center of the drawing. Each borehole has a data table placed outside the central cluster. A leader (polyline or multileader) connects the borehole to its table, using straight segments and preferably angles that are multiples of 60 degrees (or similar fixed angles). When space on one side is not available, the routine should try other directions until it finds a free spot between the existing tables. What I would like the routine to do is: Take the new borehole (block or point) as input. Use a standard table block (or AutoCAD table) with a known size and insertion point. Search along several radial directions (0°, 60°, 120°, 180°, 240°, 300° or similar) at a given distance to find a position where the table’s bounding box does not overlap existing tables or a central “no‑go” area. Insert the new table at the first (or best) free position and draw the leader from the borehole to the table with clean, orthogonal/60° segments. I have some AutoLISP experience and I’m thinking about using: Block/table bounding boxes (vla-getBoundingBox) for collision checks. Simple rectangle overlap tests to avoid collisions. Polar coordinates for candidate positions at fixed angles and distances. Before I start building this “placement engine” from scratch, I’d really like your feedback: Has anyone already written something similar (automatic table/label placement around a central cluster, avoiding overlaps)? From your experience, is this approach (block + attributes + leader + bounding‑box collision tests) reasonable, or is there a better pattern? Any tips on robust overlap detection or examples of similar LISP routines you recommend looking at? Would you implement this with standard tables, block attributes, or something else for the borehole information ? Any ideas, sample code, or links to existing routines would be greatly appreciated. Thanks in advance for your time and suggestions! ** Find attached plz 11.pdf
  25. Hi Again for example, here I have 4 xref attached, I need to change the layers properties (make color 180,180,180 and line weight =default) for these xrefs without opening all drawings. Thank you for your time
  26. darshjalal

    Set Pline Z value by selecting text

    PETA-INSERT ELEVATIONS FROM TEXTS INSIDE THE CLOSED OR OPEN POLYINE.LSP Try this one too
  1. Load more activity
×
×
  • Create New...