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: 

Copy/paste bearings and distances from Excel to command line

14 REPLIES 14
Reply
Message 1 of 15
jporter
3256 Views, 14 Replies

Copy/paste bearings and distances from Excel to command line

Ok, I realize that I'm probably spitting into the wind here but here it goes. . .

 

I'm in the process of assisting a company make the move from Land Desktop to Civil 3D.  Yes, finally making the move.  They have a user who's primary role is parcel and boundary closures.  

 

He types up all his bearings and distances for his linework in an Excel spreadsheet, then, in Land Desktop, he would use the draw lines by bearings and distances command and copy and paste the contents of the spreadsheet at the command line and it would draw the linework for him.  I tested one of his spreadsheets and tried to bring it into Civil 3D using the draw line by bearing command.  I can copy and paste from the spreadsheet one line at a time to get it to work, but in Land Desktop he would copy and paste the entire spreadsheet.  I have not found a way to do this in Civil 3D.  Is it even possible? 

 

I've attached an example of a bogus spreadsheet for you if you want to test it out.  

 

Thanks for any input,

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
14 REPLIES 14
Message 2 of 15
odoshi
in reply to: jporter

I'm not sure if the prompts have changed from Land Desktop to Civil 3D, but that could break it.

 

Also, depending how the Excel data gets on the clipboard, it might not be in the right format when pasted. This could be due to a Windows/MS Office change.

 

Those are just 2 things that I could see going wrong.

 

I would save it out as a space delimited file and try turning it into an AutoCAD Script file (.scr).

 

 

Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
Message 3 of 15
jmayo-EE
in reply to: jporter

Unless the spreadsheet is performing other tasks like closure coreection I would bet that the time to input the lines directly into C3D is shorter than using two programs.

John Mayo

EESignature

Message 4 of 15
jporter
in reply to: jmayo-EE

Jmayo,

I agree with on this one small file. However, the user commonly has many lines to input (50+ on average).

Jason Porter
Sent from my iPhone
Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 5 of 15
jporter
in reply to: jporter

Figured it out:

http://asti.com/News-Events/blogs/PostId/2159/map-3dcivil-3d-copy-and-paste-lot-lines-from-excel

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 6 of 15
_Hathaway
in reply to: jporter

Interesting, i have never heard of this type of input for brgs and distance.  I used to enter thousands of these weekly and always simply read the source material and entered the data into Civil3d.  I think a cut and paste method would be more tedious.

Message 7 of 15
jporter
in reply to: _Hathaway

@_Hathaway, I agree with you.  However, one of my clients is provided a list of bearings and distances in Excel format from his client and in Land Desktop he used to simply copy and paste at the command line.  This was his reason for not moving forward to Civil 3D.  Now there should be no excuse.  

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 8 of 15
jmayo-EE
in reply to: jporter

Nice follow up and thanks for the link. Nifty trick but if they type it into excel I don't see how time is saved. You need to do more keyboard input in excel getting the 'bd for each line and tabing through the spaces or adding them after. In C3D you type 'bd only once and the space is a slap of the thumb for Enter. The rest of the keyboard entry is the same. Just more time opening 2 programs and copying/pasting. Now if someone else sent the excel file or if it was automatically generated somehow the trick would save a bunch of time.

John Mayo

EESignature

Message 9 of 15
doni49
in reply to: jporter


@Anonymous wrote:

@_Hathaway, I agree with you.  However, one of my clients is provided a list of bearings and distances in Excel format from his client and in Land Desktop he used to simply copy and paste at the command line.  This was his reason for not moving forward to Civil 3D.  Now there should be no excuse.  


If he's receiving the B&D data in excel format, then copy/paste would be best.  But in the beginning, you talked about typing them into Excel so that he could then copy/paste to C3D -- that part wouldn't make any sense to me.



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

Message 10 of 15
jporter
in reply to: jmayo-EE

Oh, @jmayo-EE, I agree.  It's a lot of work to hand type.  All my client does is add the 'bd in one column and then drag the column down to copy into the rest of the cells. So in his world he'll only have to add 3 columns and two of them are blank.  

 

 

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 11 of 15
jporter
in reply to: doni49

@_Hathaway, apologies.  After some long discussions with the client as to why he'd spend so much time typing when it's much easier to simply use the Civil 3D transparent command he revealed to me that he's not always typing in the data.  It's a 50/50 split for him on his process.  

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 12 of 15
rl_jackson
in reply to: jporter

I think it would be more useful to do this at the Survey Command Line. BD is still a valid command and it could draw the lines at the same time.

 

survey_command.png

 

And then there the option of just exporting the xls to a space delimited text file that could be saved as a FBK file, with this same command language, import it into a database and whamo!!!!!


Rick Jackson
Survey CAD Technician VI

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

Message 13 of 15
Joe-Bouza
in reply to: jporter

And I was just going to say it should be scripted.


Your Name
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.

Your Name

EESignature

Message 14 of 15
tcorey
in reply to: jporter

Without arguing the merits of typing bearings and distances into Excel or into Civil 3D directly, I do want to say thanks for posting that cool solution. 

 

Data from clients is like Forest Gump's box of chocolates....You never know what you're going to get. 



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 15 of 15
jporter
in reply to: tcorey

@tcorey, thank you.  You're exactly right.  Just when you think you've seen it all . . . .

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report