Setting X/Y shadow offset values to 1 and -1 in advanced text window using ArcPy? Planned...
Sorting the characters in a utf-16 string in java
How to produce a PS1 prompt in bash or ksh93 similar to tcsh
How can I introduce the names of fantasy creatures to the reader?
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
What documents does someone with a long-term visa need to travel to another Schengen country?
How to break 信じようとしていただけかも知れない into separate parts?
Why aren't these two solutions equivalent? Combinatorics problem
Assertions In A Mock Callout Test
What is the definining line between a helicopter and a drone a person can ride in?
Does the Pact of the Blade warlock feature allow me to customize the properties of the pact weapon I create?
If gravity precedes the formation of a solar system, where did the mass come from that caused the gravity?
Unix AIX passing variable and arguments to expect and spawn
Can a Wizard take the Magic Initiate feat and select spells from the Wizard list?
Does traveling In The United States require a passport or can I use my green card if not a US citizen?
Like totally amazing interchangeable sister outfit accessory swapping or whatever
Why does my GNOME settings mention "Moto C Plus"?
Marquee sign letters
Does using the Inspiration rules for character defects encourage My Guy Syndrome?
How to make an animal which can only breed for a certain number of generations?
Suing a Police Officer Instead of the Police Department
Weaponising the Grasp-at-a-Distance spell
Why do people think Winterfell crypts is the safest place for women, children & old people?
Is "ein Herz wie das meine" an antiquated or colloquial use of the possesive pronoun?
Normal Operator || T^2|| = ||T||^2
Setting X/Y shadow offset values to 1 and -1 in advanced text window using ArcPy?
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?What causes ArcPy RuntimeError: TextElementObject: Error in setting text?Setting Output Extent (Environment Setting) using ArcPy?Set data defined text angle without setting x and y coordinate using new style labellingCreating Text Elements using ArcPy?Setting Layer Properties Using ArcPyIterating through all geometries using ArcPy search cursor?Creating a folder and setting as workspace using ArcPy?Setting different NoData values for multiband raster using ArcPy?Creating Domains and Coded Values using ArcPy?Setting method in Near Analysis using ArcPy?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I've done everything I need except assigning a value of 1 to X offset and a value of -1 to Y offset. Below is my code:
import arcpy
mxd = arcpy.mapping.MapDocument(r"CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
updateLayer = arcpy.mapping.ListLayers(mxd, "OCParcelsAPN selection", df) [0]
sourceLayer = arcpy.mapping.Layer(r"L:GISLibraryScriptsPythonReference LayersOCParcels_selection.lyr")
arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True)
del sourceLayer
mxd = arcpy.mapping.MapDocument(r"CURRENT")
layer = arcpy.mapping.ListLayers(mxd) [0]
if layer.supports("LABELCLASSES"):
for lblclass in layer.labelClasses:
lblclass.className = "ASSESSMENT"
lblclass.expression = '"<FNT name=""Futura Md BT"" size=""6""> <CLR red=""255"" green=""255"" blue=""0"">" & [ASSESSMENT] & "</CLR> </FNT>"'
lblclass.showClassLabels = True
layer.showLabels = True
arcpy.RefreshActiveView()
arcpy labeling
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I've done everything I need except assigning a value of 1 to X offset and a value of -1 to Y offset. Below is my code:
import arcpy
mxd = arcpy.mapping.MapDocument(r"CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
updateLayer = arcpy.mapping.ListLayers(mxd, "OCParcelsAPN selection", df) [0]
sourceLayer = arcpy.mapping.Layer(r"L:GISLibraryScriptsPythonReference LayersOCParcels_selection.lyr")
arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True)
del sourceLayer
mxd = arcpy.mapping.MapDocument(r"CURRENT")
layer = arcpy.mapping.ListLayers(mxd) [0]
if layer.supports("LABELCLASSES"):
for lblclass in layer.labelClasses:
lblclass.className = "ASSESSMENT"
lblclass.expression = '"<FNT name=""Futura Md BT"" size=""6""> <CLR red=""255"" green=""255"" blue=""0"">" & [ASSESSMENT] & "</CLR> </FNT>"'
lblclass.showClassLabels = True
layer.showLabels = True
arcpy.RefreshActiveView()
arcpy labeling
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I've done everything I need except assigning a value of 1 to X offset and a value of -1 to Y offset. Below is my code:
import arcpy
mxd = arcpy.mapping.MapDocument(r"CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
updateLayer = arcpy.mapping.ListLayers(mxd, "OCParcelsAPN selection", df) [0]
sourceLayer = arcpy.mapping.Layer(r"L:GISLibraryScriptsPythonReference LayersOCParcels_selection.lyr")
arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True)
del sourceLayer
mxd = arcpy.mapping.MapDocument(r"CURRENT")
layer = arcpy.mapping.ListLayers(mxd) [0]
if layer.supports("LABELCLASSES"):
for lblclass in layer.labelClasses:
lblclass.className = "ASSESSMENT"
lblclass.expression = '"<FNT name=""Futura Md BT"" size=""6""> <CLR red=""255"" green=""255"" blue=""0"">" & [ASSESSMENT] & "</CLR> </FNT>"'
lblclass.showClassLabels = True
layer.showLabels = True
arcpy.RefreshActiveView()
arcpy labeling
I'm trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I've done everything I need except assigning a value of 1 to X offset and a value of -1 to Y offset. Below is my code:
import arcpy
mxd = arcpy.mapping.MapDocument(r"CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
updateLayer = arcpy.mapping.ListLayers(mxd, "OCParcelsAPN selection", df) [0]
sourceLayer = arcpy.mapping.Layer(r"L:GISLibraryScriptsPythonReference LayersOCParcels_selection.lyr")
arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True)
del sourceLayer
mxd = arcpy.mapping.MapDocument(r"CURRENT")
layer = arcpy.mapping.ListLayers(mxd) [0]
if layer.supports("LABELCLASSES"):
for lblclass in layer.labelClasses:
lblclass.className = "ASSESSMENT"
lblclass.expression = '"<FNT name=""Futura Md BT"" size=""6""> <CLR red=""255"" green=""255"" blue=""0"">" & [ASSESSMENT] & "</CLR> </FNT>"'
lblclass.showClassLabels = True
layer.showLabels = True
arcpy.RefreshActiveView()
arcpy labeling
arcpy labeling
edited Nov 25 '17 at 7:00
PolyGeo♦
54k1782246
54k1782246
asked Aug 5 '15 at 20:56
Tyson BurgerTyson Burger
42
42
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The way you are changing font, color and size is by using Text Formatting tags:
ArcGIS text formatting tags let you modify the formatting for a
portion of text. This lets you create mixed-format text where, for
example, one word in a sentence is underlined. Text formatting tags
can be used almost anywhere text is placed on or around the map in
ArcMap.
However, modifying shadow is not available within text formatting tags so I think you are up against an ArcPy limitation. You could submit an ArcGIS Idea for this, but if you do, I recommend targeting ArcGIS Pro's arcpy.mp rather than the arcpy.mapping module of the ArcGIS 10.x architecture.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f157198%2fsetting-x-y-shadow-offset-values-to-1-and-1-in-advanced-text-window-using-arcpy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The way you are changing font, color and size is by using Text Formatting tags:
ArcGIS text formatting tags let you modify the formatting for a
portion of text. This lets you create mixed-format text where, for
example, one word in a sentence is underlined. Text formatting tags
can be used almost anywhere text is placed on or around the map in
ArcMap.
However, modifying shadow is not available within text formatting tags so I think you are up against an ArcPy limitation. You could submit an ArcGIS Idea for this, but if you do, I recommend targeting ArcGIS Pro's arcpy.mp rather than the arcpy.mapping module of the ArcGIS 10.x architecture.
add a comment |
The way you are changing font, color and size is by using Text Formatting tags:
ArcGIS text formatting tags let you modify the formatting for a
portion of text. This lets you create mixed-format text where, for
example, one word in a sentence is underlined. Text formatting tags
can be used almost anywhere text is placed on or around the map in
ArcMap.
However, modifying shadow is not available within text formatting tags so I think you are up against an ArcPy limitation. You could submit an ArcGIS Idea for this, but if you do, I recommend targeting ArcGIS Pro's arcpy.mp rather than the arcpy.mapping module of the ArcGIS 10.x architecture.
add a comment |
The way you are changing font, color and size is by using Text Formatting tags:
ArcGIS text formatting tags let you modify the formatting for a
portion of text. This lets you create mixed-format text where, for
example, one word in a sentence is underlined. Text formatting tags
can be used almost anywhere text is placed on or around the map in
ArcMap.
However, modifying shadow is not available within text formatting tags so I think you are up against an ArcPy limitation. You could submit an ArcGIS Idea for this, but if you do, I recommend targeting ArcGIS Pro's arcpy.mp rather than the arcpy.mapping module of the ArcGIS 10.x architecture.
The way you are changing font, color and size is by using Text Formatting tags:
ArcGIS text formatting tags let you modify the formatting for a
portion of text. This lets you create mixed-format text where, for
example, one word in a sentence is underlined. Text formatting tags
can be used almost anywhere text is placed on or around the map in
ArcMap.
However, modifying shadow is not available within text formatting tags so I think you are up against an ArcPy limitation. You could submit an ArcGIS Idea for this, but if you do, I recommend targeting ArcGIS Pro's arcpy.mp rather than the arcpy.mapping module of the ArcGIS 10.x architecture.
edited Dec 14 '15 at 0:42
answered Aug 17 '15 at 21:59
PolyGeo♦PolyGeo
54k1782246
54k1782246
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f157198%2fsetting-x-y-shadow-offset-values-to-1-and-1-in-advanced-text-window-using-arcpy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown