Adreas,
I am using AutoCAD 2004 with Architectural Desktop, Service Pack 2 and the toolpalette extension. I have no way of knowing whether this has any effect because I don't have LT.
I attach a command log to exlain: (Parenthetical comments)
(create the block in layout IIIL)
Command: -block
Enter block name or [?]: junk
Specify insertion base point: 0,0
Select objects: 1 found (a viewport)
Select objects:
Command: *Cancel*
Command: *Cancel*
(switch layouts)
Command: <Switching to: IIIP>
Regenerating layout.
Command: -insert
Enter block name or [?]: junk
Specify insertion point or [Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]: 0,0
Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>:
Enter Y scale factor <use X scale factor>:
Specify rotation angle <0>:
Command: explode
Select objects: 1 found (the junk block)
Select objects:
Command: mview
Specify corner of viewport or
[ON/OFF/Fit/Shadeplot/Lock/Object/Polygonal/Restore/2/3/4] <Fit>: on
Select objects: all
111 found
108 were not a viewport.
1 was not in current space.
1 was the paper space viewport.
Select objects:
Regenerating model.
(obtain the xdata for the new viewport)
Command: (cdr(assoc -3 (entget(entlast) '("*"))))
(("ACAD" (1000 . "MVIEW") (1002 . "{") (1070 . 16) (1010 0.0 0.0 0.0) (1010 0.0
0.0 1.0) (1040 . 0.0) (1040 . 185.419) (1040 . 68.8675) (1040 . -4.69425) (1040 .. 50.0) (1040 . 0.0) (1040 . 0.0) (1070 . 0) (1070 . 10000) (1070 . 1) (1070 .
3) (1070 . 0) (1070 . 0) (1070 . 0) (1070 . 0) (1040 . 0.0) (1040 . 0.0) (1040 .. 0.0) (1040 . 0.5) (1040 . 0.5) (1040 . 0.5) (1040 . 0.5) (1070 . 0) (1002 . "{") (1003 . "dim") (1002 . "}") (1002 . "}")))
(go back to the previous layout)
Command: <Switching to: IIIL> (here I switch layouts back to original)
Regenerating layout.
(unerase the old viewport)
Command: oops
Regenerating model.
(obtain the xdata for the old viewport)
Command: (cdr(assoc -3 (entget(entlast) '("*"))))
(("ACAD" (1000 . "MVIEW") (1002 . "{") (1070 . 16) (1010 0.0 0.0 0.0) (1010 0.0
0.0 1.0) (1040 . 0.0) (1040 . 185.419) (1040 . 68.8675) (1040 . -4.69425) (1040 .. 50.0) (1040 . 0.0) (1040 . 0.0) (1070 . 0) (1070 . 10000) (1070 . 1) (1070 .
3) (1070 . 0) (1070 . 0) (1070 . 0) (1070 . 0) (1040 . 0.0) (1040 . 0.0) (1040 .. 0.0) (1040 . 0.5) (1040 . 0.5) (1040 . 0.5) (1040 . 0.5) (1070 . 0) (1002 . "{") (1003 . "dim") (1002 . "}") (1002 . "}")))
The results indicate that the new viewport, created in another layout has the same Xdata (layer settings) as the original. I don't know how else to demonstrate this. I also have a program that does this and it works fine. I used -block and -insert because they report on the command line but block and insert also work fine.
It is quite possible that LT and ACAD are somehow fundamentally different but this is something I can't test.
Sorry it didn't work for you Andreas. Perhaps someone more familiar with LT can help.
Regards,
Doug
Andreas Vasiliou said:
I just tried it in R2004 LT and doesn't work. Have you been using full Acad?
I also have inserted the vport block back into the SAME dwg. Have you done this as well?
Let me know.
Andreas
<snip>