Author Topic: Problem Block and Layer Merge  (Read 6104 times)

0 Members and 1 Guest are viewing this topic.

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #15 on: March 26, 2009, 10:03:56 AM »
....
Have you tried auditing your drawing(s)?

MANY, MANY, MANY times.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Problem Block and Layer Merge
« Reply #16 on: March 26, 2009, 10:24:03 AM »
What happens if you run this code:

Code: [Select]
(progn
    (command ".layer" "_unlock" "*" "_thaw" "0" "_on" "0" "_set" "0" "")
    (foreach handle '("2d2e" "2d2f" "2d30" "2d36")
        (vla-put-layer (vlax-ename->vla-object (handent handle)) "0")
    )
    (princ)
)

On Problem Block2.dwg as supplied|attached to this post?

Edit: Fixed stupid typo.
« Last Edit: March 26, 2009, 10:27:11 AM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #17 on: March 26, 2009, 10:26:00 AM »
HUH!???

That is WAYYY above me!

I'm guessing that is Lisp Code.

I am using LT which unfortunately doesn't use Lisp.

Thanks though

M-dub

  • Guest
Re: Problem Block and Layer Merge
« Reply #18 on: March 26, 2009, 10:29:05 AM »
Craig, I just tried again and was able to merge layer2 into layer1 AFTER unlocking and thawing all layers.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Problem Block and Layer Merge
« Reply #19 on: March 26, 2009, 10:30:09 AM »
HUH!???

That is WAYYY above me!

I'm guessing that is Lisp Code.

I am using LT which unfortunately doesn't use Lisp.

Thanks though

DOH.

See attached. Is it still goofy?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #20 on: March 26, 2009, 10:37:20 AM »
Yes, it still acts goofy.

As soon as I move the block back to the TitleBlock Layer, and lock the TitleBlock layer, the LayerMerge fails again.

I'm thinking this is more of an issue with CAD than with my block &/or dwg. I know it isn't just my installation, as the problem is reproducable on multiple workstations.

It's a dome scratcher, that's for sure.

craigr

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Problem Block and Layer Merge
« Reply #21 on: March 26, 2009, 10:40:38 AM »
... as soon as I move the block back to the TitleBlock Layer, and lock the TitleBlock layer ...

And if you don't do that?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #22 on: March 26, 2009, 10:43:38 AM »
If I don't do that, it works fine.

Not having it locked on the Title Block Layer is NOT an option.

Looks like we will have to continue to live with it.

What I don't understand is that if the block doesn't exist in the dwg, everything works great. Yet I have erased, purged and recreated the block, yet it still does it.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Problem Block and Layer Merge
« Reply #23 on: March 26, 2009, 10:48:18 AM »
Pragmatism: Set the drawing up so you can perform mods (like layer merge) as necessary (i.e. not locked et al), re-layer afterwards.

If I had more time I'd do a more thorough job of analyzing your dwg | behavior but I don't and can't.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #24 on: March 26, 2009, 10:50:01 AM »
Hey, I appreciate what you HAVE done.

It isn't a HUGE deal, just more annoying than anything.

Get back to work - and Thanks.

craigr

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Problem Block and Layer Merge
« Reply #25 on: March 26, 2009, 10:55:05 AM »
I didn't really spend any time on it, but thanks Craig.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

M-dub

  • Guest
Re: Problem Block and Layer Merge
« Reply #26 on: March 26, 2009, 11:05:31 AM »
Throw this into a button and give it a try.

^C^C-la;u;title_block;;-laymrg;\;\y;-la;lo;title_block;;

It will allow you to make two selections only.  The first being the layer you want to merge (get rid of) and the second being the layer you want to merge TO (the one you want to keep).

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #27 on: April 02, 2009, 12:47:16 PM »
Update -

This still bugs me, so after doing some more thinking on it, I decided to totally create a NEW block and try it. - The problem remains.

I played with locking / unlocking as suggested and it kinda worked but I wasn't happy with doing it that way. So I experimented some more and figured out that if I explode the block after inserting it into the dwg, THEN locking that Layer, everything works okay.

I don't understand why it matters, but it apparently does. I guess I can live wiith it from here.

(I HATE not understanding why something doesn't work).

craigr

craigr

  • Guest
Re: Problem Block and Layer Merge
« Reply #28 on: April 15, 2009, 04:45:37 PM »
Dog-Gone-IT!!!!

I thought I had this #%I#($ thing figured out!

I have another dwg that was giving me problems with Merging layers, so I got rid of the 'copyright' block altogether and it still had problems merging. So, I copied everything to a NEW dwg without a title block and it still had the problems!!

So I then unlocked ALL Layers and no problems merging layers.

So, now I am guessing that the LayerMerge command wants ALL layers unlocked.

I know, I know... I just can't let this thing go. :)

craigr