Hi
I get attached warnings - can anyone guide?
I basically created a corridor based on alignment and an assembly and want to place a block along the corridor.
Typical errors are like:
Corridor.Baselines = This featureline-based baseline is invalid
ListFirstItem = Operation failed - Object reference not set to an instance of an object
CorridorFeatureLine.StartStation = Dereferencing a non-pointer
Hi,
Share your files to test this .Dyn.
I get told that new users can´t upload files hmm
I bumped your trust level, so you can try again after a few minutes. If it still doesnât work use a 3rd party site like onedrive, google drive, box, dropbox, wetransfer, etc.
Mast.dyn (42.9 KB)
Vej med objekter.dwg (3.5 MB)
I think Corridor.Baselines
doesnât accept corridors created from feature lines. I created an alignment, ran the graph, and it worked fine.
Hi
It still doesn´t work for me.
Will you share the file so I can see the sequence of changes?
I didnât change anything; I just created an alignment with a profile and set it as the baseline for the corridor, then rebuilt it.
Oh I see, it works now, thank you for the quick help, much appreciated!
Master.dwg (3.1 MB)
Mast.dyn (42.9 KB)
I get errors again at the âcoordinates originâ stuff. Can somebody kindly help
Hi,
Please delete the existing featureline and execute the script (Iâve made some modifications).
Mast(1).dyn (81.8 KB)
I have deleted the featurelines for the corridor but it still doesnt show the mast (blocks) when running the script - does it work for you?
Yes it works, i tested before sending to you.
Are you in âLargeâ geometry scaling? If so go back to medium.
When Medium I get this response.
Before I was in Large but in both cases it doesnt work.
Can it have to do with that the objects are very far from 0,0,0? X = 516675.906 Y = 6169169.584
Ignore that warning as any issue youâre having is occuring after this. The data is processed just fine but Dynamo wontâ display it well. Since youâre keeping the camera on the origin not seeing anything in the Dynamo preview it wonât impact you anyway.
Alternatively you can use a Function.Apply node or List.Map node and leverage the warning suppression that function passing provides. But this suppresses ALL warnings not just this one and runs slower than regular node execution.
Will you kindly show how that alternative would look like in a diagram?
Here is an example with List.Map. Function apply is similar.
https://dictionary.dynamobim.com/#/Core/List/Action/List.Map
The gist of it is remove one input (ideally a flat list) from the CorridorFeatureLine.CoordinateSystemByStation and wire that into the âlistâ input of List.Map
or Function Apply
. Then wire the now âgreyâ node from the Revit API into the List.Map or Function.Apply as the Function
input.
Okay I will give it a try. The mystic part is though that the script didnt work when I added the 3d polyline alignment as breakline to the surface. Before it was a flat surface.