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

ActiveDepthDistanceFromGlobalOrigin and Dynamic IPrimitiveCommandEvent

$
0
0

hello, I'm using the example of C # .NET Template with IPrimitiveCommandEvents Class and it works perfectly, but I have a problem:

1. I am drawing a line with depth 298 (for example).
2. When I finish drawing I want to increase the depth (Z) in 1 meter, the code is:
      ActiveDesignFile.Views [1] .ActiveDepthDistanceFromGlobalOrigin = 299;
      ActiveDesignFile.Views [1] .Redraw ();
      ActiveDesignFile.Save ();

2. The depth changes without problems to 299.

3. Restart the process to draw the next line
      CommandState.StartPrimitive (new Template_Primitive_Event_Class ());
      CommandState.StartDynamics ();

4. When the Dynamic event is triggered, the depth (Z) of the Point (dynamic) is still the previous 298 (incorrect), however ActiveDepthDistanceFromGlobalOrigin is 299 (correct)

What I can be doing wrong ?

Thanks, I'm waiting for your help

Kala


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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