C++ SDK



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/10/2004 at 00:08, xxxxxxxx wrote:

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

    ---------
    Hello
    How do I use MCOMMAND_KNIFE?
    ///////////////////////////////////////My Code ///////////////////////////////////////////////
      bc=gNew BaseContainer;
      bc->SetVector(MDATA_KNIFE_P1,p1);
      bc->SetVector(MDATA_KNIFE_P2,p2);
      bc->SetBool(MDATA_KNIFE_RESTRICT,TRUE);
      bc->SetReal(MDATA_KNIFE_ANGLE,45.0);
      mcd.doc=doc;
      mcd.bc=bc;
      mcd.op=obj;
      mcd.flags=MODELINGCOMMANDFLAG_CREATEUNDO;
      mcd.mode=MODIFY_ALL;
      SendModelingCommand(MCOMMAND_KNIFE,mcd);

    /////////////////////////////////////////////////////////////////////////////////////////////////
    But the problem is :
    error C2065:'MDATA_KNIFE_P1' : undeclared identifier
    error C2065:'MDATA_KNIFE_P2' : undeclared identifier
    error C2065:'MDATA_KNIFE_RESTRICT' : undeclared identifier
    error C2065: 'MDATA_KNIFE_ANGLE' : undeclared identifier

    I use the #include "ge_prepass.h "
    So tell me what to do?
    Thanks...
    ZawMinTun



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/10/2004 at 20:11, xxxxxxxx wrote:

    Hello
    Now I am testing that command it in V.8.
    It's working.
    Why don't it work in V.9
    Is there something I need to do in V.9 API.
    ZawMinTun



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/10/2004 at 20:46, xxxxxxxx wrote:

    Hello
    I found it like that...
    In V.8 API I found that
    #define MDATA_KNIFE_P1 2110 // VECTOR
    #define MDATA_KNIFE_V1 2111 // VECTOR
    #define MDATA_KNIFE_P2 2112 // VECTOR
    #define MDATA_KNIFE_V2 2113 // VECTOR
    #define MDATA_KNIFE_RESTRICT 2114 //Bool
    #define MDATA_KNIFE_ANGLE 2115 // Real

    So I replace those words with the number in my code and now it's working.
    ZawMinTun



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 25/10/2004 at 21:10, xxxxxxxx wrote:

    Why don't you just include "c4d.h"? This is the 'master' header which includes nearly all C4D headers - there might be interdependencies...

    Robert



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2004 at 00:38, xxxxxxxx wrote:

    Hello
    Mr. Robert
    Thank you for your reply..
    But I do surely include c4d.h and c4d_general.h also.
    I'm thinking I don't need to tell it and it's my fault.
    In SDK help, it shows that ge_prepass.h is needed.
    So I only mention that file only.
    Did you mean it's working on your machine with c4d.h?
    Is it possible my API package something-wrong?
    As for now, I solved my problem with those black ways.
    With all my respects...
    ZawMinTun



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2004 at 10:28, xxxxxxxx wrote:

    Good. Just thought to ask.

    Well, here's something to consider. I just did a text-in-file search of R9's api folder and no "MDATA_KNIFE" text was found. You must realize that R9 has some rather large changes from R8.x - especially with respect to its modeling tools.

    The API that comes with R9 looks like R8 (at least that's what the .lib says). But there are definitely code changes to the API. Looks like they did some patching to the current R8.5 API to make it work with the new version.

    So, sorry to say, you might be on the right track using the numbers. I'd just go ahead and define the "MDATA_KNIFE" values where needed to avoid later confusion.

    Robert



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/10/2004 at 20:02, xxxxxxxx wrote:

    Hello...
    Robert...
    Thank you  for your thorough test and emphaasizing on my problem.
    If, later, there is some kind of changes or answers to this case, let me know.
    Do a favour for me.
    With so much thanks...
    ZawMinTun@mail2dude.com



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 03/11/2004 at 11:14, xxxxxxxx wrote:

    Some of the constants have move around in R9. The new modeling functions will be explained in the R9 SDK docs.


Log in to reply