Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 11/20/2026 in Posts

  1. Am sure that is new from when I was recording macros - might be time to revisit action recorder then
    2 points
  2. @Dadgad "30 or 40 drawings open at the same time" here is a freebie for you. It will display the dwg names for you pick which one to Goto. Multi radio buttons.lspListbox-AH.lsp Gotodwg.lsp
    2 points
  3. Does anybody else use the ACTION RECORDER? It may well be, the most underappreciated functionality in AutoCad. As one who does not write Lisp, I find it quite intuitive, and incredibly helpful "on the fly". Essentially a Key Stroke Recorder, I use it all the time, and it saves me hours on a busy day, with highly repetitive tasks which need to be run on many hundreds of drawings in succession. Another great 3D Modeling command is PRESSPULL, it is much more powerful, quicker and more useful than EXTRUDE. I first learned about it in this video tutorial https://www.cadtutor.net/tutorials/autocad/extrude-and-press-pull/ . 3D Align is another great command, for when things go all off axis, and need to be realigned.
    2 points
  4. As I clean up a drawing I like to use DIMEDIT, mostly the Home option to clean them up. I am thinking of trying to figure out a foolproof method to automate that with my other clean-up tools, though some dimensions don't act the way I want, particularly dimensions for small measurements that are forced outside the extension lines or if they have a leader line. Manual is probably fast enough for now though.
    1 point
  5. In simple terms two ways to do it a field in the block text or just read the layer and write that into the attribute. Using the field option has the advantage of if you change the hatch layer the attribute updates. the disadvantage is that you can not save the ID of the object in a Block it has to be updated each time you say make the Mleader. Yes can be done. Maybe later today will do something, limited time at moment.
    1 point
  6. Action Recorder lead me to LISPs, I was annoyed with having to re-record each time I didn't quit get it right and couldn't edit the recording. Good tool though
    1 point
  7. import traceback import wx from pyrx import Ap class TestUIDialog(wx.Dialog): def __init__(self, parent=None): style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER super().__init__( parent, title="PyRx wxPython Control Check", size=(340, 240), style=style, name="PyRxTestUIDialog", ) # Create a panel, a sizer and some controls panel = wx.Panel(self) sizer = wx.BoxSizer(wx.VERTICAL) self.cb = wx.CheckBox(panel, label="Modern Visual Styles Active") self.cb.SetValue(True) self.combo = wx.ComboBox( panel, choices=["Option A", "Option B"], value="Option A", style=wx.CB_READONLY, ) # Bind to an event self.combo.Bind(wx.EVT_COMBOBOX, self.on_combo_select) self.gauge = wx.Gauge(panel, range=100) self.gauge.SetValue(70) self.txt = wx.TextCtrl(panel, value="Text input test") self.btn = wx.Button(panel, wx.ID_OK, label="Close Test") # add the controls to the sizer for ctrl in (self.cb, self.combo, self.gauge, self.txt, self.btn): sizer.Add(ctrl, 0, wx.ALL | wx.EXPAND, 8) # add the sizer to the panel panel.SetSizer(sizer) def on_combo_select(self, event): print("Selected:", self.combo.GetValue()) event.Skip() @Ap.Command() def testui(): try: with TestUIDialog() as dlg: res = Ap.Application.showModalDialog(dlg) print(res) except Exception as err: traceback.print_exception(err)
    1 point
  8. Agreed. Redrawing from known dimensions is often the most reliable approach, especially when the scan itself is distorted. The challenge is when only a few dimensions are available and the rest of the geometry has to be reconstructed.
    1 point
  9. @AONE_LED seems to be dredging all posts about lighting. Maybe put all his responses in one post, with a link and an answer, under the heading Lighting appliances and CAD. Maybe its @indiancad brother.
    1 point
  10. I have used Raster Tools with some great success before. For badly distorted drawings, I create blocks and scale in both directions, no matter the method used to create the linework. If it is a critical part that needs to be drawn very accurate or just a terrible plot, scan, etc., I just look at the drawing and totally redraw from scratch using the indicated dimensions or even better for small objects I just measure the object if available.
    1 point
  11. Hopefully there are dimensions noted on the scan. That's what I would typically use to manually redraw it accurately in CAD from scratch.
    1 point
  12. I forgot about this. Att2Text.lsp converts attributes in a block to text outside the block, removes the attribute from the block and Att2TxtBlk.lsp converts attributes in a block to text outside the block, leaves the attribute in the block. Att2Text.lsp Att2TxtBlk.lsp
    1 point
  13. Technically that's an Express Tool, there used to be several other similar LISPs around as well, there might be one that can do as you wish. In the meantime, just type Multiple, when prompted for the command enter MOCORO, it will stay active after you exit.
    1 point
  14. @Dadgad Actually I even went as far as creating a lisp command so I can make the selections to dwgunits within a dcl gui instead of looking at the dull command line interface. https://marketplace.autodesk.com/apps/5190d5ec-0b6a-4b70-b089-2753abcb8e3a?priceId=bfbb3227-aa55-4923-b9e6-7fe3db0a0a5b
    1 point
  15. One option "they can make certain tasks much faster" is to look at drawing objects via a menu selection. A simple example is choose Text25 the text command is called and the text style is preset as well as the correct layer. We had a client think petrol, upgrading around 250 buildings, each set of plans had to be identical in terms of layers and objects, so a big menu was created and users drew by that menu standard. In this image all objects are on correct layers no user swapping layers, you draw Objects like a Wall or a Window, For the walls 4 layers and the layer names were set by the end user, a different discussion on how to do that.
    1 point
  16. Try this for breakages: ; Self-Intersection Test by Lee McDonnell ~ 19.12.09 (defun SelfInt (obj / vlax-list->3D-point obj) (vl-load-com) (defun vlax-list->3D-point (lst) (if lst (cons (list (car lst) (cadr lst) (caddr lst)) (vlax-list->3D-point (cdddr lst))))) (or (eq 'VLA-OBJECT (type obj)) (setq obj (vlax-ename->vla-object obj))) (vlax-list->3D-point (vlax-invoke obj 'IntersectWith obj acExtendNone))) (defun c:test (/ *error* vl ov ent obj uflag doc) (vl-load-com) (defun *error* (msg) (and ov (mapcar (function setvar) vl ov)) (and uflag (vla-EndUndomark doc)) (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*") (princ (strcat "\n** Error: " msg " **"))) (princ)) (setq vl '("CMDECHO" "OSMODE") ov (mapcar (function getvar) vl)) (mapcar (function setvar) vl '(0 0)) (while (progn (setq ent (car (entsel "\nSelect Object: "))) (cond ( (eq 'ENAME (type ent)) (if (not (vlax-method-applicable-p (setq obj (vlax-ename->vla-object ent)) 'IntersectWith)) (princ "\n** Invalid Selection **") (progn (setq uflag (not (vla-StartUndomark (setq doc (vla-get-ActiveDocument (vlax-get-acad-object)))))) (defun BrkSelf (ent) (foreach x (SelfInt ent) (vl-cmdf "_.break" (list ent x) "_F" x x) (BrkSelf (entlast)))) (BrkSelf ent) (setq uflag (vla-EndUndoMark doc)))))))) (mapcar (function setvar) vl ov) (princ))
    1 point
×
×
  • Create New...