Editor.Command and Layer....

Editor.Command and Layer....

Anonymous
Not applicable
607 Views
3 Replies
Message 1 of 4

Editor.Command and Layer....

Anonymous
Not applicable

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?

 

0 Likes
608 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

also tried,

 

Ed.Command("_.-LAYER", "ON", LayerName,"")

Ed.Command(new Object() {"_.-LAYER", "ON", LayerName,""})

Ed.Command(new Object() {"_.-LAYER", "ON", LayerName,"",""})

 

just, cause.

0 Likes
Message 3 of 4

Anonymous
Not applicable

also tried it as a session command.

0 Likes
Message 4 of 4

Anonymous
Not applicable

gave up, did it though non command line code.

0 Likes