Hello!
Its needed to animate simple closed polyline by transforming it vertices.
The drawing is huge, and only one polyline needed to animate.
Is the using of transform by matrix methods from .NET API, and calling Editor.Regen() after every changing polyline geometry by timer
-
the best way for animating single object?
Solved! Go to Solution.
Solved by DiningPhilosopher. Go to Solution.
Can you explain a little more what you mean by animate? Why do you need to do this?
Moving sliders has to do with 'how'. I wanted to know 'why'. Why this kind of user interaction? It doesn't seem very precise.
@rutar wrote:Hello!
Its needed to animate simple closed polyline by transforming it vertices.
The drawing is huge, and only one polyline needed to animate.
Is the using of transform by matrix methods from .NET API, and calling Editor.Regen() after every changing polyline geometry by timer
-
the best way for animating single object?
No, it is not. Regen() will regenerate the entire drawing. You only need to regenerate the object(s) you are animating. You can do that by modifying the objects and then calling the TransactionManager.s QueueForGraphicsFlush() and FlushGraphics() methods, along with the Editor's UpdateScreen() method.
Oh, and BTW, you don't have to explain to anyone here why you need to animate objects, that's a common scenario in AutoCAD development especially when you are using a graphical UI (e.g., slider controls) to drive parameters that control the object's appearance.
Hello!
Thank you, that is the answer Im looking for.
@DiningPhilosopher wrote:
Oh, and BTW, you don't have to explain to anyone here why you need to animate objects, that's a common scenario in AutoCAD development especially when you are using a graphical UI (e.g., slider controls) to drive parameters that control the object's appearance.
Im coding in C# one simple plug-in to AutoCAD, to draw vehicle swept path. User can modify vehicle steering/speed parameters - and vehicle swept path boundary (closed polyline) must react immediately, user can realtime evaluate and choose road/intersection geometry, Edge of Travelled Way, max speed, vehicle type.
Yes, that's must be common AutoCAD development scenario, but unfortunately Im not advanced Autodesk developer, and cant find any info about this scenario.
Actually, I remembered that used those methods before.
Thank you very much!
@rutar wrote:Hello!
Im coding in C# one simple plug-in to AutoCAD, to draw vehicle swept path. User can modify vehicle steering/speed parameters - and vehicle swept path boundary (closed polyline) must react immediately, user can realtime evaluate and choose road/intersection geometry, Edge of Travelled Way, max speed, vehicle type.
Yes, that's must be common AutoCAD development scenario, but unfortunately Im not advanced Autodesk developer, and cant find any info about this scenario.
Actually, I remembered that used those methods before.
Thank you very much!
Thank you for sharing. It sounds like an interesting project.