  | | | How to find out the selected layer in VBS | How to find out the selected layer in VBS 2004-02-26 - By Jose Luis Gomez
Back Hi Sandy
If I've undestood you well, I think this can do the job...
GetCurrentLayer oCurrLayer MoveToLayer oCurrLayer, Selection.GetAsText
Cheers
/Jose Gomez
Sandy Sutherland wrote:
> How can I find out what layer is current - so that I can create a > button to add the selelected geometry to the current layer - is this > possible?? VBS BTW! > > Thanks > > Sandy > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > Sandy Sutherland Digital Doodeller/Technical Director > The Refinery (Cape) http://www.refinery.co.za > mailto:sandy@(protected) > (P) (+27 21) 480 3333 (F) (+27 21) 480 3101 > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> Hi Sandy<br> <br> If I've undestood you well, I think this can do the job...<br> <br> GetCurrentLayer oCurrLayer<br> MoveToLayer oCurrLayer, Selection.GetAsText<br> <br> Cheers<br> <br> /Jose Gomez<br> <br> Sandy Sutherland wrote:<br> <blockquote type="cite" cite="mid020301c3fbb8$fbc14f10$026326c4@(protected)"> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2800.1276" name="GENERATOR"> <style></style> <div><font face="Arial" size="2">How can I find out what layer is current - so that I can create a button to add the selelected geometry to the current layer - is this possible?? VBS BTW!</font></div> <div> </div> <div><font face="Arial" size="2">Thanks</font></div> <div> </div> <div><font face="Arial" size="2">Sandy</font></div> <div> </div> <div><font face="Arial" size="2">-- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ------<br> Sandy Sutherland Digital Doodeller/Technical Director<br> The Refinery (Cape) <a href="http://www.refinery.co.za">http://www .refinery.co.za</a><br> <a href="mailto:sandy@(protected)">mailto:sandy@(protected)</a><br> (P) (+27 21) 480 3333 (F) (+27 21) 480 3101<br> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----</font></div> </blockquote> </body> </html>
|
|
 |