Issue with DC animation

Hi everyone,

I’m running into a strange issue with a dynamic component animation and i can’t figure out what’s going wrong.

I’m creating a simple cabinet with a drawer. I want the drawer to open/close using an onclick animation along the Y axis.

My setup is very basic :

  • The drawer is a child component named “Tiroir”
  • I animate its Y position from -5 (closed) to -55 (open)

Here is the formula I’m using:

ANIMATEFAST(“Tiroir!Y”,-5,-55)

The problem is that SketchUp returns completely incorrect values during the animation, like -12,7 and -139,7, which seems to correspond to an unwanted inches/cm conversion (factor 2.54).

What I’ve already tried :

  • Rebuilding everything from scratch in a clean file
  • Making sure all components are at scale 1
  • Using a template in centimeters
  • Forcing units in the formula

Nothing works, the animation still behaves as if it’s using inches internally.

Has anyone experienced this issue with ANIMATE formula ?

Thanks in advance for your help !

One thing to check: Is the “display units format” checked in your Model Info >Units dialog?

If it is unchecked, all DC units revert to inches. A bug present since DCs were introduced.

Yes, this option is checked

It is always best to include your DC.

Try ANIMATEFAST(Tiroir!Y,-5,-55), no quotes
otherwise upload the DC

may have to use intermediate attribute than direct use of Tiroir!Y
generally, animation onclick is within object itself, so direct reference is used.

Because DC functions are an extension, there is some issues (bugs) that require work arounds. Built with inches, converted for metric, the DC will value text as inches, same with returns from functions, then should convert, but in some cases, it fails.

It would be best if DCs were native, and it seems that LCs are falling into same trap, code need to convert code, basically double the work, more than double the bugs!