Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Grid space is not increasing.

    SDK Help
    0
    3
    954
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 26/04/2018 at 04:35, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R19 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I have written below code to increase the grid space but not getting the desired result. So please tell me what I am doing wrong here.

      BaseDraw* bd = doc->GetActiveBaseDraw();
      if (!bd)
      return false;
      bd->SetParameter(BASEDRAW_DATA_SNAP_PLANE_SPACING, 2240, DESCFLAGS_SET_0);
      EventAdd();

      After calling the above code still showing 100 cm (default grid space).

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 27/04/2018 at 05:30, xxxxxxxx wrote:

        Hi,

        actually I see nothing wrong with your code.Maybe you missed that grid spacing is only taken into account, if legacy mode is enabled (set BASEDRAW_DATA_PLANE_LEGACY_MODE to true).

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 30/04/2018 at 04:50, xxxxxxxx wrote:

          Thanks, Andreas, It has been resolved.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post