Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Convert ACAD Point To COGO Point with Object Data

17 REPLIES 17
SOLVED
Reply
Message 1 of 18
lmorse
3920 Views, 17 Replies

Convert ACAD Point To COGO Point with Object Data

HI,

 

Can anyone advise me how to convert ACAD Points containing Object Data into COGO Points and retain the object data? I have 2400+ points that I have been asked to convert.

 

Thanks in advance

Lee

Tags (1)
Labels (2)
17 REPLIES 17
Message 2 of 18
Udo_Huebner
in reply to: lmorse

My first idea:

1. Use MAPEXPORT to export a Pointshape containing X,Y,Z, and the desired objectdata.

2. Save DBF as TXT.

3. Import Textfile using IMPORTPOINTS

Gruß Udo Hübner (CAD-Huebner)
Message 3 of 18
lmorse
in reply to: Udo_Huebner

Hi,

 

I have a shape file, I have copied the DBF and given it the TXT extension. However, I am stuck on the IMPORTPOINTS step. Only the CFG file has a matching Point FIle Format, and it only pulls in one COGO point without any object data. Are there any more detailed instructions you can point me towards?

Message 4 of 18
samir_rezk
in reply to: lmorse

Hi @lmorse 

 

If you're using Civil 3D 2016 or 2020 - 2021, there is handy add-on/extension for working with SHP files; you can download and install the Autodesk SHP Import/Export Utility from your Autodesk account or the Desktop App

 

Like @Udo_Huebner noted, use the MAPEXPORT Command to create a SHP file, then use the add-on to import the SHP file in to Cogo Points with Property Set data containing the Object Data attribute values.

Hope this helps,


Samir Rezk
Technical Support Specialist

Message 5 of 18
lmorse
in reply to: samir_rezk

☹️We have C3D 2018

Message 6 of 18
samir_rezk
in reply to: lmorse

Hi @lmorse ,

Try the below steps to export to txt the re-import again as Cogo:

  1. In a blank new drawing, using AutoCAD Map Taskpane, Attach the drawing then run a Report Query to extract out AutoCAD properties and Object Table properties into a Text file.
  2. Open the file in Notepad and save as a new file with ANSI Encoding
    In Civil 3D, create User Defined Properties to match the properties and attribute value types you have in the export
  3. create a comma delimited point file format to match the the Point export with all the user defined properties culminated in the same sequence as the point export txt
  4. finally execute the Point from File command to import the point file as Cogo Points

Here is demo video to clarify the steps (sorry it's a little long). hope this helps,

 


Samir Rezk
Technical Support Specialist

Message 7 of 18
samir_rezk
in reply to: lmorse

Hi @lmorse ,

Try the below steps to export to txt the re-import again as Cogo:

  1. In a blank new drawing, using AutoCAD Map Taskpane, Attach the drawing then run a Report Query to extract out AutoCAD properties and Object Table properties into a Text file.
  2. Open the file in Notepad and save as a new file with ANSI Encoding
  3. In Civil 3D, create User Defined Properties to match the properties and attribute value type you have in the export
  4. Create a comma delimited point file format to match the the Point export with all the user defined properties culminated in the same sequence as the point export txt
  5. Finally execute the Point from File command to import the point file as Cogo Points

Here is a Screencast video to clarify the steps (sorry it's a little long!)

Hope this helps,

 


Samir Rezk
Technical Support Specialist

Message 8 of 18
lmorse
in reply to: samir_rezk

Thanks this is useful, however, it appears that it doesn't retain the Object Data as Object Data?

 

I know it is possible to attach Object Data to a COGO point. Once a year we have to re-export all of the information as a Shape File with Object data for submission to the powers that be.

Message 9 of 18
Udo_Huebner
in reply to: lmorse

@lmorse 
I didn't realize that the object data would then have to be appended to the CogoPoints as object data again.
Because attaching it as a description or user-defined properties is a simple task. 

To get the object data (OD) from ACAD-Points to CogoPoints, I would use a macro.
I have already created both single tasks as Lisp macros.

Step 1 - Create CogoPoints from blocks or points
Step 2 - Copy the object data from the source object to the target object.

If you upload a sample file with a few Points and the attached object data, I will check if my code already works with your data. If it is a simple task to combine both code snippets, I will post the result here.

 

 

 

 

Gruß Udo Hübner (CAD-Huebner)
Message 10 of 18
lmorse
in reply to: Udo_Huebner

Hi,

I have left work now and will return on Monday. I’ll send a sample then.
Message 11 of 18

Hi,

 

Do you necessarily need COGOPoints?
If you need to store coordinates, elevations, etc, you can do this in Object Data.

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 12 of 18
lee.morse
in reply to: Udo_Huebner

Example DWG attached. Thank you 😊

Message 13 of 18
Udo_Huebner
in reply to: lee.morse

With a minor modification, my existing code snippets work as expected.

Load UHODCOPY.vlx first (contains code to copy Objectdata between objects), then load UHBLOCK2CivilPoint.lsp and execute UHBlock2CivilPoint.

This Lisp Code should draw Civil Points on your block references and copies existing Objectdata to the CogoPoints.

Lisp Macros are attached.

Gruß Udo Hübner (CAD-Huebner)
Message 14 of 18

Hi, Udo,

 

Perhaps, instead of creating UHODCOPY. VLX, you could use the old lisp from Autodesk to OD copy from object to objects - COPY_OD.lsp.
But you're the author, you better know. 🙂

 

Good solution!

 

I will immediately assume that lee.morse will also need a reverse process - replacing COGOPoints with blocks with OD creation and copying OD or PropertySets values.

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 15 of 18
lee.morse
in reply to: Udo_Huebner

Udo,

 

Thank you. This works well. There is one thing that I have noticed on the full data set:

 

Most layers have come through with their own point groups with the label set to the borehole name, however a couple of layers do not have their own point groups. These layers show the following info in the point label: point number, RL, layer name.

 

I have attached another sample so that you can see:

Message 16 of 18

I have no immediate need for Cogo - > Block, but it doesn't sound like a bad idea

 

😉

Message 17 of 18

... for general reasons, firstly, it only now seems that it is not necessary.

Secondly, it would be better now, right away - sometime later there will be no time.

Thirdly, it's easier right now, because the first part has just been made.  🙂

(I do not use COGO at all, and I have no similar tasks. But it can be useful).

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 18 of 18
ChicagoLooper
in reply to: lmorse

@lmorse wrote

<<......to convert ACAD Points......>>

 

What does this mean? Do you mean you have points physically sitting in modelspace? And those points have Object Data (OD) attached? If you do, then it can be done but you’ll need to disclose the OD. The number of points is not relevant. Whether 240,000 points, 2,400 points or just 24 points, it doesn’t matter. What does matter is the number of OD fields and the individual field names

To effectively evaluate your specific situation, it’s best if you could provide the actual ‘data fields’ of your OD. Better yet, upload a sample, e.g. 20 points, of the ACAD points. 

 

 

Chicagolooper

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report