Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How usable the AssemblyDoc::IAddComponent2 function (in the API)?

Status
Not open for further replies.

ZsZs

Computer
May 8, 2007
30
Hi!

I like the to use the IAddCmponent2 function of Assembly document.
The help of Solidworks illustrate with a full example, but is not compiled, because was a error: the LPCOMPONENT type is undefined symbol.
I don't found the symbol declaration...

After that I exchange the LPCOMPONENT to IComponent2 type (it is declared the sldworks.tlb .

It seemed as correctly, because the retval not contain error code, BUT nothing do it. Don't add any component, and not any help for me, that have a problem.

I like to questions for anybody: I how use this function?

It would be very useful thing, because it is adding the components as 'batch'!

(I working MS-Visual C++ 6.0)

Thanks!
ZsZs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor