@Anonymous wrote:
Okay so ive tried modifying it myself but no go. Basically id really appreciate if someone could customise Kents code to do this contour labelling workflow in this order:
- Prompt for text height
- Prompt for elevation value (getreal)
- Ask to pick where i want to place the labels (with ability to click on multiple points to label contours with same elevation)
- Enter to get back to the "Enter elevation" prompt
....
Are your contours drawn at their actual elevation in 3D? If so, try this modification of the routine in the earlier link. The LEM command in LabelElevMask.lsp has a height option to take care of your first step, and once the height is set, you don't need to answer a prompt for it every time. It finds the elevation of the selected object for you, so you don't need to tell it what the text content should be [second step], and therefore don't need an option to enter a new elevation [fourth step]. And you can label as many as you want in one running of the command [third step]. [It also has a width factor option, because that was part of what the originator of that thread wanted, and Style and Layer options for the labels.] Look for the "<--EDIT as desired" and similar indications, to set up your typical defaults.
[I thought I had worked up something like that, but it's not on the Cadalyst CAD Tips site, and it was easier to find the other one there than to Search here, which is why the earlier link was to there rather than to wherever it is here. Your workflow list spurred me to do the Search here for the elevation-specific version.]
Kent Cooper, AIA