Message 1 of 4
Editor.Command and Layer....

Not applicable
04-14-2015
11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
ok. I'm trying to use the editor.command method. it's in a modal command but is being called from events like "newFocus" or "layoutswitched".
still, I'm confused on why I get eInvalidInput no matter what I try.
if
ed=doc.editor
dim layname as string = layerToBeSwitchedOn
then I've tryied:
Ed.Command("_.-LAYER", "ON", LayerName)
Ed.Command("_.-LAYER", "ON", LayerName,"","")
Ed.Command("_.-LAYER", "ON", LayerName,vbcr,vbcr)
Ed.Command("_.-LAYER", "ON", LayerName,vblf,vblf)
Ed.Command("-LAYER", "ON", LayerName)
Ed.Command("-LAYER", "ON", LayerName,"","")
Ed.Command("-LAYER", "ON", LayerName,vbcr,vbcr)
Ed.Command("-LAYER", "ON", LayerName,vblf,vblf)
apparently, none of which is valid. please explain?