Author Topic: Block Import question...  (Read 1476 times)

0 Members and 1 Guest are viewing this topic.

KewlToyZ

  • Guest
Block Import question...
« on: August 12, 2008, 12:10:34 PM »
I was checking out Kerry's Import Blocks routine
http://www.theswamp.org/index.php?topic=9229.msg118979#msg118979
and I was curious,
Is there a way to set the import using lisp to redefine the current blocks in the drawing with the updated files using the same names?

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Block Import question...
« Reply #1 on: August 12, 2008, 12:24:57 PM »
Yes.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

KewlToyZ

  • Guest
Re: Block Import question...
« Reply #2 on: August 12, 2008, 12:37:52 PM »
Thanks Tim  :-D

(setvar "EXPERT" 3)
« Last Edit: August 12, 2008, 12:55:29 PM by KewlToyZ »

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: Block Import question...
« Reply #3 on: August 12, 2008, 01:27:14 PM »
OK, KT, I'm confused....nothing new, I know.
This is from the comments in Kerry's code:
Quote
;; Allows Multiselect from one Folder. Overwrites current definition if applicable
Isn't this what you wanted?

KewlToyZ

  • Guest
Re: Block Import question...
« Reply #4 on: August 12, 2008, 03:05:50 PM »
By default with the setting of 5 in 2009 it wasn't.
Seems to be working with the setting of 2 though?
Not sure if it was the drawing I worked with though so I need to do some more testing.

0
 Issues all prompts normally.
 
1
 Suppresses “About to regen, proceed?” and “Really want to turn the current layer off?” (-LAYER)
 
2
 Suppresses the preceding prompts and “Block already defined. Redefine it?” (-BLOCK) and “A drawing with this name already exists. Overwrite it?” (SAVE or WBLOCK).
 
3
 Suppresses the preceding prompts and those issued by the LINETYPE command prompt (-LINETYPE) if you try to load a linetype that's already loaded or create a new linetype in a file that already defines that linetype.
 
4
 Suppresses the preceding prompts and those issued by UCS Save and VPORTS Save if the name you supply already exists.
 
5
 Suppresses the prompt, “That name is already in Use, redefine it?” issued by the -DIMSTYLE Save option when you supply the name of an existing dimension style.

Suppresses the same prompt issued by the -SCALELISTEDIT Add option.


I was looking to do something more elaborate like trying to have it read every block definition file against a specific folder but after going through the possible damage it could do with regard to attribute text alignments etc... I decided against it.
« Last Edit: August 12, 2008, 03:09:16 PM by KewlToyZ »