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: 

How to Draw 2D Lines Based on C3D Point Numbers

17 REPLIES 17
SOLVED
Reply
Message 1 of 18
AntC3D
3547 Views, 17 Replies

How to Draw 2D Lines Based on C3D Point Numbers

Hi All,

 

I am a new C3D guy. I have a question about drawing a simple 2d line in C3D.

After loading a csv file, I want to draw a line by typing point numbers, but I got a 3d line. I have to flatten them. And I don't want to change the elevations in csv. I try to add this command to a simple lisp routen, but it doesn't work.

 

(setq p1 (getint  "\nFirst Point Number:    ") )

(setq p2 (getint  "\nSecond Point Number:    ") )

(command "line" ".xy" "'pn" p1 0.0 nil ".xy" "'pn" p2 0.0 nil)

 

it seems something wrong at "nil", what I try to do is "type" the Escape.

 

Anyone can help me? Thanks a lots.

17 REPLIES 17
Message 2 of 18
antoniovinci
in reply to: AntC3D

Simply import the CSV points as a PENZ point group, then chain all automatically by means of the undocumented suboption 'PN of _LINE command.

Message 3 of 18
michael
in reply to: AntC3D

You may want to change the 3D Geometry settings on your point style prior to drawing lines.

Change the Point Display Mode to Flatten Points to Elevation and the Point Elevation to 0.00'

After you do this it will draw lines with a flat elevation of 0.00'.

Message 4 of 18
jmayo-EE
in reply to: AntC3D

Start the line command and type 'pn into the command line and hit enter. Now type in the point range like this. 1-100 and hit enter again.

John Mayo

EESignature

Message 5 of 18
Pointdump
in reply to: AntC3D

Flattening Points to Elevation in the Geometry Tab of the Point Style doesn't work when you use 'PN. Neither does setting OsnapZ to 1. You can use a 2D Polyline or change the Start Z and End Z of a regular line in Properties.

Z.png

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 6 of 18
AntC3D
in reply to: antoniovinci

Thanks Antoniovinci,
How I can " chain all automatically by means of the undocumented suboption 'PN of _LINE command."? Where's this option?
Message 7 of 18
AntC3D
in reply to: michael

Thanks Michael,

I did that. but the lines are still 3d. If I  snap the point object, it works. I like to type the point numbers instead of look for the poins on screen and snap them.

Message 8 of 18
AntC3D
in reply to: jmayo-EE

Thanks jmayo,

 

They are still 3d lines.

Message 9 of 18
AntC3D
in reply to: Pointdump

Thanks Pointdump, it works.

But, because I draw the 2D lines a lots during my work, I am tring to find a way the simplify all the steps.

Message 10 of 18
michael
in reply to: AntC3D

AntC3D,

 

If you change the Promt for 3D Points to true under Transparent Commands in Ambient Settings it will prompt you for the elevation while drawing the lines.  This adds a step but may be your best bet.

Message 11 of 18
jmayo-EE
in reply to: AntC3D

Use Flatten when done.

John Mayo

EESignature

Message 12 of 18
wfberry
in reply to: AntC3D

Start your line with a Polyline (normally just use the letter P)

 

1.  P, (pick a point on the screen-This will give it a "0" Elevation

2. Issue the 'pn command 

3 ENTER POINT NUMBER will be shown.

4. 61-69

 

Now a polyline will be drawn from your beginning point thru each point in numerical order at "0" Elevation.

 

Trim off the first leg.

 

Bill

 

 

Message 13 of 18
Pointdump
in reply to: wfberry

Bill,

 

That's a pretty good idea!

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 14 of 18
AntC3D
in reply to: wfberry

Bill, Thank you very much! That's what I am looking for.

Thanks again!

Message 15 of 18
_Hathaway
in reply to: AntC3D

While we use automated linework and do not have to draw much more than a single line or two at a time I certainly understand your frustration. It seems to me like there should be a much simpler way to accompish this.

I'm not sure what your doing with your lines but being a surveyor I never ever want to draw in 3D.
Message 16 of 18
AntC3D
in reply to: _Hathaway

Because I need 2d lines for boundary calc and 3d for topo in the same drawing.

Message 17 of 18
_Hathaway
in reply to: AntC3D

I understand your scenario. Maybe take a look at keeping the topo in a topo drawing and the boundary calcs in the boundary calc drawing. I've using that type of setup for decades, literally.
Message 18 of 18
Pointdump
in reply to: _Hathaway

Instead of different drawings, using different Sites in the same drawing. That way if you bring in new points you won't have to import them into two different drawings.

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024

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

Post to forums  

Rail Community


Autodesk Design & Make Report