Results 1 to 1 of 1

Thread: Comp Owner Problem

  1. #1
    Member
    Join Date
    2003-12
    Posts
    7

    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. Workset Owner
    By pwmsmith in forum Revit Architecture - General
    Replies: 7
    Last Post: 2010-07-28, 11:39 PM
  2. Worksets - Owner
    By Bryan Thatcher in forum Revit Architecture - General
    Replies: 3
    Last Post: 2010-02-25, 04:42 PM
  3. having comp issues
    By KGC in forum Hardware
    Replies: 3
    Last Post: 2008-03-11, 05:23 PM
  4. Model to CM & Owner For Training
    By lhanyok in forum Revit Architecture - General
    Replies: 5
    Last Post: 2008-02-28, 04:01 AM
  5. Changing name of workset owner
    By Henry D in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 2
    Last Post: 2004-01-25, 11:28 AM

Posting Permissions

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