Message 1 of 4

Not applicable
11-26-2015
02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm having trouble setting the default section type. To troubleshoot I tried the following code:
Sub SectionTest(document As Document) Dim id As ElementId = document.GetDefaultElementTypeId(ElementTypeGroup.ViewTypeSection)
document.SetDefaultElementTypeId(ElementTypeGroup.ViewTypeSection, id) End Sub
But get the following error:
"The element type id typeId is invalid for the give DefaultElementType id defaultTypeId."
Any ideas?
Solved! Go to Solution.