Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: [V8i C# Addin] Getting Area of a Fence

$
0
0

It almost does -- it defaults to a square fence where I want them to choose different points to get a polygon in the end. However, when I do the following code I don't get anything.

       private void cmbBoundTo_SelectedIndexChanged(object sender, EventArgs e)

       {

               if (cmbBoundTo.SelectedItem.ToString() == "Fence")

               {

                   s_comApp.CadInputQueue.SendCommand("PLACE FENCE", false);

                   s_comApp.CommandState.StartPrimitive(areaSelectionCommand, false);

               }

       }

After further testing, if I comment out the startprimitive command then it works...so there's something with the queued command and the startprimitive command that doesn't work together.


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>