API: LibraryFeature with more than one refernce (COM/C++)

Aug 06, 2003 2 Replies

Hi !



If I use ModelDoc2->InsertLibraryFeature( libFeatPartNameIn ) in SolidWorks 2001plus with only one corresponding library feature reference which I selected before, the call works fine.



If I use a library feature with more refernces (plane, sketch and edge point), which I selected before, the call works not successfully.



By the way: A makro behaves itself in the same way.


Any suggestions ?



Many thanks in advance !


Greetings Peter



As I understand it, this works in SW2003 but I have not needed to try it. Did you repeat this behavior in Sw2003?

Best Regards,

-- Bob Hanson CEO Custom Programming Unlimited LLC SolidWorks Solution Partner in two categories (SW API training/consulting and SW PDM provider)

formatting link
website (Home of SW API Public Code snippets)

SolidWorks 2003 World User Conference Exhibitor Booth #407

Hi Bob,

I have the solution:

Due to the required selection order of a library feature you have to use SetSelectedObjectMark to arrange the slected refernces for the InsertLibraryFeature call..

Greetings Peter

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required