# CodeGen options

**URL:** https://talk.remobjects.com/t/codegen-options/25696
**Category:** Remoting SDK
**Tags:** codefirst, codegeneration
**Created:** [November 12, 2021, 4:01pm UTC](https://talk.remobjects.com/t/codegen-options/25696 "2021-11-12T16:01:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rjantz](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@rjantz](https://talk.remobjects.com/u/rjantz)
#### Post date: [November 12, 2021, 4:01pm UTC](https://talk.remobjects.com/t/codegen-options/25696/1 "2021-11-12T16:01:18Z")

</div>

What are the command line options for rodl2code.exe for generating an implementation .pas file with the options shown in the graphic below?

 ![CodeGenOptions](https://talk.remobjects.com/uploads/default/original/3X/7/9/79f0f0b2d6715d4c67334b35dda345d471109490.png)

It looks from the help displayed by the command line that I can set the code first option but how can I set the others?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [November 12, 2021, 4:32pm UTC](https://talk.remobjects.com/t/codegen-options/25696/2 "2021-11-12T16:32:44Z")

</div>

Hi,

these options aren’t supported by rodl2code.

if you want, you can create Delphi utility based on attached Delphi example [rocg4\_helper.zip](https://talk.remobjects.com/uploads/short-url/pIVS7C1mKpZATTuaOzOV4t7zb4x.zip) (21.6 KB)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [November 12, 2021, 4:43pm UTC](https://talk.remobjects.com/t/codegen-options/25696/5 "2021-11-12T16:43:49Z")

</div>

Logged as [bugs://D19181](https://www.remobjects.com/portal/bugs/?id=D19181).

---

<div class="post-metadata">

### Author: ![rjantz](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@rjantz](https://talk.remobjects.com/u/rjantz)
#### Post date: [November 12, 2021, 4:58pm UTC](https://talk.remobjects.com/t/codegen-options/25696/6 "2021-11-12T16:58:13Z")

</div>

I am unable to compile the rocg4\_helper project because I have not been able to locate a dcu or pas file named ToolsAPI. Any ideas where it might be?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [November 12, 2021, 5:03pm UTC](https://talk.remobjects.com/t/codegen-options/25696/7 "2021-11-12T17:03:16Z")

</div>

Hi,

add `C:\Program Files (x86)\RemObjects Software\RemObjects SDK for Delphi\Source\IDE` to `Search Path` and rebuild project.

In this case, `uROCodegen4Helper` unit will be compiled w/o design-time units

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [November 26, 2021, 3:14pm UTC](https://talk.remobjects.com/t/codegen-options/25696/8 "2021-11-26T15:14:44Z")

</div>

[bugs://D19181](https://www.remobjects.com/portal/bugs/?id=D19181) was closed as fixed.

---

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [April 7, 2022, 4:20pm UTC](https://talk.remobjects.com/t/codegen-options/25696/9 "2022-04-07T16:20:35Z")

</div>

FYI: I get another error but it can also be resolved by expanding the search path

 ![afbeelding](https://talk.remobjects.com/uploads/default/original/3X/e/5/e58613378bfb26d55489c3ba79cabc3b7bb5550b.png)

Note: My v10.0.0.1521 still has to add the searchpath for ToolsAPI too

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [April 8, 2022, 6:19am UTC](https://talk.remobjects.com/t/codegen-options/25696/11 "2022-04-08T06:19:54Z")

</div>

Hi,

```auto
  {$IFDEF DESIGNTIME}uEWOTAHelpers,{$ENDIF}

```

this unit is required in DESIGNTIME mode, i.e. when this file is used in RO\_IDE package only
