# Point3D does not work

**URL:** <https://forums.sketchup.com/t/point3d-does-not-work/632>\
**Category:** Ruby API\
**Created:** [August 27, 2014, 10:14pm UTC](https://forums.sketchup.com/t/point3d-does-not-work/632 "2014-08-27T22:14:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbierman2003](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@davidbierman2003](https://forums.sketchup.com/u/davidbierman2003)\
**Post date:** [August 27, 2014, 10:14pm UTC](https://forums.sketchup.com/t/point3d-does-not-work/632/1 "2014-08-27T22:14:39Z")

</div>

Hi All,

I am trying to plot 3D points using Sketchup. I used the Point3D code and the suggestions that are given on the following webpage, but nothing happens. Does anyone know what I am doing wrong?

[http://www.sketchup.com/intl/en/developer/docs/ourdoc/point3d](http://www.sketchup.com/intl/en/developer/docs/ourdoc/point3d)

Thanks,

David

---

<div class="post-metadata">

**Author:** ![tt\_su](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tt_su/32/17_2.png) [@tt\_su](https://forums.sketchup.com/u/tt_su)\
**Post date:** [August 27, 2014, 10:35pm UTC](https://forums.sketchup.com/t/point3d-does-not-work/632/2 "2014-08-27T22:35:08Z")

</div>

Make sure that you have set guides to be visible in your model. (View \> Guides)

If that isn’t the issue, then please post back exact code snippet you are trying and any errors you might be getting.

---

<div class="post-metadata">

**Author:** ![davidbierman2003](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@davidbierman2003](https://forums.sketchup.com/u/davidbierman2003)\
**Post date:** [August 27, 2014, 10:57pm UTC](https://forums.sketchup.com/t/point3d-does-not-work/632/3 "2014-08-27T22:57:02Z")

</div>

Yes the Guides are visible. There are no errors when I use the code given.

David

---

<div class="post-metadata">

**Author:** ![tt\_su](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tt_su/32/17_2.png) [@tt\_su](https://forums.sketchup.com/u/tt_su)\
**Post date:** [August 28, 2014, 8:38am UTC](https://forums.sketchup.com/t/point3d-does-not-work/632/4 "2014-08-28T08:38:00Z")

</div>

Ah, I should have understood what was going on when you first posted, alas.

`Geom::Point3d` doesn’t represent an entity. It’s a general data structure.  
What you want is `Sketchup::ConstructionPoint` which you add to the model using `Sketchup::Entities.add_cpoint`.

```ruby
point = Geom::Point3d.new(1, 2, 3)
Sketchup.active_model.active_entities.add_cpoint(point)

```

The `Sketchup::Entities` class’s `add_*` methods are what you use to add any kind of entity to the model.

---

<div class="post-metadata">

**Author:** ![davidbierman2003](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@davidbierman2003](https://forums.sketchup.com/u/davidbierman2003)\
**Post date:** [August 28, 2014, 3:33pm UTC](https://forums.sketchup.com/t/point3d-does-not-work/632/5 "2014-08-28T15:33:28Z")

</div>

Thanks for your help. I used the information you gave me and looked up  
this link.  
[http://www.sketchup.com/intl/en/developer/docs/ourdoc/constructionpoint](http://www.sketchup.com/intl/en/developer/docs/ourdoc/constructionpoint)

The above link provides everything I was looking for.

David
