# Persistent\_id for ComponentDefinition always returns zero

**URL:** <https://forums.sketchup.com/t/persistent-id-for-componentdefinition-always-returns-zero/60239>\
**Category:** Ruby API\
**Tags:** bug\
**Created:** [January 22, 2018, 10:23pm UTC](https://forums.sketchup.com/t/persistent-id-for-componentdefinition-always-returns-zero/60239 "2018-01-22T22:23:26Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [January 23, 2018, 10:40pm UTC](https://forums.sketchup.com/t/persistent-id-for-componentdefinition-always-returns-zero/60239/7 "2018-01-23T22:40:16Z")

</div>

> [@bcs99](#):
>
> … and a screen capture of the reproducible code.

Please see …

> [@\[How to\] Post correctly formatted and colorized code on the forum?](https://forums.sketchup.com/t/how-to-colourize-code-on-the-forum-wiki/46189/):
>
> Continuing the discussion from [Ruby backtick returns nothing!](https://forums.sketchup.com/t/ruby-backtick-returns-nothing/46120/17): Triple backtick delimiter lines. [What is a backquote ?](https://www.computerhope.com/jargon/b/backquot.htm) [image] Backquote character key on US keyboard. If it is error message text (or some other plain text that contains \<, \>, #, or other characters that can confuse Discourse markdown,) then specify “text” as a lexing language: ```text paste error message here ``` If it is Ruby, then: ```ruby # code here ``` If it is Javascript, then: ```javascript /\* js…

It is less of a drain on site resources (than images) and easier to copy and paste.

---

_[View the full topic](https://forums.sketchup.com/t/persistent-id-for-componentdefinition-always-returns-zero/60239)._
