Message 1 of 6
Find Last Layout
Not applicable
01-23-2008
12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In order to create a new layout in my drawing, I'm trying to copy the last layout in my drawing...with the following code...
objAcad.ActiveDocument.SendCommand("layout" & vbCr & "c" & vbCr & _ objAcad.ActiveDocument.Layouts.Item(objAcad.ActiveDocument.Layouts.Count).Name & vbCr)
Code which quickly returns the error message..."Value does not fall within the expected range."
I'm trying to somehow refer to the last layout in my drawing...
Could anyone lend a hand please??
Thanks!
Pete
objAcad.ActiveDocument.SendCommand("layout" & vbCr & "c" & vbCr & _ objAcad.ActiveDocument.Layouts.Item(objAcad.ActiveDocument.Layouts.Count).Name & vbCr)
Code which quickly returns the error message..."Value does not fall within the expected range."
I'm trying to somehow refer to the last layout in my drawing...
Could anyone lend a hand please??
Thanks!
Pete