PDA

View Full Version : LAYER MANAGEMENT


AUTOLAD
15-07-2004, 03:03 PM
HELLO FELLOW "CAD MONKEIES".... DOES ANY KNOW HOW TO MANIPULATE LAYERS CREATED INSIDE THE DWG FILE WITHOUT ACTUALY OPENING THE DRAWING. I GUESS WHAT I AM TRYING TO DO IS EDIT LAYERS IN MULTIPLE DRAWINGS WITHOUT ACTUALY HAVING TO OPEN EACH SHEET AND MANUALY CHANGE (FREEZE/THAW/ON/OFF) A CERTAIN LAYER. IS THERE MAYBE SOME KIND OF LISP ROUTINE FOR THIS OR MAYBE A FEATURE IN THE EXPRESS TOOLS.

OH, I AM CURRENTLY USING AUTOICAD 2002

THANKS :shock:

architech
15-07-2004, 04:11 PM
Have you tried a "Batch Script"? :roll:

A while back, I place an example of what you desire.
Look @ this link. :P

http://www.autocadeverything.com/phpBB/ftopic385.php

This script does a multiple of things but if you look at it .... you'll see you can customized it yourself. The "F" in the script actually freezes specific layers.

HTH.
:wink:

windowsxp5
15-07-2004, 05:01 PM
hi AUTOLAD..

did u Try "Layer State" if not try..
STEP1
open one drawing and set ur LAyer(FREEZE/THAW/ON/OFF/color...etc) then Click on "layer state" then save and EXport to c:\yourProject\YourLASfilename.las
STEP2
import the las file to all DRAWINGS..

Apply this SCript to All drawings..
----------------------------------------------
_layer
_state
_import
;;Edit the path accoding to your drive and filename
"c:\yourProject\YourLASfilename.las


_Qsave
-------------------------------------------

Eddie
15-07-2004, 09:18 PM
8) Autolad.....
What you want to achieve is possible thru VB/VBA and OBJECTDBX....
This will allow you to edit the layers in each drawing without actually opening each....

AUTOLAD
20-07-2004, 02:18 PM
well i wne from :shock: to :lol:
tahnks again for the help. all posts are helpful. this gives me something to work with, thatnks again.

autolad

Brockster
20-07-2004, 06:13 PM
Does anyone have any sample code work using ObjectDBX to control layers?

Brockster