Good day!
I need to do operations with vectors, for example I need to obtain the Reverse of a vector or the X component, but it turns out that I have this error.
I am trying to use Nodes in my Script
Good day!
I need to do operations with vectors, for example I need to obtain the Reverse of a vector or the X component, but it turns out that I have this error.
I am trying to use Nodes in my Script
I believe you should Unwrap the Vector to be able to use it in the API. I’ve never used Dynamo in Civil 3d, but this one should be the same as in Revit check this out: 4.4 Unwrapping Revit Elements - Dynamo Python Primer
If the vc=IN[0] is list(multiple vector items) put line 30 into a for cycle:
for v in vc:
a=Vector.Reverse(v)
Something like that.
But also, I’m sure there is a reverse node to skip all the python stuff.
It’s a little different
It’s just a vector.
I know that Node exists, I want to use it precisely in the Python Script to do more things
It’s a bit different than doing it in Revit, not much info either
Okay, then what if:
a=Vector.Reverse(vc[0])