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

0 Members and 2 Guests are viewing this topic.

KewlToyZ

  • Guest
Re: Xref overlay without detach
« Reply #15 on: November 14, 2008, 03:41:52 PM »
I got this routine from here, couldnt remember the post it was from.
x2a turns them all to attachments x2o changes them all to overlays

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: Xref overlay without detach
« Reply #16 on: November 19, 2008, 04:26:12 PM »
detaching is very undesirable, as I have tried that approach of recording the original data, and resetting afterwards.
Its ok on simple stuff, but anything complicated like nested items, or multiple viewports makes it really involved to do.  It would be far, far, better to be able to change the attach flag via the API.
James Maeding

Bob Wahr

  • Guest
Re: Xref overlay without detach
« Reply #17 on: November 19, 2008, 04:51:05 PM »
I agree that it would be swell to be able to change an xref from an attachment to an overlay, but AutoCAD doesn't give that ability at this point in time.

jjs

  • Guest
Re: Xref overlay without detach
« Reply #18 on: November 19, 2008, 05:31:15 PM »
what about with dotted pairs in lisp? You used to be able to look at the dotted pairs and change those directly. Someone on vbdesign even came up with a vba routine that changed the dotted pairs.

jjs

  • Guest
Re: Xref overlay without detach
« Reply #19 on: November 19, 2008, 05:34:53 PM »
http://www.autodesk.com/techpubs/autocad/dxf/dxf2002.pdf
70 - 8 seems to be overlay.
Code: [Select]
Block group codes (continued)

100 Subclass marker (AcDbEntity)
8 Layer name
100 Subclass marker (AcDbBlockBegin)
2 Block name
70 Block-type flags (bit coded values, may be combined):
0 = Indicates none of the following flags apply
1 = This is an anonymous block generated by hatching, associative
dimensioning, other internal operations, or an application
2 = This block has non-constant attribute definitions (this bit is not set if
the block has any attribute definitions that are constant, or has no
attribute definitions at all)
4 = This block is an external reference (xref)
8 = This block is an xref overlay
16 = This block is externally dependent
32 = This is a resolved external reference, or dependent of an external
reference (ignored on input)
64 = This definition


jjs

  • Guest
Re: Xref overlay without detach
« Reply #20 on: November 19, 2008, 05:47:14 PM »
TWO DXF FILES, ONLY DIFFERENCE WAS XREF TYPE.

OVERLAY
Code: [Select]
AcDbEntity
  8
0
100
AcDbBlockBegin
  2
0800200GTB
 70
    44

 10
0.0
 20
0.0
 30
0.0
  3
0800200GTB
  1
..\arch\0800200GTB.dwg
  0
ENDBLK

ATTACH
Code: [Select]
AcDbEntity
  8
0
100
AcDbBlockBegin
  2
0800200GTB
 70

    36
 10
0.0
 20
0.0
 30
0.0
  3
0800200GTB
  1
..\arch\0800200GTB.dwg
  0
ENDBLK

jjs

  • Guest
Re: Xref overlay without detach
« Reply #21 on: November 19, 2008, 05:49:41 PM »
if you change the 36 to 44 or vice versa and open the dxf, the attachement type changes accordingly.

Bob Wahr

  • Guest
Re: Xref overlay without detach
« Reply #22 on: November 19, 2008, 06:17:56 PM »
Wasn't it SCMDave who was doing that.