# PCG - Can't subclass PCG metadata nodes - Subclasses of FSimplePCGElement not marked as extern with PCG\_API macro

**URL:** <https://forums.unrealengine.com/t/pcg-cant-subclass-pcg-metadata-nodes-subclasses-of-fsimplepcgelement-not-marked-as-extern-with-pcg-api-macro/1749661>\
**Category:** Feedback & Requests\
**Tags:** Procedural-Generation, modules, unresolved-external-, unreal-engine, api, procedural, Plugins, CPP\
**Created:** [March 13, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/pcg-cant-subclass-pcg-metadata-nodes-subclasses-of-fsimplepcgelement-not-marked-as-extern-with-pcg-api-macro/1749661 "2024-03-13T15:37:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vts\_bguiden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vts\_bguiden](https://forums.unrealengine.com/u/vts_bguiden)\
**Post date:** [March 13, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/pcg-cant-subclass-pcg-metadata-nodes-subclasses-of-fsimplepcgelement-not-marked-as-extern-with-pcg-api-macro/1749661/1 "2024-03-13T15:37:24Z")

</div>

I’m trying to extend from _ **FPCGMetadataElementBase** _ in C++ so I can implement more nodes in _PCG_ graphs for changing point attributes.

The issue is _ **FPCGMetadataElementBase** _ and all other subclasses of _ **FSimplePCGElement** _ aren’t marked as _extern_ with the _ **PCG\_API** _ _macro,_ so I can’t extend the classes in my game module without changing engine source code.

I’ve verified this is still the case in CL 31910460 in ue5-main branch.
