×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Create a library feature with SolidWorks 2007 API

Create a library feature with SolidWorks 2007 API

Create a library feature with SolidWorks 2007 API

(OP)
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?  

RE: Create a library feature with SolidWorks 2007 API

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)

RE: Create a library feature with SolidWorks 2007 API

(OP)
I've tried it but I didn't have a positive result..,Have you done it? Can you write the code for me,please?  

RE: Create a library feature with SolidWorks 2007 API

(OP)
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?  

RE: Create a library feature with SolidWorks 2007 API

(OP)
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!!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources