0 Members and 1 Guest are viewing this topic.
Check the DWGTITLED System Variable
The drawing will be named, I just want to make sure they saved their work before running the routine.
« ... »
Interestingly the 'Save and Close' section uses System.Convert.ToInt16(), whereas the 'Set and Return System Variables' section uses System.Convert.ToInt32()... Any gain in either case given the object returned from GetSystemVariable()?Admittedly, I have some reading to do on the available System.Convert Methods, so I am not fully versed on the differences in 16-Bit, 32-Bit, and 64-bit signed integers, but should there be any consideration for code operating on verticals which are only available on 64-bit now (such as Civil 3D 2014)?
Quote from: BlackBox on April 01, 2013, 02:51:41 PMInterestingly the 'Save and Close' section uses System.Convert.ToInt16(), whereas the 'Set and Return System Variables' section uses System.Convert.ToInt32()... Any gain in either case given the object returned from GetSystemVariable()?Admittedly, I have some reading to do on the available System.Convert Methods, so I am not fully versed on the differences in 16-Bit, 32-Bit, and 64-bit signed integers, but should there be any consideration for code operating on verticals which are only available on 64-bit now (such as Civil 3D 2014)?I don't believe there's any system variables that are 32 bit ints. Most are 16 bit, so it's moot for the purpose of comparing it to some value. You can use either.