Message 1 of 3
copy layout

Not applicable
10-16-2007
01:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
In a drawing i have a layout "Lot_1"
I want copy it in "Lot_2", "Lot_3" ....
My code :
On Error Resume Next
Set presentation_existante = ThisDrawing.Layouts("Lot_1")
If Err Then
MsgBox "La présentation ""Lot_1"" n'existe pas"
Else
For i = 2 To nombre_lots
Set nouvelle_presentation = ThisDrawing.Layouts.Add("Lot_" & i)
nouvelle_presentation.CopyFrom presentation_existante
Next
End If
After, the news layouts "Lot_2", Lot_3" .... exists but the mviews from
"Lot_1" are not in them
Thank for your help
--
Bernard Flavignard
France
www.guidonchalettois.fr
In a drawing i have a layout "Lot_1"
I want copy it in "Lot_2", "Lot_3" ....
My code :
On Error Resume Next
Set presentation_existante = ThisDrawing.Layouts("Lot_1")
If Err Then
MsgBox "La présentation ""Lot_1"" n'existe pas"
Else
For i = 2 To nombre_lots
Set nouvelle_presentation = ThisDrawing.Layouts.Add("Lot_" & i)
nouvelle_presentation.CopyFrom presentation_existante
Next
End If
After, the news layouts "Lot_2", Lot_3" .... exists but the mviews from
"Lot_1" are not in them
Thank for your help
--
Bernard Flavignard
France
www.guidonchalettois.fr