2

Is it possible to lock elements in layout view in Python? I know it is possible in the production cartography extension from ESRI but all I need is the funcionality to lock elements. I am wondering if there is a way to do this in Python.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jan 31, 2013 at 22:14

1 Answer 1

2

To "lock" layout elements in position you could run a Python script that iterates through all of them (ListLayoutElements) and then uses their name property to lookup values you want for their elementPositionX, elementPositionY, elementHeight and elementWidth properties. Running this script any time that you want to be certain elements are in their correct position would move any that have strayed back to the position and size you had set.

answered Jan 31, 2013 at 22:32
1
  • That sounds pretty awesome and that will work. I figured there probably wasn't a way to duplicate the functionality of being able to select and lock elements in place Commented Feb 1, 2013 at 17:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.