Creating a new layer and reactors...

tsigwing

Usenet Archive
Joined
Jun 26, 2003
Messages
76
Reaction score
0
I have created a reactor that will change the layer of any xrefs that are insert using VLR-beginAttach and it works fine if the layer exists. I have tried to use the (command "layer" "m") but it crashes out at this command, although it works fine at the command prompt. Is there something strange about using (command...) inside the reactor callback?

Troy
 
It's a no-no...

Don't use commands, because they're not transparent to another command being implemented. Also reactors can not stop another command while active.

Use activeX to create the layer.

I have created a reactor that will change the layer of any xrefs that are insert using VLR-beginAttach and it works fine if the layer exists. I have tried to use the (command "layer" "m") but it crashes out at this command, although it works fine at the command prompt. Is there something strange about using (command...) inside the reactor callback?
Troy
 
OK, got that part working. Another question. Can I change the current layer using VLR-beginAttach or is it too late. Seems to not work. I can create the layer and make it current, but not before the xref insert has occured.
 
Why not wait until it's done, then activex change last properties layer.

 

"tsigwing" <> wrote:

OK, got that part working. Another question. Can I change the current layer using VLR-beginAttach or is it too late. Seems to not work. I can create the layer and make it current, but not before the xref insert has occured.
 
Couldn't get this to work, so went with the vlr-command-reactor instead.
 

Latest threads

Back
Top