Author Topic: 2-D Plane  (Read 217 times)

bdeck

  • Hero Member
  • *****
  • Posts: 827
2-D Plane
« on: May 21, 2017, 06:55:51 PM »
Sys(1172) appears to indicate the orientation of the 2-D plane.  xy=0,  zy=1, and xz=2.

What are Sys(1170) and Sys(1171)? They also change when the plane is not xy.

Any other recent Sys() variables?

Thanks,
BD

(Edit, 06/01/2017 ) Somewhat related: http://forum.designcadcommunity.com/index.php?topic=6875.msg49416#msg49416

sys(1173) is set when the "Display CS" check box is checked in the Options/Grid tab. (stands for "Display Coodinate System"  or, less ambiguously, "Show xyz directions")
« Last Edit: June 01, 2017, 08:12:53 AM by bdeck »

DrollTroll

  • Kindly Curmudgeon
  • Administrator
  • *****
  • Posts: 4189
Re: 2-D Plane
« Reply #1 on: November 06, 2017, 12:22:22 PM »
Not sure if those do anything meaningful at this point. I had added 1171 and 1172 for testing purposes in 2011. Nominally (again, no promises):

Sys(1170) should indicate whether or not the default workplane is active (0=no, 1=yes)
Sys(1171) should indicate whether a custom workplane is active (0=no, 1=yes)

I had implemented these to help try and understand some issues that could occur when saving drawings with a custom workplane active.
25 years with DesignCAD

bdeck

  • Hero Member
  • *****
  • Posts: 827
Re: 2-D Plane
« Reply #2 on: November 06, 2017, 03:51:55 PM »
Not sure if those do anything meaningful at this point....

They do. Found their definitions, along with sys$(800), a few weeks ago, and worked them into the Vdd macro. They make it possible to view a model by rotating around a vertical x or z axis, while keeping track of the current working plane. Very useful improvement.  http://forum.designcadcommunity.com/index.php?topic=5522.msg49983#msg49983

Many thanks,
bd

Code: [Select]
checkworkplane:
     if sys(1171)=1 then         'undocumented flag: active (non-default) working plane
          wpname$=sys$(800)      'undocumented name of most recent (non-default) working plane
          Text91$= "Curent Working Plane is "+wpname$+". Use V command to change Working Plane"
          Sys1027 =sys(1027)
          Sys(1027) = 0 'Yes/No MessageBox style
          Message text91$
          sys(1027)=Sys1027
    else
          wpname$="Yup"     ' display-name for default working plane
    endif       
return
« Last Edit: November 07, 2017, 07:53:05 PM by bdeck »