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.
Solved! Go to Solution.
Solved by wfberry. Go to Solution.
Simply import the CSV points as a PENZ point group, then chain all automatically by means of the undocumented suboption 'PN of _LINE command.
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'.
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
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.
Dave
Dave Stoll
Las Vegas, Nevada
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.
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.
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.
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
Bill,
That's a pretty good idea!
Dave
Dave Stoll
Las Vegas, Nevada
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