Results 1 to 1 of 1

Thread: Comp Owner Problem

  1. #1
    Member
    Join Date
    2003-12
    Posts
    7
    Login to Give a bone
    0

    Cool Comp Owner Problem

    Code:
    as = amiGetContainingComp(pGeomKey, pLeafCompKey);			
    as = amiGetContainingComp(pLeafCompKey, pContCompKey);			
    as = amiGetCompDef(pContCompKey, pTargetCompDefKey);
    as = amiGetCompOwner(pLeafCompKey, pTestCompDefKey);
    as = amiAreKeysEquivalent(pTestCompDefKey, pTargetCompDefKey, bRetValue);
    if(bRetValue==Adesk::kFalse){
    	as = amiGetCompDefName(pTargetCompDefKey, pTargetCompDefName, Adesk::kFalse);
    	as = amiGetCompDefName(pTestCompDefKey, pTestCompDefName, Adesk::kFalse);
    	acutPrintf(_T("\nKeys Are: %s, %s"), pTargetCompDefName, pTestCompDefName);}
    as = amiIsCompDefLeafNode(pTestCompDefKey, bRetValue0);
    as = amiIsCompDefLeafNode(pTargetCompDefKey, bRetValue);
    if(bRetValue!=bRetValue0) acutPrintf(_T("\nDef Keys differ in type: %d, %d"), bRetValue0,  bRetValue);
    By running above piece of code one will very easily see that pTargetCompDefKey and pTestCompDefKey constructed by appropriate APIs are NOT equivalent, although they refer to the same object. The difference is “type mismatch”: pTargetCompDefKey is leaf-node definition, while pTestCompDefKey is NOT! I don’t know if it was AutoDesk intent, but you should take into account this “glitch”.
    Last edited by Opie; 2010-06-22 at 02:44 PM. Reason: [code] tags added

Similar Threads

  1. Why is my new comp so slow?
    By ECRUEY in forum CAD Management - General
    Replies: 1
    Last Post: 2010-05-19, 10:28 PM
  2. having comp issues
    By KGC in forum Hardware
    Replies: 3
    Last Post: 2008-03-11, 05:23 PM
  3. The Operation Comp... acdcsymbols.arx
    By BinnsBarry in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2007-12-18, 01:34 PM
  4. DWF COMP. 2 W/REVIT 9.1
    By ford347 in forum Revit Architecture - General
    Replies: 6
    Last Post: 2007-01-13, 05:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •