Skip to content
Discussion options

You must be logged in to vote

You mean the jump in the Y direction? I think that’s just some reactor, I think you can use setDimtmove, maybe you can set this in the dimension style, or as an override

try this

@Ap.Command()
def doit():
    try:
        status, ent_id, _ = Ed.Editor.entSel("Select dimension: ")
        if status != Ed.PromptStatus.eOk:
            return
    
        dim = Db.RotatedDimension(ent_id)
        rec = Db.DimStyleTableRecord()
        rec.setDimtmove(2)
        text_pos = dim.textPosition()
        text_pos.x += 10.0
        dim.upgradeOpen()
        dim.setDimstyleData(rec)
        dim.setTextPosition(text_pos)
    except Exception as err:
        traceback.print_exception(err)


@Ap.Command()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gswifort
Comment options

gswifort Jul 12, 2025
Collaborator Author

Answer selected by gswifort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants