Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

get_Count and get_XCount

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
oransen
330 Views, 2 Replies

get_Count and get_XCount

In many circumstances get_Count takes the address of a long. For example, getting the number of occurences:

    long iNumOccs ; 
    hRes = pOccs->get_Count(&iNumOccs);

 But I can't find out what get_XCount (for rectangular patterns) takes as a parameter.

 

    CComPtr<RectangularPatternFeature> pRectPattern ;
    pRectPatList->get_Item (CComVariant(1),&pRectPattern) ;

    ????? iXCount ; // what type is this ???
    pRectPattern->get_XCount (&iXCount) ;

 What type should iXCount be?

 

 

2 REPLIES 2
Message 2 of 3
philippe.leefsma
in reply to: oransen

That's a Parameter object.

 

Regards,

Philippe.

 

______________________________________________________________

If my post answers your question, please click the "Accept as Solution"

button. This helps everyone find answers more quickly!

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
oransen
in reply to: philippe.leefsma

Ok, found it:

 

 

CComPtr<RectangularPatternFeature> pRectPattern ;
pRectPatList->get_Item (CComVariant(1),&pRectPattern) ;

//CComPtr<Parameter> iXCount ; either this or...
ParameterPtr iXCount ; // ...this
pRectPattern->get_XCount (&iXCount) ;

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report