DIMLUNIT not working as expected #1299
-
I am sure I am just missing something obvious, but I am having trouble setting the DIMLUNIT variable in my dimstyle. Here are some relevant code snippets. doc = ezdxf.new(dxfversion='R2010', setup=True) dimsty = doc.dimstyles.new('Three_Sixteenths', dxfattribs={ base = (bay_sp_ft[1] * 12, bldg_wid_in + txt_ht * 10) #location of dim line dim = msp.add_linear_dim(base=base, p1=start, p2=end, dimstyle=dstyl) ds = doc.dimstyles.get('Three_Sixteenths') Everything else seems to work fine except for dimlunit. Any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, I figured out a way to get it to work. If I leave off the dim.render() it works fine. Not sure why, but I'll take it! |
Beta Was this translation helpful? Give feedback.
Ok, I figured out a way to get it to work. If I leave off the dim.render() it works fine. Not sure why, but I'll take it!