Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Create a library feature with SolidWorks 2007 API

Status
Not open for further replies.

bilyp

Mechanical
Sep 3, 2008
8
I have made a part and I'm trying to save it as a library feature using a macro command. There is a sample in the SolidWorks API help, how to make the macro but it didn't help me. Any idea,please?
 
Replies continue below

Recommended for you

First select the feature that you want to be a library feature. Then use ModelDoc2::Extension::SaveAs. Specify the extension ".sldlfp" on the filename.

-handleman, CSWP (The new, easy test)
 
I've tried it but I didn't have a positive result..,Have you done it? Can you write the code for me,please?
 
I change the part to a feature( with .sldlfp extension), as you advice me, but then when you insert the new feature a message telling you that the "Feature Library is empty" appeared on the screen. What I should do?
 
No, you are wright..!! It is ok! I don't know what I did wrong but now I think that it works... I'll kill myself!! All day I'm trying it and now it works!!I'll see it again tomorrow, thanks for now..Any idea how I can insert it to a part or assembly? Many many thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor