I am quite new to the I am trying to create a small plugin to automate a process that I do all the time.
Here is what I want to do:
- User select a closed curve (rectangle)
- Run the plugin command
- A form will come up for user to select some options for the pattern, for example, Round or square
- When user press OK in the dialog box, the pattern is filled into the closed curve.
Has anyone done something like this before??
This is what I tried, but get ObjectCount is always 0 even I have selected some object.
// Check the selected curve GetObject go = new GetObject(); go.GroupSelect = true; go.SubObjectSelect = false; go.EnableClearObjectsOnEntry(false); go.EnableUnselectObjectsOnExit(false); go.DeselectAllBeforePostSelect = false; go.EnableSelPrevious(true); go.EnablePreSelect(true, false); go.GeometryFilter = Rhino.DocObjects.ObjectType.Curve; GetResult result = go.Get();