Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8530

Panels - what can they do?

$
0
0

@killwater wrote:

Hello
I have a docked panel lets call it DefaultPanel that contains only a label. After calling a Command1 I ask the user for an object and then I add a custom UserControl chosen based on ObjRef from Command1. Then the command returns.

When the user changes the value in the UserControl I fire a command Worker which can do whatever I want. However I would not want to use the command Worker or use it only when necessary. So what cannot be done from the Panel and requires the command to run? I usually create an extrusion or polysurface with the plugin with some data attached to it.

I found it not possible so far to add or delete objects in the document. Is this correct?
In this case I could run the Worker command like this:

RhinoApp.RunScript("_Worker",true);

How can I pass the ObjRef to this command in such a case?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8530

Trending Articles