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

associate multiple layers to an element

  • Thread starter Thread starter Aurora_86
  • Start date Start date

Aurora_86

Guest
Good evening, everyone. I wanted to know if autocad lets you do what I describe below. I suppose, for example, to have a series of numbers from 1 to 1000. on some occasions I want to see only the numbers from 1 to 700, on other instead the numbers from 300 to 1000. How can I do that?
 
you can make a layer for every 100, then you create visualization states with the layer manager
100-700 layer (on 100-200 etc, off 800-900-1000)
layer 300-1000 (100-300, lit the others)

You can't have an entity with 2 layers, it's like asking you to have a red entity that is both green.
 
you can make a layer for every 100, then you create visualization states with the layer manager
100-700 layer (on 100-200 etc, off 800-900-1000)
layer 300-1000 (100-300, lit the others)

You can't have an entity with 2 layers, it's like asking you to have a red entity that is both green.
I hoped that autocad would allow to associate with a given design different configurations, each with characteristics. I hoped that a layer 1 could be associated with an entity in configuration 1 and a layer 2 in configuration 2, etc.
 
aurora, it is not configurations, it is property.
color, length, start-end, layer are the characteristics that define an object. otherwise it is a different object. . .
How could autocad draw you 2 identical red lines on 2 different layers (and then manage layers) if the layer was just a "configuration"?
Have you seen a red line drawn with blue ink?
 
not being able to operate clearly through layers, and if I understood correctly, the approach could be to hide the texts (integer numbers) out of a set range.
is restored with anisolateobjects.
Code:
;nasconde i numeri interi positivi (testi) non compresi in un range
;utilizzare il comando "unisolateobjects" per ripristinare
;gp - 09/11/2017

(defun c:visnum (/ nmin nmax txt n txt2 num ntxt)
    (setq nmin (getint "\nnumero min "))
    (setq nmax (getint "\nnumero max "))
    (setq ntxt (ssadd))
    (if (setq txt (ssget "_x" '((0 . "text"))))
        (progn
            (repeat (setq n (sslength txt))
                (if (and
                        (= (type (setq num (read (cdr (assoc 1 (entget (setq txt2 (ssname txt (setq n (1- n)))))))))) 'int)
                        (not (<= nmin num nmax))
                    )
                    (setq ntxt (ssadd txt2 ntxt))

                )
            )
            (command "_hideobjects" ntxt "")
        )
    )
)
 

Forum statistics

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

Members online

No members online now.
Back
Top