Author Topic: Xref and Xclip  (Read 1861 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Xref and Xclip
« on: April 10, 2012, 09:37:05 AM »
Hi all,...

I ask this question on this section beacause I don't realy know if AutoCAD can do it..
I have a drawing who contain an XCLIPED XREF called drawing1.dwg

than...in my drawing I have drawing1 as an XREF.
Now I need to remove the XCLIP on the imported XREF without affecting the drawing1.

I think that is not possible....but I just ask.
thank you.
Keep smile...

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Xref and Xclip
« Reply #1 on: April 10, 2012, 09:51:23 AM »
It is, insomuch as you can redefine the xref definition in the parent drawing. Of course any mods will be lost if you reload the xref or the parent drawing. I'm on my iPhone (on a bus) so no sample code from me. :lol:
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Xref and Xclip
« Reply #2 on: April 10, 2012, 05:36:19 PM »
Hi all,...

I ask this question on this section beacause I don't realy know if AutoCAD can do it..
I have a drawing who contain an XCLIPED XREF called drawing1.dwg

than...in my drawing I have drawing1 as an XREF.
Now I need to remove the XCLIP on the imported XREF without affecting the drawing1.

I think that is not possible....but I just ask.
thank you.
Ok, so let's look at this, you have three drawings, as follows:
Drawing 1 with Drawing 2 xRefed (and xClipped)
Drawing 3 with Drawing 1 inserted

Now in Drawing 3, you want to show Drawing 1 and Drawing 2 without xClipping.

So, what you need to do is:
  • In Drawing 1, make sure that Drawing 2 is inserted on it's own unique layer (I like $filename personally)
  • In drawing 3, you will need to retrieve the insertion point for Drawing 1
  • Then find the nested xRef (Drawing 2 in this case) and it's insertion point
  • You will now need to find what layer the nested xRef is inserted on in Drawing 1 and freeze the layer
  • Now, x-Ref drawing 2 directly into drawing 3, using the information found above.
Now, you can control the xClips seperately.

The better way to do this would be to set the xRef as an Overlay in drawing 1 and manually insert Drawing 2 into Drawing 3, along with Drawing1.