• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

explode blocks without displaying attributes

  • Thread starter Thread starter Giordano85
  • Start date Start date

Giordano85

Guest
Good morning, everyone!

as from object I would like to explode blocks without displaying the attributes present for a series of blocks found in my design. I would definitely have a multifilament pattern made of blocks that I would like to explode. If I explode with the simple "explodes" command, I find the whole drawing full of writings (attributes) on all the drawing and I have to delete it all manually.
I installed cad 2008 with the express tools and tried the command blocks ---> explode attributes to text, but this, as from title, explodes the attributes in text....so I always find the drawing full of writings, do you have any advice to give me?

Thank you!
 
excuse me gp. in practice I should create a lips with the text present in the link paying attention to insert the underscore for the words "undo" and "group" right? Finally I load lips. I'm sorry, but I'm still pretty ingnoring about this, I'd like you to go a little more in detail.

Thank you.
 
ti allego io il lisp, download it in the folder you want, then upload it with appload.

from command line attdel2.

:smile:
 

Attachments

thank you so much gp. for the immense kindness of creating my lips! using the lips though I lose the text combined with the block, in the specific case I tell you about a number paired with each clamp. I attach an image to show what I'm talking about. in the upper part I have the clamp to today as it is, while below is the clamp to which I applied the lips. Basically I would, you explode all the design without displaying attributes, but I would at the same time leave the text displayed as simple text. I'm sorry if I first put myself in a way that brought confusion.

Thank you.
 

Attachments

Jordan, the command you're looking for is burst (It's part of the express).
explodes the block with attribute in the entities that compose it, converting attributes into simple text,
Obviously if the attribute field is empty, simply the text will not be there.

try to launch burst or _burst from keyboard.
 
then use burst (expresstools), though if the block has 25 attributes all remain displayed.


p.s.: lisp... They are called lisp.



oops
beat on time:tongue:
 
Sorry guys for the confusion lisp non lips (lips) ahahah
However with the _burst command, I always display the attributes.

Look at the annex.


Thank you.
 

Attachments

  • screen.webp
    screen.webp
    21.3 KB · Views: 16
are no longer attributes, but texts with the value of the attribute.

If block references weren't so many you could with battman set the invisible mode to the attributes you don't care about.
 
gp. let's say that I have different types of blocks and I should instruct enough...in any case the problem that I respond that despite imposed some invisible fields through the Battman command, once I run the _burst command, I still have the attributes exploded as text. .
Perhaps my request is too specific to make it work with the carcad standard compasses. If there are no valid alternatives, I thank you for your help anyway, you were very kind, especially gp! for patience.
:finger::biggrin
 

Attachments

  • Immagine.webp
    Immagine.webp
    29.5 KB · Views: 12
...in any case the problem that I encounter that despite imposed some invisible fields through the Battman command, once the _burst command runs, I still have the attributes exploded as text. .
by force, they are only invisible, but alive and well.. .


try this, if you like it only keeps the selected attribute, otherwise use burst to turn it into text.
Code:
;; set to "" the value of the attributes contained in the blocks;
; with the same name, excluding the selected attribute. ;
; ;
;; 04/02/2013 - cattaneo gian paolo;


(defunc c:attnull (/ a na nb bl ent ogg ent1 type n_etich etich)
(f)
(sing)
(setq a (entget (car (nentsel "\nselect the attribute to be kept in the block"))))
(setq na (cdr 2 a)))
(setq nb (cdr (assoc 2 (entget (cdr 330 a)))))))
(setq bl (ssget "_x" (cons 0 "insert") (cons 2 nb))))
)
(repeat (setq n (sslength bl))
(setq ent (entget (ssname bl (setq n (1-n))))))
(setq ogg (cdr))
(setq ent1 (entnext ogg)
(setq type (cdr (assoc 0 (entget ent1))))
(while (= type "attrib")
(setq n_etich (cdr (assoc 2)))
(if (/= n_etich na)
(progn)
(setq etich (entget ent1))
(setq etich (subst (cons 1 "") (assoc 1 (entget ent1)) etich)
(entmod etich)
)
)
(setq ent1 (entnext ent1))
(setq type (cdr (assoc 0 (entget ent1))))
)
)
)
)
 
You've done a great job for me. a single thing, the command just quoted launchable with attnull, does not make me select if not one item at a time, is there a possibility to make a selection of more objects? Thank you so much!
 
Alternatively you can do with few lines of code and some passage:

1- prepares an empty layer (e.g. lay-hidden) and deactivate it
2- Explode the blocks: the attributes tags will appear to you, for example: pin1 pin2 pin3 etc.
3- copy this line of code on the command line by replacing the names of my tags (two, three) your tags that you want to make disappear, separated by comma, without spaces; by sending.

(setq aa (ssget "x" (cons 0 "attdef") (cons 2 "Due))

4- From command line enter select or (selez), when asked selez. writing objects!aa (beware of the exclamation point) and then 2 times send
5- Select lay-hide from the drop-down menu and attributes will disappear.
----
all this can be recomposed more elegantly in a file lisp, if the function should be used several times.
 
...is there a possibility to make a selection of more objects?
Well, having to select the attribute of 10 different blocks it is not so uneasy to give as many times sending, considering also the fact that for the change would not be enough two minutes and the routine performs a function not properly to the top of the wish list.

If I can make a comment, it seems a real nonsense that an application creates all the attributes on the same layer.

with separate layers it would be enough to turn off/freeze or a laydel.

:smile:
 
Thank you very much, I understand what you mean. before I had not understood the proper functioning. in practice the lisp works on the nice block name, so despite it being repeated within the design, with the burst command I have the possibility to explode keeping the pin number and the reference name (in my specific case) as simple text. if I have therefore in all 3 types of lock (mors1, mors2 and mors3), it is enough that throw the lisp on the three block categories so that you can explode all the blocks. Thank you very much. I'm curious and I don't understand the method quoted by joseph, I apologize. I think I've done everything correctly, but I think at this point, I've done something wrong because I can't make the method work properly. What do you mean joseph? Sorry the question but I don't really know what you mean, if you create a layer and leave it in the background, or freeze it or block it. Can you make me better understand what you mean by "disactivating the layer"?

ps. I also attached the image of the command I was typing, where I think there are no errors.

Thank you!
 

Attachments

  • LAYER.webp
    LAYER.webp
    16.5 KB · Views: 7
  • comando.webp
    comando.webp
    80.3 KB · Views: 10
Jordan, from the last image you posted, I understand that the attributes are drawn on different layers.

Tell me it's not like that....danger.gif
 
Sorry gp there are several layers... and some elements (I'm talking about blocks and not block attributes) are on different layers. Is this a problem? If you apologize for not mentioning it, but I didn't think it could be a problem in the explosion of the blocks. You need to know that I insert the clamps through a database that calls up blocks that in turn are composed of attributes. If they are drawings on various layers for me, once placed on a sheet, I do not think it is able to vary the attributes present on various layers if not once exploded. I'll train your design and ask you to have a little patience if I can't get the point! Excuse me.
 

Attachments

What do you mean joseph? Sorry the question but I don't really know what you mean, if you create a layer and leave it in the background, or freeze it or block it. Can you make me better understand what you mean by "disactivating the layer"?
Thank you!
turn off, off, hide, all have the same meaning; But I don't know what you mean by "second floor."
But where do you get stuck?
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top