Login

View Full Version : Layering Automation



Doodlemusmaximus
2010-09-15, 12:25 PM
Folks

I have a request hope that someone can help out here. We have been working on an automated system for creation of layers our firm has a code system in place for naming them and this allows a quicker method of producing them. What I am looking for is a way to also include text into the process thereby allowing us to identify readily the type of layer it is. I have thought of using the idea initially of setting the description to automatically fill in the description and then renaming it but so far all attempts have failed on this score.

I guess what I'm after is
A Either the command/system variable for turning this function on off
B Another way of adding the description without having to go into the layer manager.

rkmcswain
2010-09-15, 12:52 PM
way of adding the description without having to go into the layer manager.

Is this what you are talking about? This sets the description of the current layer to "A New Description"




(vla-put-description
(vlax-ename->vla-object
(tblobjname "layer"
(getvar "clayer")
)
)
"A New Description"
)

Mamma Jamma
2010-09-15, 01:00 PM
I set up layers for my flow drawings by using a script. If you notice, at the command line, there is, among the other options, "Description", which could easily be built into the script along with color and linetype. The advantage of the script is that it works in LT, and no confusing (to me) lisp routines...
Of course, if they're all built into your .DWT, you don't even have to do that, but if someone purges them out at any point, having the script to bring them back, at the touch of a button, is handy.

Doodlemusmaximus
2010-09-15, 01:14 PM
think this could be the answer I need to be able to add to the bolt on which i'm using VB. Cheers

Doodlemusmaximus
2010-09-15, 01:16 PM
I set up layers for my flow drawings by using a script. If you notice, at the command line, there is, among the other options, "Description", which could easily be built into the script along with color and linetype. The advantage of the script is that it works in LT, and no confusing (to me) lisp routines...
Of course, if they're all built into your .DWT, you don't even have to do that, but if someone purges them out at any point, having the script to bring them back, at the touch of a button, is handy.

I would be interested in view your script file if you don't mind to see if I can adapt it to allow the same sort of function within diet cad (LT)