All Activity
- Past hour
-
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.
-
Set Pline Z value by selecting text
PaulyPHI replied to PaulyPHI's topic in AutoLISP, Visual LISP & DCL
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. - Today
-
Tutor-desk joined the community
-
ybr joined the community
-
Aniruddha started following EGBoundary – Boundary Generation Tool for Complex 2D CAD Drawings.
-
EGBoundary – Boundary Generation Tool for Complex 2D CAD Drawings.
Aniruddha posted a file in Programs and Scripts
Version 1.0.9637
3 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. -
Having some issues converting to 3d
BIGAL replied to TimC's topic in AutoCAD 3D Modelling & Rendering
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 -
LISP CODE INSERTING ELEVATION FROM CIVIL 3D SURFACE TO 3DPOLYLINES
darshjalal replied to darshjalal's topic in AutoLISP, Visual LISP & DCL
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. -
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.
-
Having some issues converting to 3d
TimC replied to TimC's topic in AutoCAD 3D Modelling & Rendering
When I tried txtexp it shot the text way off to the left and made it huge -
Having some issues converting to 3d
TimC replied to TimC's topic in AutoCAD 3D Modelling & Rendering
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 -
Having some issues converting to 3d
TimC replied to TimC's topic in AutoCAD 3D Modelling & Rendering
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 -
Having some issues converting to 3d
BIGAL replied to TimC's topic in AutoCAD 3D Modelling & Rendering
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. - Yesterday
-
LISP CODE INSERTING ELEVATION FROM CIVIL 3D SURFACE TO 3DPOLYLINES
BIGAL replied to darshjalal's topic in AutoLISP, Visual LISP & DCL
Why not just use the inbuilt "FEATUREELEVSFROMSURF " -
Having some issues converting to 3d
TimC replied to TimC's topic in AutoCAD 3D Modelling & Rendering
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 -
MSHR joined the community
-
darshjalal started following Set Pline Z value by selecting text and LISP CODE INSERTING ELEVATION FROM CIVIL 3D SURFACE TO 3DPOLYLINES
-
LISP CODE INSERTING ELEVATION FROM CIVIL 3D SURFACE TO 3DPOLYLINES
darshjalal posted a topic in AutoLISP, Visual LISP & DCL
3PS.LSP -
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
-
jalalmahmoud joined the community
-
Set Pline Z value by selecting text
darshjalal replied to PaulyPHI's topic in AutoLISP, Visual LISP & DCL
PETA-INSERT ELEVATIONS FROM TEXTS INSIDE THE CLOSED OR OPEN POLYINE.LSP Try this one too - Last week
-
Nymex joined the community
-
aepsmith89 joined the community
-
@ababs "actually we attach the architectural drawings as xref " so why not do the changes then as part of an custom attach xref lisp. Again need an idea of what the layer names are and the relevant changes. How do you propose to identify the layers ? By wildcards "wall*" etc Were I worked we redid the color of layers by wildcards about 7 of them. So maybe 50 layers.
-
kedungwunguai joined the community
-
hello actually we attach the architectural drawings as xref after finishing our mechanical plans we have to publish so we got to change xref's layers properties excpt for title block(which is also xref)
-
A routine automates the creation of 3D Polylines, level labels, and slope percentages for infrastructure projects (SUPPORTS FEATURE LINES TOO)
darshjalal replied to darshjalal's topic in AutoLISP, Visual LISP & DCL
Updating version of the previous code> Regards. 3DSLOPE-automates the creation of 3D Polylines, level labels, and slope percentages -R2.LSP -
You can use possibly OBDX which can edit a dwg without opening it. Using a script is much simpler as it will open a dwg make the edits then close it. Should be reasonably fast. The obvious first step is what are you trying to change ? You need say a text file with the new settings, layer name, color, linetype on/off and so on. So if I understand correct another way, the sequence may be open a dwg add the xref do the layer changes save and close do next dwg. So what I am asking here does original dwg always have the xref pre loaded. Need sample dwg, txt and a xref. Can be blank just need layers,
-
Civil drafting school project help
ReMark replied to Autocadstudent's topic in Student Project Questions
Definition: "Stationing in surveying is a linear measurement system used to pinpoint exact locations along a project's baseline or centerline. One full station equals 100 feet." It starts as 0+00 (0 feet) which in this case would be the center of the cul-de-sac and stops at the end of the project which would be station 3+78.90 (378.97 feet). In between there is station 0+50 for the point-of-curvature (PC), station 1+93.87 for the point of tangency (PT) along with stations 1+00, 2+00, 3+00 and any others deemed necessary to call out. -
pkenewell started following Set Pline Z value by selecting text
-
Set Pline Z value by selecting text
pkenewell replied to PaulyPHI's topic in AutoLISP, Visual LISP & DCL
@PaulyPHI Give this a try.SetPlineZ_Updated.lsp -
Civil drafting school project help
EmeraldSynth replied to Autocadstudent's topic in Student Project Questions
I've seen that photo in this chat. I'm just confused about how to even start it . What is it referring to when it says for example "Station 2+20"? -
Hi, I have been racking my brains to amend this lisp to do what i want and have failed.... so i ask you the gods of lisp for some help. I have acquired a lisp file via google AI that will set the elevation (z axis) of a poly line, easier to just select the pline and type in the elevation i hear you cry.... But my cunning plan was to amend the elevation of said pline by selecting the pline then select the text/mtext next to it..... I thought i could add some command to do this by looking at another lisp i have that does a similar thing, but i am a numpty and have given up.... I know there are many wise men out there that could just type some lines with their eyes shut and solve my problem... Obviously i would be greatly indebted to such persons and wish boundless fortune upon them granting wishes galore if i could... Also I just want an easy life as i approach retirement and thinking for gets in the way of thinking for myself..... Begging you nicely.. Paul SetPlineZ.lsp
-
Civil drafting school project help
ReMark replied to Autocadstudent's topic in Student Project Questions
-
ababs started following LAYER PROPERTIES
-
Hi everyone, I’m working on a project with multiple AutoCAD drawings (building floors), and each floor contains several XREF layers. I want to know if there is a way or tool to change XREF layer properties (such as color, linetype, lineweight, etc.) for multiple drawings at once without opening each file individually. For example: I have many floor plans. Each drawing has the same XREF attached. I want to directly modify the XREF layer overrides across all drawings in bulk. Is there a built-in AutoCAD feature, script, LISP, Sheet Set method, Layer States Manager workflow, or Autodesk tool that can do this automatically?
