SketchUp/ruby-api-stubs

Sketchup::Entity#persistent_id

jonsketch opened this issue · 3 comments

Task is to be more specific on which entities will return a unique persistent id. Documentation should also state that a value of 0 is returned for entities that do not currently have this functionality.

@jonsketch - do we have such a list internally?

SketchUp/api-issue-tracker#29 (comment)

I looked up the source and found that the documentation isn't accurate. The items you get PIDs from are:

  • Entities that you can iterate over in a Sketchup::Entities collection.
  • Sketchup::Curve
  • Sketchup::Page
  • Sketchup::Vertex

Persistent ids are intended for things you find in the model - meaning component instances, but not definitions.

May I ask what you tried to use PIDs for component definitions for?