# Text.Create block input needs Vector, not CoordinateSystem

**URL:** <https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293>\
**Category:** Civil 3D\
**Created:** [February 20, 2024, 10:45pm UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293 "2024-02-20T22:45:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew.schwartz5CEL](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@matthew.schwartz5CEL](https://forum.dynamobim.com/u/matthew.schwartz5CEL)\
**Post date:** [February 20, 2024, 10:45pm UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/1 "2024-02-20T22:45:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/9/39b75394790575e763e34b2d48168b7ef03ea5a2.png)  
I’m very novice with Dynamo, and I’m stuck on the “block” input on Text.Create. In previous scripts I’ve been able to use Document.ModelSpace as the input, but I’m getting an error with this script saying it needs Autodesk.DesignScript.Geometry.Vector and not Autodesk.DesignScript.Geometry.CoordinateSystem.

I’m not sure what to plug in. Any help would be appreciated.

---

<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:** [February 20, 2024, 10:52pm UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/2 "2024-02-20T22:52:55Z")

</div>

Model space is correct. The issue is with another input - my guess is the Rotation is off. Try swapping that Curve.CoordinateSystemAtParameter node with a Curve.TangentAtParameter node.

---

<div class="post-metadata">

**Author:** ![matthew.schwartz5CEL](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@matthew.schwartz5CEL](https://forum.dynamobim.com/u/matthew.schwartz5CEL)\
**Post date:** [February 20, 2024, 11:13pm UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/3 "2024-02-20T23:13:24Z")

</div>

I did the swap and I get this error:  
Warning: Text.Create expects argument type(s)  
(string, Autodesk.DesignScript.Geometry.Point, double, Autodesk.DesignScript.Geometry.Vector, string, string, string, Autodesk.AutoCAD.DynamoNodes.Block),  
but was called with  
(string, Autodesk.DesignScript.Geometry.Point, double, Autodesk.DesignScript.Geometry.Vector, string, int, string, Autodesk.AutoCAD.DynamoNodes.Block).

To me, that seems like it is saying the same thing other than the “” after point. Don’t know what that means. The error only happens when I have the “Block” plugged in, otherwise nothing happens.

---

<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:** [February 21, 2024, 1:58am UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/4 "2024-02-21T01:58:21Z")

</div>

The `[]` is indicating a list of the object types.

As a tip: copy the contexts to a string node for the expected input and provided input. Then use a List.Create node followed by a String.Split node where the split string is `, `. Then use a List.Transpose node to show ‘what it wanted’ above ‘what it got’.

In this case if you read the last three inputs the issue is clear.

The expected are string, string, block.

The provided are int, string, block.

So double check the third input from the end. Looks like you’re using a vertical alignment for the horizontal and another text method for the vertical.

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [February 21, 2024, 4:24am UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/5 "2024-02-21T04:24:36Z")

</div>

Agree with @jacob.small but to be sure, please add a new screenshot of the updated graph. It makes it easier to review.

---

<div class="post-metadata">

**Author:** ![matthew.schwartz5CEL](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@matthew.schwartz5CEL](https://forum.dynamobim.com/u/matthew.schwartz5CEL)\
**Post date:** [February 21, 2024, 5:57am UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/6 "2024-02-21T05:57:38Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/3/933d1b30da44a680fcb37b381c39be14d64a8611.png)  
Looks like we are in business! It is picking up a bunch of null data from somewhere, but the script works as expected. Using string nodes as opposed to Code Blocks seemed to clear things up.

I didn’t follow what you said about using List.Create, String.Split and List.Transpose unfortunately though. I got this to play with so I feel better now that it is functional, and I’ll give it another shot later as I try and figure out more.

Thank you for the help!

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [February 21, 2024, 6:47am UTC](https://forum.dynamobim.com/t/text-create-block-input-needs-vector-not-coordinatesystem/98293/7 "2024-02-21T06:47:04Z")

</div>

The null appears because you probably have other objects than the PolylineExtension.GetGeometry can handle, as you see in my example the node gets Polylines, Circle and texts as a input and return null for the texts.  
Depending on the purpose you can get “All Objects of Type” and then filter in Object Layer

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/701c3fbfbf2c757e0b84fe92c9113cab5c3e861d.png)
