Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 11/24/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. update v16: fix error order plot 7 pline https://drive.google.com/file/d/1m3x5uHPSI4jGTMEf0g7v4Iwg1pLF6rrz/view?usp=sharing
    1 point
  3. I am not sure I would trust a link from a new members single comment 8 years after the original question. Others might trust it. Just jumps out as 'Bot'
    1 point
  4. Those are the ones that always bug me too. I frequently use the DIMSPACE command to force some of those unruly floaters to reorient closer to the dimline. Really annoying wasting time grip dragging dims around to get them exactly as desired! Happy Thanksgiving Day everybody.
    1 point
  5. 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
  6. @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
    1 point
  7. 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
  8. 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
  9. 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
  10. @BIGAL About the pop menus: Interesting, I'll have a look. One thing I left out from my last comment is that I add most of my lisps to the ribbon as buttons so I don't need to remember or type the command. @VicoWang I don't use the excel file to run anything, It is just a table to keep track of my lisps. About me using bricscad and can't use .vlx: There are also .brx files In some forums that I avoid. I'll be a little more blunt: I will use compiled file from a known trusted vendor. This is not the case here. In public forums I'll stay with open source, Both for the reason I've mentioned earlier and the one above here.
    1 point
  11. @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
  12. 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...