Author Topic: previous plot settings  (Read 1979 times)

0 Members and 1 Guest are viewing this topic.

Chumplybum

  • Newt
  • Posts: 97
previous plot settings
« on: April 07, 2009, 07:14:34 AM »
hi all,

i'm trying to write a fairly simple routine that plots the current drawing with the previous plot plot settings... i'm currently using the following code, however, it seems that this code pulls the values from the registry which only gets updated after autocad has closed and not from within the current session.

Code: [Select]
            Using profile As IConfigurationSection = Application.UserConfigurationManager.OpenCurrentProfile()
                Using PreviousPlotSettings As IConfigurationSection = profile.OpenSubsection("Previous plot settings")
                    Using Layout As IConfigurationSection = PreviousPlotSettings.OpenSubsection("Layout")
                        MsgBox(Layout.ReadProperty("Cfg Name", "").ToString)
                        Layout.Close()
                    End Using
                    PreviousPlotSettings.Close()
                End Using
                profile.Close()
            End Using


if there is no way in .net to get the previous plot values then i plan on using sendstringtoexecute and using something like i'm currently using in lisp to get the job done... i just thought there would be a nicer way to do it in .net

Code: [Select]
(command "-plot" "no" "" "previous plot" "" "" "" "")


any help would be great


cheers, Mark