Author Topic: Redefining Blocks  (Read 6800 times)

0 Members and 1 Guest are viewing this topic.

ML

  • Guest
Redefining Blocks
« on: November 10, 2004, 08:53:57 AM »
I have a blocked out drawing (Dim Styles to be exact). If I purge out the dim styles, then re insert this drawing  via the insert command, it asks me
if I want to redefine the block, I say yes, all is well.

Now, I have a macro that is started ^C^C-insert etc. etc.

The macro works fine, the drawing inserts "but" my dimstyles are not there. This is the problem.

So, is there a way to redefine the block via command line. Is it even necessary? Or, is there another problem that I don't know about?

Thank you

Mark

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Redefining Blocks
« Reply #1 on: November 10, 2004, 09:07:57 AM »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

MikePerry

  • Guest
Re: Redefining Blocks
« Reply #2 on: November 10, 2004, 09:09:25 AM »
Hi

What exactly do you mean by "my dimstyles are not there" -

New Dimstyles simply don't load

New Dimstyles don't overwrite existing Dimstyles that share the same names

Something else


Maybe take a look at the system variable Expert when running your command macro.

Have a good one, Mike

ML

  • Guest
Redefining Blocks
« Reply #3 on: November 10, 2004, 01:57:49 PM »
I have a drawing that contains The DIMstyles only.
We Insert if we need the DimStyles

CADaver

  • Guest
Redefining Blocks
« Reply #4 on: November 10, 2004, 04:14:29 PM »
If you insert a block that already exisits in the drawing it will prompt you to redefine and you need to answer YES to get the dimstyles.  Check the command syntax and adjust your code accordingly.

ML

  • Guest
Redefining Blocks
« Reply #5 on: November 10, 2004, 07:08:02 PM »
Yes, I am aware of that CAD but I am inserting the wblocked (Dim Styles drawing) via a macro

It appears to be inserting just fine but the Dim Styles are not

What do you think?

Mark

MikePerry

  • Guest
Redefining Blocks
« Reply #6 on: November 10, 2004, 07:30:57 PM »
Hi

Could you please post your DimStyle drawing file and Macro for Inserting the DimStyle drawing file.

Does the Insertion of the DimStyles always fail, doesn't matter if you -

Insert into an existing drawing file

Insert into a new drawing file

Have a good one, Mike

ML

  • Guest
Redefining Blocks
« Reply #7 on: November 10, 2004, 07:36:32 PM »
Hey Mike

If I insert into a new drawing, it is fine. It is if the Dim Styles are not used, then purged out

Then, I re insert the Dims drawing and that is where they are not showing up

Mark

MikePerry

  • Guest
Redefining Blocks
« Reply #8 on: November 10, 2004, 07:51:40 PM »
Hi

Are you bringing in the DimStyle drawing file as a Block (ie Not Exploding on insertion) OR Exploding on insertion?

If as a Block, maybe look at setting system variable Expert = 2 before bringing in.

OR

Try bringing it in Pre Exploded instead.

Have a good one, Mike

ML

  • Guest
Redefining Blocks
« Reply #9 on: November 10, 2004, 08:06:02 PM »
No, I am not exploding it because there are no objects to explode but someone else recommended the expert variable, or may be you did earlier


Doesn't this expert variable do more then what we may want?
May be I will build (setvar "expert" 2) insert my block then (setvar "expert" 0)


here is how it effects blocks  --->


Suppresses the preceding prompts and "Block already defined. Redefine it?" (BLOCK) and "A drawing with this name already exists. Overwrite it?" (SAVE or WBLOCK).

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Redefining Blocks
« Reply #10 on: November 10, 2004, 08:28:29 PM »
You can use this it will purge the block but leave the dims in the drawing.
This is one line so when you paste it into a botton make sure ther are no ^M; added by ACAD.
If your block dwg is in the ACAD path you don't need the path.
Code: [Select]
^C^C(COMMAND "INSERT" "DimBlock=Dim-Style.DWG" "0,0" "1" "1" "0" "._erase" (entlast) "" "._purge" "B" "DimBlock" "N")
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Redefining Blocks
« Reply #11 on: November 10, 2004, 09:39:02 PM »
Mark, your latest post provides a bit more info, the block is not exploded, does not contain graphical objects and as such cannot be purged UNLESS you delete the block, which you can only do with code.

You CAN redefine the block, but only if you insert it from the hard drive file, not by simply re-inserting it. You have to provide the entire path to the file on the HD in order to redefine it.
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

Dent Cermak

  • Guest
Redefining Blocks
« Reply #12 on: November 10, 2004, 09:45:55 PM »
INSERT
BLOCK A= BLOCK B
ENTER
ENTER
????????????

ML

  • Guest
Redefining Blocks
« Reply #13 on: November 10, 2004, 10:58:59 PM »
Hey Keith

Thank you for the reply.

I am actually able to purge the dim styles out of the drawing but according to what you are saying, I will need to enter the entire path into the menu macro, is that correct?

Thank you

Mark

ML

  • Guest
Redefining Blocks
« Reply #14 on: November 10, 2004, 11:00:11 PM »
In other words

^C^C-insert;entire path including filename;