Author Topic: Xref overlay without detach  (Read 9129 times)

0 Members and 1 Guest are viewing this topic.

cadpro

  • Guest
Xref overlay without detach
« on: November 04, 2008, 03:49:21 AM »
Hi,

Can xref be overlayed without detaching it?

Thanks

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Xref overlay without detach
« Reply #1 on: November 04, 2008, 04:10:52 AM »

If you detach it, the xref cant be overlayed or attached .. cause it is detached and not linked(referenced) into the drawing.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Xref overlay without detach
« Reply #2 on: November 04, 2008, 04:23:44 AM »
.. and i see that you've posted the same question on autodesk.autocad.customization.dotnet.
will be interesting to see if you get a different answer.


ps;
I haven't checked, but it seems that almost every question you've asked for the last couple of years has been about xrefs ... you should be an expert at them shortly :D
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Glenn R

  • Guest
Re: Xref overlay without detach
« Reply #3 on: November 04, 2008, 06:03:14 AM »
 :lmao:

cadpro

  • Guest
Re: Xref overlay without detach
« Reply #4 on: November 04, 2008, 07:47:12 AM »
ps;
I haven't checked, but it seems that almost every question you've asked for the last couple of years has been about xrefs ... you should be an expert at them shortly

I wish I could be!   :wink:
« Last Edit: November 04, 2008, 07:53:35 AM by cadpro »

cadpro

  • Guest
Re: Xref overlay without detach
« Reply #5 on: November 04, 2008, 07:50:34 AM »

If you detach it, the xref cant be overlayed or attached .. cause it is detached and not linked(referenced) into the drawing.


All sample codes that I saw throughout the threads do a detach of the same xref before changing it to overlay. But, this doesn't work if the block is xrefed in multiple layouts.

Is there a way to access the xrefmanager to change the xref to overlay?

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: Xref overlay without detach
« Reply #6 on: November 04, 2008, 11:05:55 AM »
I'd like to know too, it seems like it would be such an easy thing to put in the API.
I would use that in about three different tools I can think of.
James Maeding

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: Xref overlay without detach
« Reply #7 on: November 04, 2008, 11:10:42 AM »
wait, this is a duplicate thread, let's keep to the other one with all the code.
James Maeding

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Xref overlay without detach
« Reply #8 on: November 04, 2008, 11:16:32 AM »
You can try the lisp code here [ http://www.theswamp.org/index.php?topic=25232.0 ].  If it works for you, then you should be able to change it to .Net for your purpose, but it does detach and reattach the xref as the type you want.
Tim

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

Please think about donating if this post helped you.

Bryco

  • Water Moccasin
  • Posts: 1882
Re: Xref overlay without detach
« Reply #9 on: November 04, 2008, 12:54:03 PM »
At a guess, when you change an xref (w/ multiple inserts) from insert to overlay they all change at the same time. So remove all xrefs with that name and reinsert them.  Oh I guess you already tried that and it didn't work, silly me.

cadpro

  • Guest
Re: Xref overlay without detach
« Reply #10 on: November 05, 2008, 12:08:30 AM »
So remove all xrefs with that name and reinsert them.

That is the issue!  :ugly:

cadpro

  • Guest
Re: Xref overlay without detach
« Reply #11 on: November 05, 2008, 12:20:05 AM »
You can try the lisp code here [ http://www.theswamp.org/index.php?topic=25232.0 ].  If it works for you, then you should be able to change it to .Net for your purpose, but it does detach and reattach the xref as the type you want.

That didn't work.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Xref overlay without detach
« Reply #12 on: November 05, 2008, 06:47:48 PM »
You can try the lisp code here [ http://www.theswamp.org/index.php?topic=25232.0 ].  If it works for you, then you should be able to change it to .Net for your purpose, but it does detach and reattach the xref as the type you want.

That didn't work.
Are you working with nested xrefs?  If so, then it wasn't tested for that since I don't use them.  If not, then maybe you can post the drawing file and xrefs, so that I can test.
Tim

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

Please think about donating if this post helped you.

cadpro

  • Guest
Re: Xref overlay without detach
« Reply #13 on: November 11, 2008, 03:19:07 AM »
No nested xrefs. Only title blocks.

jjs

  • Guest
Re: Xref overlay without detach
« Reply #14 on: November 14, 2008, 01:55:51 PM »
Why can't you record all the insertion information, then detach and reattach?
You could save a layerstate before and reapply it afterward.
Insertion points and scale factors should not be hard.