# Make unique, a manually placed component

**URL:** <https://forums.sketchup.com/t/make-unique-a-manually-placed-component/57300>\
**Category:** Ruby API\
**Created:** [December 9, 2017, 10:20pm UTC](https://forums.sketchup.com/t/make-unique-a-manually-placed-component/57300 "2017-12-09T22:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 10, 2017, 12:29am UTC](https://forums.sketchup.com/t/make-unique-a-manually-placed-component/57300/2 "2017-12-10T00:29:24Z")

</div>

> [@dynamiqueagencement](#):
>
> ```plaintext
> mod = Sketchup.active_model
> path = Sketchup.find_support_file("MyComponent.skp", "Plugins/plugin folder/subfolder/")
> Component = mod.import(path)
> 
> ```

For the **4th time** , will you please read this sticky post and apply it when posting code here in the forum !

> [@\[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…

… so that your code is properly lexed like:

```ruby
  mod = Sketchup.active_model
  path = Sketchup.find_support_file("MyComponent.skp", "Plugins/plugin folder/subfolder/")
  component = mod.import(path)

```

(Notice that I changed the constant reference `"Component"` to the local variable reference `"component"` !)

Also, it is better forum code etiquette if readers do not need to scroll horizontally to read your code. So please wrap argument lists in method calls like:

```ruby
  mod = Sketchup.active_model
  path = Sketchup.find_support_file(
    "MyComponent.skp", "Plugins/plugin folder/subfolder/"
  )
  component = mod.import(path)

```

---

_[View the full topic](https://forums.sketchup.com/t/make-unique-a-manually-placed-component/57300)._
