Placing points with lables, creating duplicate points at Z=0 and connecting them with lines in C3D's Model Space

Dynamo is like the 8th wonder of the planet but, for newbies like me, it can also be hell.

I have a table of points in Excel with 4 columns (“name”, X, Y and Z). For some of these points, Z=0 (simply because Z is, “at the moment”, unknown).

I wish to:

  1. Place these points in C3D’s Model Space;

  2. Create a separate list with the points for which Z is not 0 (Z<>0). From this list, I want to make Z=0 (I call these “clone points”) and also have them placed in C3D’s Model Space;

  3. Create lines connecting the “clone points” to their counterparts (these will be vertical lines from 0 to whatever the original elevation of the points are);

  4. Place the labels at a fixed distance from the points in C3D’s Model Space (say, X’ = X + 0.2 and Y’ = Y + 0.2, units = metres); and, finally

  5. Change the colour of the groups of points and of the lines separatelly.

If you know a bit of Dynamo, this could be pathetic but, for me, it is a nightmare.

I already did some bits with help from @zachri.jensen but there is still some distance to cover.

Any help will be much appreciated!



Dynamo Test - Import Points from Excel.dyn (129.6 KB)
20220601 - Raport Points - Dynamo Test.xlsx (9.7 KB)

Hi @alexmotta19,

Would you mind mind renaming some of your posts to be more descriptive of what problem they are trying to solve? The intent of the forum is to not only help yourself, but to also provide a resource for others in the future for others facing the same problem. Folks are likely not going to search for something called “Dynamo for Dummies”, but they might find it if it was called “Creating Lines from Points in Excel” or something like that.

2 Likes

Done. And thank you again!

1 Like

I am replying instead of editing the post so I can keep up with the history of the post.

I found out how to place MText following a tip from @zachri.jensen:

Now I couold tag you here, @WrightEngineering - many thanks!

1 Like

Thanks for tagging. Doesn’t look too bad. I’ll take a look when I can.

2 Likes

I believe this is your solution.
20220601 - Raport Points - Dynamo Test.xlsx (9.0 KB)
Dynamo Test - Import Points from Excel–SW Edit.dyn (195.1 KB)


I’d also check your excel file. See the one I have attached. Your numbers should be set as numbers not strings and you should add a header so a dictionary can be used and the excel import can be a bit more verbose.

Hope this helps.

THANK YOU VERY MUCH, @WrightEngineering!

I’ll look into it later (or earlier, either tomorrow or Monday) and I cannot express my gratitude!

Best wishes,
Alexandre.

1 Like

@WrightEngineering, thank you again for your help - but… would you know what to do when you get an error such as “Warning: Node ‘DSOffice.Data.OpenXMLImportExcel’ cannot be resolved.” (besides sitting in a corner and crying?).

I have “standard” C3D 2021 in the machine I am using. IT could not manage to install Dynamo for C3D 2022.

Many thanks again!

Dynamo License
Those portions created by Ian are provided with the following copyright:
Copyright 2017 Ian Keough
Those portions created by Autodesk employees are provided with the following copyright:
Copyright 2019 Autodesk, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
LIBG, ProtoGeometry, Analytics.NET, ADP, DynamoRaaS, GRegRevitAuth, AGET are closed source files licensed by Autodesk under the license that can be found here
Dynamo/Autodesk.rtf at master · DynamoDS/Dynamo · GitHub

Instrumentation
Dynamo now contains an instrumentation system. This anonymously reports usage data to the Dynamo team that will be used to enhance the usability the product. Aggregated summaries of the data will be shared back with the Dynamo community.
An example of the data communicated is:
“DateTime: 2013-08-22 19:17:21, AppIdent: Dynamo, Tag: Heartbeat-Uptime-s, Data: MTMxMjQxLjY3MzAyMDg=, Priority: Info, SessionID: 3fd39f21-1c3f-4cf3-8cdd-f46ca5dde636, UserID: 2ac95f29-a912-49a8-8fb5-e2d287683d94”
The Data is Base64 encoded. For example, the data field above (‘MTMxMjQxLjY3MzAyMDg=’) decodes to: ‘131241.6730208’ This represents the number of seconds that the instance of Dynamo has been running.
The UserID is randomly generated when the application is first run. The SessionID is randomly generated each time Dynamo is opened.

Third Party Licenses
Avalon Edit
Using AvalonEdit (WPF Text Editor) - CodeProject GNU Lesser General Public License version 3 | Open Source Initiative

CEFSharp
https://github.com/cefsharp/CefSharp/blob/master/LICENSE/

CSharpAnalytics
GitHub - AttackPattern/CSharpAnalytics: Google Analytics for Windows 8, Windows Phone & desktop applications http://www.apache.org/licenses/LICENSE-2.0

Cyotek.Drawing.BitmapFont

DirectX
https://github.com/DynamoDS/Dynamo/tree/master/tools/install/Extra/DirectX/License Agreements/DirectX SDK EULA.txt
https://github.com/DynamoDS/Dynamo/tree/master/tools/install/Extra/DirectX/License Agreements/directx redist.txt

Fontawesome

GNU gettext (libintl)
https://www.gnu.org/software/gettext/

Helix3D
https://helixtoolkit.codeplex.com/ https://helixtoolkit.codeplex.com/license

Immutable
https://github.com/dotnet/corefx/blob/master/LICENSE.TXT/

Iron Python, Dynamic Language Runtime
http://ironpython.net/ Apache License, Version 2.0 | Open Source Initiative

libiconv
https://www.gnu.org/software/libiconv/

libgcc, libstc++, libgomp

https://gcc.gnu.org/libstdc++/

http://www.gnu.org/licenses/gcc-exception.html

Portions of Libgcc are © 1988-2015 Free Software Foundation, Inc.
Portions or libstdc++ are © 2008-2014 Free Software Foundation, Inc.
Portions of libgomp are © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.

MiConvexHull
http://miconvexhull.codeplex.com/ http://miconvexhull.codeplex.com/license

Microsoft 2013 C Runtime DLLs, msvcp120.dll, msvcr120.dll

Microsoft 2015 C Runtime DLLs, msvcp140.dll, msvcr140.dll

Moq

NCalc
http://ncalc.codeplex.com/ http://ncalc.codeplex.com/license

NDesk Options
http://ndesk.org/Options#License

Newtonsoft JSON
GitHub - JamesNK/Newtonsoft.Json: Json.NET is a popular high-performance JSON framework for .NET Newtonsoft.Json/LICENSE.md at master · JamesNK/Newtonsoft.Json · GitHub

NUnit
http://www.nunit.org/ NUnit.org

OpenSans font from Google
Google Fonts Apache License, Version 2.0

Python Standard Library
https://docs.python.org/2.7/library/
https://docs.python.org/2.7/license.html

Prism
patterns & practices | Microsoft Docs Microsoft patterns & practices License | Microsoft Docs

RestSharp
http://www.apache.org/licenses/LICENSE-2.0

SharpDX

SimplexNoise
https://unlicense.org/

StarMath

Xceed Extended WPF Toolkit
Microsoft Public License

Yeah. That node isnt in your version of dynamo. Just use the other excel import node. Its just that you need excel installed to use the other original excel node so i tend to use open xml import.

I did not resist:

Thank you very much, @WrightEngineering!!!

1 Like