Exporting 3D polyline with property set data to SHP file

Exporting 3D polyline with property set data to SHP file

Anonymous
Not applicable
5,906 Views
27 Replies
Message 1 of 28

Exporting 3D polyline with property set data to SHP file

Anonymous
Not applicable

Hello,

I am trying to export 3D polylines representing pressure network routing and elevations with property set data for additional information ( Diameter, Slope,...) to a SHP file.

 

I tried (" EXPORTTOSDF" and  "EXPORTPROPERTYDATA" ) workflows but nothing worked for me.

I am using C3D 2020, Windows 10. 

0 Likes
Accepted solutions (2)
5,907 Views
27 Replies
Replies (27)
Message 2 of 28

Joe-Bouza
Mentor
Mentor

Why would you need property set data for slope and diameter?

 

I do not have experience with property sets but exporting to SDF may carry all your extra data. then you can convert to shp

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 28

drazen.galic
Collaborator
Collaborator

Hi @Anonymous , @Joe-Bouza 

It is problem. Civil 3D doesn't have direct SHP export for pipe networks. Usual workflow is to export pipe network to SDF and then convert it, through Map functionality, to SHP. 

In the case that you have pressured pipes, SDF cannot export them. This is reason why SDF cannot be used.

On the other hand AutoCAD entities (like polylines) can be exported directly to SHP (command MapExport). Problem here is that MapExport function cannot export Property Set Data.

 

The only way how to do it (as far as I understand) is to have in 3D polyline Object data (not Property set data). So, I suggest, if possible, to move property set data to object data and then export to SHP.

As far as I know, there is no possibility to convert automatically Property set data to Object data (should be done manually).

 

Regards,

Drazen

 

If that answer is solution of your problem press Accept Solution

Message 4 of 28

Anonymous
Not applicable

Hi @Joe-Bouza 

Thanks for your reply.

 

These data were requested by the owner to be shown in SHP files, I also need to include  data like:

- Insulation thickness and Density

- Pipe schedules, Supplier and related standard 

Message 5 of 28

Anonymous
Not applicable

Hi @drazen.galic 

I appreciate your interest 

I think this workflow (Setting Object Data Manually) is a bit advanced for me. Can you share any clue for doing this.

0 Likes
Message 6 of 28

АлексЮстасу
Advisor
Advisor

You can vote for the idea of​ a converter that is more than a year old -

https://forums.autodesk.com/t5/civil-3d-ideas/create-a-converter-for-object-data-property-sets-xdata...

 

I have read here more than once that this task is simply solved using Dynamo.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 7 of 28

Pointdump
Consultant
Consultant

Abdelrhman,
Jerry Bartels has a good video on how to >>>Use ADEDEFDATA to create GIS Attributes within Civil 3D & Map 3D<<<.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 8 of 28

About Dynamo on this topic found right now without a deep search:
https://knowledge.autodesk.com/search-result/caas/simplecontent/content/dynamo-for-civil-3d--E2-80-9...

https://www.youtube.com/watch?v=pTg4I_eE2FQ
But before I met other messages.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 9 of 28

samir_rezk
Advisor
Advisor
Accepted solution

Hi @abdelrhmanqandeel 

the MapExport command will help you create SHP files from AutoCAD entities containing AutoCAD properties and AutoCAD Map Object Data Properties. 

Property Set Definitions are a Civil 3D Feature and can not natively be exported to SHP. However, Using Dynamo you are able to Copy the PSD to an Object Data Table, hen you can proceed to create the SHP!

 

You are welcome to use the attached Dynamo Graph (DYN). You will need to run Civil 3D 2020 or 2021, Have Dyanmo Installed as well as the Civil3DToolKit Package (refer to this Link for how to Install a package)

 

Hope this helps,

 


Samir Rezk
Technical Support Specialist

Message 10 of 28

drazen.galic
Collaborator
Collaborator
Accepted solution

Hi @Anonymous ,

 

@samir_rezkgave you solution (as always 😊). If you would like, because of any reason, create object data manually it is very easy:

1. ADEDEFDATA - command for creation of data table. Every table has several data (field name) like (diameter, insulation, elevations...)

2. ADEATTACHDATA - command for attaching data table (from step 1) to AutoCAD entities.

3. ADEEDITDATA - command for input/edit individual data for elements (or you can use classical properties dialog)

 

Regards,

Drazen

0 Likes
Message 11 of 28

K-Mart61
Advocate
Advocate

Another possible solution, is to use the "SHP Import/Export Utilities".   This can be done with with a Feature Line or a 3dpoly.   The add on is located in your Desktop App. When you install it shows up in your Toolbox Tab in Toolspace.  I was able to create the Property Sets (PS), and export to SHP in less than a few minutes.  I have been using this for a couple of months now and it shows some real promise for these types of items.

You first need to create an XML file to Export your PS first.   Once that is done you can export your Feature Lines to SHP.   See attached screen shot.  Let us know if that helps?

 

Regards,

K

Message 12 of 28

Anonymous
Not applicable

Thank You All

@АлексЮстасу  Hope to be executed soon.

@Pointdump  the video is amazing .. it actually worked

@drazen.galic yes it is .. thank you

@samir_rezk I can not thank you enough for your free graph of dynamo... it is amazing as usual and gave me a solution within a click of a button. Hope you all the best 

 

 

0 Likes
Message 13 of 28

Anonymous
Not applicable

Hi @K-Mart61 

Thank you so much

Actually, I am using C3d 2021 and can not use this tool.

0 Likes
Message 14 of 28

Joe-Bouza
Mentor
Mentor

Thank you Drazen. Very Clear

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 15 of 28

neilyj666
Mentor
Mentor

@samir_rezk The Dynamo script looks interesting ... can it be amended for the following Property Set that are attached to polylines? 

 

2021-01-26 11_43_12-Properties.jpg

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 16 of 28

samir_rezk
Advisor
Advisor

Hi @neilyj666 

It should work for Polylines without any amendment! Run the graph in Dyanmo Player after you install the Civil 3D Toolkit package. In the player, simply select Polyline from the drop down menu then type Electrical Arrays for the PSD! It should copy the information over as Object data.

Let me know if you get any issues! 


Samir Rezk
Technical Support Specialist

0 Likes
Message 17 of 28

neilyj666
Mentor
Mentor

Hi @samir_rezk - having some issues.

I am running Civil Toolkit 1.1.18 but not sure if this is the problem and there is no Object Data created - any ideas?

I have no clue about the workings of Dynamo so can't give any insight...!!!!

 

2021-01-26 14_17_48-Autodesk Civil 3D 2021 - [L__Tenders_Tenders 2020_E2912 Whitelaw Brae Wind Farm_.jpg2021-01-26 14_08_44-Autodesk Civil 3D 2021 - [L__Tenders_Tenders 2020_E2912 Whitelaw Brae Wind Farm_.jpg

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 18 of 28

samir_rezk
Advisor
Advisor
Can you confirm you have Lightweight Polylines (Not Polyline 2D)!


Samir Rezk
Technical Support Specialist

0 Likes
Message 19 of 28

neilyj666
Mentor
Mentor

@samir_rezk and this is the file with the polylines

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes
Message 20 of 28

neilyj666
Mentor
Mentor
Yes I believe so - drawing sent


neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2026 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
0 Likes