Author Topic: help with layer  (Read 11746 times)

0 Members and 1 Guest are viewing this topic.

ELOQUINTET

  • Guest
help with layer
« on: September 21, 2004, 10:33:19 AM »
i have a layer in a bunch of drawings i would like to have locked rather than turned off without having to open each one. does anybody have something that could acheive this? thanks

M-dub

  • Guest
help with layer
« Reply #1 on: September 21, 2004, 10:34:09 AM »
Script


You can do it!

hudster

  • Gator
  • Posts: 2848
help with layer
« Reply #2 on: September 21, 2004, 10:41:39 AM »
yup, script is deffo the way to go on this one...
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

ELOQUINTET

  • Guest
help with layer
« Reply #3 on: September 21, 2004, 10:59:41 AM »
that's what i was thinking but i have 0 knowledge of how to write one. heeeellllllp  :?

M-dub

  • Guest
help with layer
« Reply #4 on: September 21, 2004, 11:00:31 AM »
Alrighty...
How many drawings are there?  Are they all in the same directory?

ELOQUINTET

  • Guest
help with layer
« Reply #5 on: September 21, 2004, 11:01:11 AM »
i suppose i should make it non printing while i'm at it too since it might appear in some views now

M-dub

  • Guest
help with layer
« Reply #6 on: September 21, 2004, 11:05:29 AM »
Some may disagree with the method I use to create my scripts, but my way works so that's how I'm going to teach you.

If you have lots of drawings, go download Directory Printer and export your directory(ies) to a csv file.  In your csv file, delete everything except the file and path info.  Actually, I've gotta find out how many files we're talking about first...

ELOQUINTET

  • Guest
help with layer
« Reply #7 on: September 21, 2004, 11:27:59 AM »
mdub this actually has to do with discovery. what i am doing is creating a sort of bar code system. i have created a notepad document which has has abbreviated hardware info. i am pasting the info into individual drawings on a barcode layer then was turning it off to try to prevent others from deleting it. the more i thought about it it would be better if i just locked it and made it non printing. there are alot of files, about 2 years worth of jobs at this point i've gone through. they are in 2 main directories with many subfolders. i'll look at your link when i come to a good stopping point. thanks

M-dub

  • Guest
help with layer
« Reply #8 on: September 21, 2004, 11:36:42 AM »
Yes, from what I've read so far, I think creating your script in Excel should work perfectly.  You don't NEED to download Directory Printer, but it helps immensely.  You can get similar results from the DOS Prompt, but DP has more functionality that will help you and it's easier.
Let me know...

ELOQUINTET

  • Guest
help with layer
« Reply #9 on: September 21, 2004, 11:42:30 AM »
ok should be ready after lunch to jump in

M-dub

  • Guest
help with layer
« Reply #10 on: September 21, 2004, 11:44:04 AM »
Sounds good

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
help with layer
« Reply #11 on: September 21, 2004, 11:49:08 AM »
From DOS prompt in folder where you want to grab the file names:

Code: [Select]

dir /a /on /b *.dwg > filelist.txt
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
help with layer
« Reply #12 on: September 21, 2004, 01:13:56 PM »
Hmmm, other that the small problem of losing the drawing thumbnail preview, I would think VBA & ObjectDBX would be the way to go here. Does not require the loading into the drawing editor of any drawings which would save a heap of time.

Could also be done in vlisp/ObjectDBX, but I think the folder/file selection is easier in VBA.

whdjr

  • Guest
help with layer
« Reply #13 on: September 21, 2004, 01:15:35 PM »
You could also use ObjectDBX to accomplish your task,

M-dub

  • Guest
help with layer
« Reply #14 on: September 21, 2004, 02:52:28 PM »
Dan?
What's going on?  Are you working on this?