# Encountering 'Multiple Definitions' and 'Internal Error' with Code Block

**URL:** <https://forum.dynamobim.com/t/encountering-multiple-definitions-and-internal-error-with-code-block/106880>\
**Category:** Civil 3D\
**Tags:** codeblock, script\
**Created:** [December 29, 2024, 3:35pm UTC](https://forum.dynamobim.com/t/encountering-multiple-definitions-and-internal-error-with-code-block/106880 "2024-12-29T15:35:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harrieez43](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/harrieez43/32/191558_2.png) [@harrieez43](https://forum.dynamobim.com/u/harrieez43)\
**Post date:** [December 29, 2024, 3:35pm UTC](https://forum.dynamobim.com/t/encountering-multiple-definitions-and-internal-error-with-code-block/106880/1 "2024-12-29T15:35:50Z")

</div>

I recently upgraded my Civil 3D from the 2024 version to 2025 and am now using Dynamo version 3.3.0. I have encountered an issue while trying to create a **Point.ByCoordinates** script using a Code Block. It runs with warnings such as **Multiple definitions** and **Internal error**. Additionally, I noticed same warning when using the **Line.ByStartPointEndPoint** script.

I’ve attached a screenshot detailing the warnings for reference. For packages, I only have **Camber** and **The Civil Nodes** installed. I would greatly appreciate any guidance on resolving this issue. 🙏 Thank you. 🙂

 ![Screenshot 2024-12-29 230825](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/3/c3fe09f692e3d5cd3b34562a0c068a5ec2ce8369.png)  
 ![Screenshot 2024-12-29 231217](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/0/50b07baf514545b26ae756566cd77f15112c4f04.png)  
 ![Screenshot 2024-12-29 231548](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/8/088f4f64acc2db11e9962978918f7ecbd551d7b1.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [December 29, 2024, 4:07pm UTC](https://forum.dynamobim.com/t/encountering-multiple-definitions-and-internal-error-with-code-block/106880/2 "2024-12-29T16:07:17Z")

</div>

Because Dynamo for Civil 3D has a Line class and Dynamo itself has a Line Class, you need to specify which you are trying to do. The same issue occurs with Point if you install Camber as it has a Point class as well. This is called namespace collision.

So you will need to put a prefix of `DesignScript` or `AutoCAD` in front of the call so that Dynamo knows what you’re trying to do.

You can also place a node on canvas to create the line using the method you’re after, add anything as an input, select the node, right click the workspace background and select “Node to Code” to generate the full line of DesignScript. This will give you the full prefix - you’ll just have to replace the variable inputs with your desired content.

---

<div class="post-metadata">

**Author:** ![harrieez43](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/harrieez43/32/191558_2.png) [@harrieez43](https://forum.dynamobim.com/u/harrieez43)\
**Post date:** [December 31, 2024, 12:38am UTC](https://forum.dynamobim.com/t/encountering-multiple-definitions-and-internal-error-with-code-block/106880/3 "2024-12-31T00:38:41Z")

</div>

Hi @jacob.small

Thank you so much for your guidance! I implemented your suggestions, using the appropriate prefixes and the “Node to Code” approach, and it worked like a charm. The namespace collision issue is now resolved, and I was able to complete my first Dynamo graph successfully!

Your advice made all the difference, and I’ve learned a lot from this experience. I truly appreciate your kindness and detailed explanation—it’s been incredibly helpful.

Thanks again for your support, and I look forward to continuing to learn from experts like you in the community. 😄

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a2830b6aaa7b570fc3054e7d925f9b70b6637f86.png)
