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

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

Reply to
Peter Hinsbach
Loading thread data ...

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

Reply to
Robert V. Hanson

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

Reply to
Peter Hinsbach

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.