Author Topic: Dim Style Control  (Read 1823 times)

0 Members and 1 Guest are viewing this topic.

Bryco

  • Water Moccasin
  • Posts: 1883
Dim Style Control
« on: January 24, 2017, 04:02:13 PM »
I use model space dims, but now I am having to allow for paperspace dims.
Using BeginDoubleClick(object sender, BeginDoubleClickEventArgs e)
db.Dimstyle = dimId;
 db.SetDimstyleData(tr.GetObject(dimId, OpenMode.ForRead) as DimStyleTableRecord);
the dim control changes immediately. When doing the same thing with end command "LAYOUT_CONTROL"
or SysvarChanged(object sender,Autodesk.AutoCAD.ApplicationServices.SystemVariableChangedEventArgs e)
using Tilemode the dims change correctly but the Dim Style control doesn't update.
Anyone know how to force the dim Style Control? (I couldn't find it in the reg)

Bryco

  • Water Moccasin
  • Posts: 1883
Re: Dim Style Control
« Reply #1 on: January 25, 2017, 10:47:27 PM »
The same code worked in 2016.
in 2017 it appears that the dimstyle control updates as soon as you click on anything and then esc. This would explain why the doubleclick code would work.
I have tried cheating it w/ ed.selectlast   but it seems you have to click on something. Shame really.

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Dim Style Control
« Reply #2 on: January 25, 2017, 11:17:50 PM »
Seems like for layer palette to correctly show changes for changing layers hidden value required opening the LayerTable for write.
You might try opening the DimStyleTable for write and commit the transaction, even without an actual edit it might update the control.

Bryco

  • Water Moccasin
  • Posts: 1883
Re: Dim Style Control
« Reply #3 on: January 26, 2017, 04:00:37 PM »
Ty Jeff but it doesn't work.