-
Beta Was this translation helpful? Give feedback.
Answered by
CEXT-Dan
Jul 11, 2025
Replies: 1 comment 1 reply
-
You mean the jump in the Y direction? I think that’s just some reactor, I think you can use 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()
def doitzw():
try:
status, ent_id, _ = Ed.Editor.entSel("Select dimension: ")
if status != Ed.PromptStatus.eOk:
return
#hack for zwcad
dim = Db.RotatedDimension(ent_id)
rec = Db.DimStyleTableRecord(dim.dimensionStyle())
temp = Db.DimStyleTableRecord()
temp.copyFrom(rec)
temp.setDimtmove(2)
text_pos = dim.textPosition()
text_pos.x += 10.0
dim.upgradeOpen()
dim.setDimstyleData(temp)
dim.setTextPosition(text_pos)
except Exception as err:
traceback.print_exception(err) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gswifort
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 overridetry this