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: 

Z elevation taskbar

15 REPLIES 15
Reply
Message 1 of 16
patrik
1922 Views, 15 Replies

Z elevation taskbar

Hi!
Does anyone know how to show the z-elevation (osnapz) on the taskbar in C3D 2009, AecProject.arx doesn't work for me.
15 REPLIES 15
Message 2 of 16
Anonymous
in reply to: patrik

I have not been able to get it to work either. I believe that using the
AecProject.arx was unintended and it just happened. Someone discovered it.
I know it worked for at least 2 versions. Basically I only used it to be
able to snap to nodes and have my lines (polylines, etc) stay at "0"
elevation. You can do that by going to OPTIONS -> DRAFTING -> checking the
box "Replace Z value with current elevation".

Bill

wrote in message news:5950482@discussion.autodesk.com...
Hi!
Does anyone know how to show the z-elevation (osnapz) on the taskbar in C3D
2009, AecProject.arx doesn't work for me.
Message 3 of 16
AllenJessup
in reply to: patrik

Anything further on this?

Allen


Allen Jessup
Engineering Specialist / CAD Manager

Message 4 of 16
patrik
in reply to: patrik

No, I'm using osnapz-command.

/P
Message 5 of 16
AllenJessup
in reply to: patrik

I added that to my custom tool pallet. When I have time I'm going to try and make it a toggle. If I succeed I'll post what I have.

Allen


Allen Jessup
Engineering Specialist / CAD Manager

Message 6 of 16
Anonymous
in reply to: patrik

I just change it in the options box.

Options -> Drafting -> Select "Replace Z value with current elevation"
There is probably a setvar hanging around somewhere

Bill

wrote in message news:5983785@discussion.autodesk.com...
I added that to my custom tool pallet. When I have time I'm going to try and
make it a toggle. If I succeed I'll post what I have.

Allen
Message 7 of 16
AllenJessup
in reply to: patrik

Yes. But I'm doing work where I have to change it frequently. Opening options every time is too cumbersome.

Allen


Allen Jessup
Engineering Specialist / CAD Manager

Message 8 of 16
Anonymous
in reply to: patrik

Here's a small LISP I just wrote just for this thread and you guys 🙂

(defun c:zt (/)
(setvar "OSNAPZ" (if (= (getvar "OSNAPZ") 1)
0 ;On
1));Off
(princ (strcat "Ignore Z value is now turned " (if (= (getvar "OSNAPZ") 0)
"ON"
"OFF")))
(princ)
);_defun c:zt
Message 9 of 16
AllenJessup
in reply to: patrik

Thank you! That's what I was aiming for. You've taken one of the round-tuits of my pile.

Thanks again
Allen


Allen Jessup
Engineering Specialist / CAD Manager

Message 10 of 16
Anonymous
in reply to: patrik

Good deal. Thanks

Bill

wrote in message news:5983912@discussion.autodesk.com...
Here's a small LISP I just wrote just for this thread and you guys 🙂

(defun c:zt (/)
(setvar "OSNAPZ" (if (= (getvar "OSNAPZ") 1)
0 ;On
1));Off
(princ (strcat "Ignore Z value is now turned " (if (= (getvar "OSNAPZ") 0)
"ON"
"OFF")))
(princ)
);_defun c:zt
Message 11 of 16
AllenJessup
in reply to: patrik

I added the Setvar portion to my Tool Pallet. Happy as a pig in mud.

Thanks again
Allen


Allen Jessup
Engineering Specialist / CAD Manager

Message 12 of 16
patrik
in reply to: patrik

How to use the lisp? I'm not used to make my own lisps.

/P
Message 13 of 16
AllenJessup
in reply to: patrik

Copy the text and paste it in to a text editor like notepad. Save it as a file with a .lsp extension. Name it what you want so you remember what it is. Save it in a folder that is search path defined on the files tab of options.

Use the Appload command to load it. If you want it loaded every time. Drag the file to where it says Startup Suite in the lower right of the Appload dialog box.

I've made a button on a tool pallet that contains this:

(setvar "OSNAPZ" (if (= (getvar "OSNAPZ") 1)0 1))(princ (strcat "Replace Z value is now turned " (if (= (getvar "OSNAPZ") 1)"ON""OFF")))(princ)

HTH
Allen


Allen Jessup
Engineering Specialist / CAD Manager

Message 14 of 16
patrik
in reply to: patrik

Thanks, now it works for me too.

/P
Message 15 of 16
johngordon6189
in reply to: patrik

2d polylines hold the elevation of the first vertex. you can simple start the line and type .xy, select the node and it prompts for the z elevation, type 0 and that's it. If you are working with lines or 3d polylines, then you would have to use that process at each node.

John
John Gordon
CAD Manager/Survey Technician

C3D 2018/2020
Microstation
Windows 10
Message 16 of 16
AllenJessup
in reply to: patrik

You can also get the .xy and other filters on the Shift = rt-click menu. But I find the OSNAPZ convenient because at times I'll be drawing a bunch of entities that I want at zero then a couple that I want at elevation and back to zero.

Also I don't know if the .xy filter would work in the case where your using the Perpendicular Osnap.

Allen


Allen Jessup
Engineering Specialist / CAD Manager

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

Post to forums  

Rail Community


Autodesk Design & Make Report