.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking for best way for animating single objects

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
rutar
552 Views, 6 Replies

Looking for best way for animating single objects

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? 

 

 

6 REPLIES 6
Message 2 of 7
Ed.Jobe
in reply to: rutar

Can you explain a little more what you mean by animate? Why do you need to do this?

Ed

EESignature

Message 3 of 7
rutar
in reply to: Ed.Jobe

It is needed  to change realtime curve geometry by moving slider controls.

 

 

 

Message 4 of 7
Ed.Jobe
in reply to: rutar

Moving sliders has to do with 'how'. I wanted to know 'why'. Why this kind of user interaction? It doesn't seem very precise.

Ed

EESignature

Message 5 of 7
DiningPhilosopher
in reply to: rutar


@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.

Message 6 of 7
rutar
in reply to: DiningPhilosopher

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!

 

 

 

 

 

 

 

Message 7 of 7
Ed.Jobe
in reply to: rutar


@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.

Ed

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost