Author Topic: Detect cannoscale change with the toolpalette  (Read 1423 times)

0 Members and 1 Guest are viewing this topic.

latour_g

  • Newt
  • Posts: 184
Detect cannoscale change with the toolpalette
« on: December 20, 2017, 10:05:31 AM »
Hi everyone,
Is there a way my tool palette can display the correct scale when the scale is change in AutoCAD ?
An event that could detect when the variable Cannoscale change, something like that..
Thank you

huiz

  • Swamp Rat
  • Posts: 917
  • Certified Prof C3D
Re: Detect cannoscale change with the toolpalette
« Reply #1 on: December 20, 2017, 10:11:23 AM »
You can set an event on a variable change. If it is CANNOSCALE, you can update the Palette.

Code: [Select]

    private static void SystemVariableChanged(object sender, acAppServ.SystemVariableChangedEventArgs e) {

      if (e.Name == "CANNOSCALE" && e.Changed) { DoSomething(); }

    }

The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

latour_g

  • Newt
  • Posts: 184
Re: Detect cannoscale change with the toolpalette
« Reply #2 on: December 20, 2017, 11:12:35 AM »
Great, that's what I need.  Thank you !