I have several shape file points that I have imported into Civil 3D as AutoCAD points that also have object data (OD) attached. I need to convert these AutoCAD points to cogo points and also include the OD items.
Is there a collection of nodes that will allow me to make this happen? I have some experience with Dynamo and I just want to know if this is possible. Any and all suggestions are welcome. Thank you for taking the time to read and I hope respond.
Thank you so much! I owe you several beers sir! you got me 90% of the way there. I just had to add an additional set of nodes to take a specific OD record and input it as the point name.
I hope my screenshot shows up.
Hi,
I just tried your ODExample.dyn graph on a drawing containing AutoCAD Points with OD Numbers. It worked, creating COGO Points, after I put in the Table Name. I have some questions.
How do you add the helpful titles on the colored rectangle collections?
What are Dictionary Keys and Dictionary Values?
What is a DBPoint?
What is the difference between OdRecord.Create and OdRecord.SetValueByName?
Thank you.
Dave
A DBPoint is just AutoCADâs internal name for a basic point object. So if you type POINT at the command line, you are creating a DBPoint.
An OD record is basically a row in the OD table, so there is an OD record for each object that has OD data âattachedâ to it. The OdRecord.Create node essentially says âattach OD data to this objectâ, which in turn creates a record in the OD table. But after doing that, none of the OD values have actually been set - they will just be blank. So the OdRecord.SetValueByName node sets the values, just like if you were typing them in the Properties pane.
Hi Mike,
Iâm trying to add OD to both Point Name and Description.
I canât get your added Nodes to work. Can I get a screen shot of the Min, Max, and Step values you used in the Number and Integer Sliders?
Also, what does Flatten do?
Thanks.
Dave
Hi Zachri,
Thank you. Yup, Iâve been reading the Dynamo Primer non-stop for a week now. Every page. I just donât understand much of it.
Iâd really like to understand why Mike chose List.Flatten and what it does with your graph. It seems like such a simply thing, just add the OD to each COGO Point Name and Raw Description.
Dynamo holds such promise, but I donât think Iâm smart enough to even modify a graph.
Dave
Of course you are! You just need some more practice.
One difference I see between your graph and the screenshot here is the lacing on the List.GetItemAtIndex node (check the lower right-hand corner). Itâs a subtle thing but makes a big difference. The lacing is set to âLongestâ, whereas in your example it is left set at the default of âAutoâ. More on lacing here: https://primer.dynamobim.org/06_Designing-with-Lists/6-1_whats-a-list.html
Zachri,
Thank you. A key distinction indeed that I wasnât paying attention to. I had wondered whether lacing was global or needed to be set for each node.
Dave
Hi, I would like to ask you about a problem i have that is related to this topic. I have in Civil 3D some polygons that I import from a SHP and I try to obtain the values of the attributes in Dynamo as you show, but all the values come out as 0. I would like to know if I am not extracting the information as I should or if there is some other way to do it.
I would be very grateful if any of you have any idea that could help me.