Jump to content

All Activity

This stream auto-updates

  1. Today
  2. I just realized something that I forgot. There's a huge difference between Layout 1 and the rest of the layouts, and that is that I've used the CHSPACE command to pull the objects through to the paper space on those subsequent layouts. So that would be why they're showing correctly on the first layout, but not on the subsequent ones (because they are no longer INSIDE the viewport). But still, is there a way to show those as hidden after I've done that?
  3. Interesting article, and it seems to be directed at my problem, but it doesn't work. It did point me to an observation, though... the subsequent layouts (Layout 1 (2), Layout 1 (3)...) are all copies of Layout 1. However, Layout 1 is the only layout that is showing properly as hidden. The rest show as 2D wireframe and you cannot change the visual style on any of them and even Layout 1 shows 2D Wireframe under the properties pane, though the model looks like it's in Hidden style on that layout. Also, in the article, they say to change the Shaded Plot setting, but in the image, they're changing the Visual Style setting, so that's a little confusing; mine doesn't even show a shaded plot setting (EDIT: the shaded plot setting appears when clicking on the viewport... disregard). It's making it difficult to build this thing from the plans, that's for sure, but it's just something that I designed to put together and sell if it looks nice enough. It's not a HUGE deal, but if you can figure it out, that would be cool. I used to be the CAD guy at my job years ago, but this one has me stumped.
  4. jim78b

    nestedblock window

    Ok thanks tomorrow when i have time i Will test .thanks very much
  5. rsdonna

    TCOUNT for multileaders

    I did. I had found it before and it is great just doesn't do exactly what i need. I can use it to add the numbering at the end but if I need to renumber then it won't work the way I need it to. Thank you for this.
  6. rsdonna

    TCOUNT for multileaders

    This is great. Is there a way to have it still do this if there are multiple lines of text in the mleader? I still have the wire name at the top line always but sometimes add 1 or 2 additional lines with other info about that wire. Thanks for your help. SAMPLE.dwg
  7. SLW210

    nestedblock window

    I forgot to post the fix. (setq *block_name_list*) I don't recall the second error.
  8. SLW210

    TCOUNT for multileaders

    Did you try the codes in the thread I posted?
  9. AFAIK, to plot a Layout with Hidden Visual Style, you need the viewport setup. I couldn't find the article, but I did find THIS POST. If that doesn't work, I'll have a look when I get back to work.
  10. Yesterday
  11. BIGAL

    TCOUNT for multileaders

    Give this a try, also it replaces what ever is the last 2 characters. Call it version 1. ; https://www.cadtutor.net/forum/topic/98622-tcount-for-multileaders/ ; change mleader text add number on end. ; By alanH jultu 2025 (defun c:wow1 ( / num str newstr obj len) (setq num (getint "\nEnter start number ")) (while (setq ent (entsel "\nPick Mleader - Enter to stop. ")) (setq obj (vlax-ename->vla-object (car ent))) (setq str (vlax-get obj 'textstring)) (setq len (strlen str)) (if (< num 10) (setq newstr (strcat (substr str 1 (- len 2)) "0" (rtos num 2 0))) (setq newstr (strcat (substr str 1 (- len 2)) (rtos num 2 0))) ) (vlax-put obj 'textstring newstr) (setq num (1+ num)) ) (princ) )
  12. pergolaPanels.dwg Attached.
  13. rsdonna

    TCOUNT for multileaders

    Sure, here is a sample of what I'll have in my drawings. In my drawings I'll have maybe 50 mleaders like these and I'm looking for a way to be able to pick them in order and then have it replace the -00 at the end with the sequential numbering. In TCOUNT I can pick what number I want it to start from and what the increment will be and then whether I want to overwrite, find and replace (which is what I need it to do), and also a prefix and a suffix option to place the text. Thanks for your help SAMPLE.dwg
  14. devitg

    TCOUNT for multileaders

    @rsdonna Ok , please upload your sample.dwg where you need to apply.
  15. Maybe upload the .dwg and some images of your plot settings.
  16. SLW210

    TCOUNT for multileaders

    Try something in this thread.
  17. SLW210

    nestedblock window

    It has more issues than Time magazine. Probably better rewriting something from scratch. I fixed the first 2 issues that came up, then there were more after that and I ran out of spare time to work on it. ;; This global list will store the clean names for selection (defun-q *block_name_list*) Was the error you mentioned. Once fixed more came up.
  18. Last week
  19. (setq plent (entsel "\nPick pline near end "))) (setq pt (cadr plent)) (setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (car plent))))) (setq obj (vlax-ename->vla-object plent)) (setq pt1 (vlax-curve-getstartPoint obj)) (setq pt2 (vlax-curve-getendPoint obj)) (setq d1 (distance pt pt1)) (setq d2 (distance pt pt2)) (if (> d1 d2)d (setq co-ord (reverse co-ord)) ) To reverse direction of a line or pline, "It is a task that takes 5 seconds." No its instant.
  20. pkenewell

    nestedblock window

    Yes - replace the following section of your code with my replacement. REPLACE THIS (action_tile "highlight" "(progn (setq selected_index (atoi (get_tile \"block_tree\"))) (setq selected_block (nth selected_index *block_name_list*)) (princ (strcat \"\nHighlighting all instances of: \" selected_block)) (sssetfirst nil nil) ; Clear any previous selection grips (setq ss (ssget \"_X\" (list (cons 0 \"INSERT\") (cons 2 selected_block) (cons 410 (getvar 'ctab))))) (if ss (sssetfirst nil ss)) ; Highlight all found instances in current space )" ) WITH THIS (action_tile "highlight" (strcat "(progn" " (setq selected_index (atoi (get_tile \"block_tree\")))" " (setq selected_block (nth selected_index *block_name_list*))" " (princ (strcat \"\nHighlighting all instances of: \" selected_block))" " (sssetfirst nil nil) ; Clear any previous selection grips" " (setq ss (ssget \"_X\" (list (cons 0 \"INSERT\") (cons 2 selected_block) (cons 410 (getvar 'ctab)))))" " (if ss (sssetfirst nil ss)) ; Highlight all found instances in current space" ")" ) ) The DCL and the LISP file must both be in an AutoCAD support path.
  21. jim78b

    nestedblock window

    But the dcl and lisp files must be in the same directory ?
  22. jim78b

    nestedblock window

    So i Will Copy your code in my lisp ?
  23. rsdonna

    TCOUNT for multileaders

    I don't have a TCOUNT lisp. TCOUNT is part of the express tools in AutoCAD. It's what I use when I'm going to renumber text or mtext. Unfortunately TCOUNT doesn't work in mleaders so I'm looking for a way to be able to do with mleaders what I do for text and mtext.
  24. devitg

    TCOUNT for multileaders

    @rsdonna, please upload your sample.dwg and the TCOUNT lisp
  25. pkenewell

    nestedblock window

    @jim78b Then you should've just said that. Anyway - I think the problem is that you can't have a multi-line string like in your action tile statement, when there are parenthesis and other embedded code. Do this instead: ;; Action for the "Highlight Selection" button (action_tile "highlight" (strcat "(progn" " (setq selected_index (atoi (get_tile \"block_tree\")))" " (setq selected_block (nth selected_index *block_name_list*))" " (princ (strcat \"\nHighlighting all instances of: \" selected_block))" " (sssetfirst nil nil) ; Clear any previous selection grips" " (setq ss (ssget \"_X\" (list (cons 0 \"INSERT\") (cons 2 selected_block) (cons 410 (getvar 'ctab)))))" " (if ss (sssetfirst nil ss)) ; Highlight all found instances in current space" ")" ) )
  26. I'm looking for a lisp that will allow me to do the exact same thing I do with TCOUNT but for multileaders. I have a drawing where I have mleaders going to many different lines and each has three lines of text. The first line has cable id and I want to be able to replace the last two characters of that line. In TCOUNT I would select each mtext object in order, have the count start at 1 and increase by 1 (1,1) and then I would have it find and replace the '0' I left at the end of each line with the sequential numbers created by TCOUNT. This is what I need to be able to do but on all the mleaders I have in this drawing. Anyone have something like this?
  27. jim78b

    nestedblock window

    Ai
  28. The accepted solution on that article is what I tried to do, although on MY properties pane, it doesn't allow me to change that visual style; it's locked. That's my problem. Why is it locked? Why can't I change it? How do I fix it? It's a dilemma.
  1. Load more activity
×
×
  • Create New...