Can I export the parameters?

Hello

 

Let me explain, I would like to create for example a concentric ISO reduction. So there is a small diameter, a large diameter and a length that depends on the 2 diameters (3 times the difference in diameter).

So I would like to put all of it in a library, and when I do a drag and drop it asks me for my small diameter and then my large diameter and it would build the reduction as it should.

 

I hope I'm clear.

 

I own Solidworks 2014.

 

Thanks in advance

Kind regards

1 Like
Hello Yes, it is possible by creating a library function: http://help.solidworks.com/2012/French/SolidWorks/sldworks/Create_Library_Feature.htm?id=bab79dcc33604808b094025cdb18cddf#Pg0 Or here: http://bib.altitech.free.fr/aide_altitech/generalites/mfb2_.htm
2 Likes

You answered before me lucas, I'd have the same link, otherwise the question has already been asked here:

http://www.lynkoa.com/forum/3d/comment-parametres-une-piece-de-type-joint-en-different-diametre

and it is the same person that he asked it, in fact the same account.

 

That's it.

It's not the same question! The one is a library function and the other is the library pieces.

@m.anger it was me who asked the question but this is not the same thing.

 

@Lucas The goal is not to put the function in a library but to put the file with its different conditions so that when I drag solid into an assembly, and then it asks me for its conditions.

It looks like CloneComponents from myCADtools!!

1 Like

OK it's to insert several components, I had misread. This will not be possible in Solidworks without creating a VBA macro (see my tutorial to get started in VBA: http://www.lynkoa.com/tutos/3d/macro-enregistrer-sous-avec-solidworks ) or using Clonecomponents: https://www.youtube.com/watch?v=UpTBtrVJR8

1 Like

@ACO and @Lucas So CloneComponents is fine, it does exactly what I wanted to do for me, but it creates another file for me, one for each assembly, when I just wanted to change sides.

 

With a macro the scenario roughly how would it go?

I'm not in the office until January 6th, so I don't have access to Clone Components, but maybe there is an option to replace the file? Otherwise you have to delete and rename afterwards. For a macro, if you're a beginner it requires a lot of work. You have to look at the code created when you make a macro by learning (save and then edit): I think I talk about it in my tutorial. Otherwise look at this link: http://help.solidworks.com/2012/French/SolidWorks/sldworks/t_record_pause_macro.htm
1 Like

Hello

 

    In CloneComponents, you do not have the option to replace a component. You can create a  new component or create a new virtual component.

1 Like

Thank you all,

 

I called Axemble they will probably modify CloneComponent to create this option but how soon it will be I don't know.

 

So I'll make do with CloneComponent for now by saving my file in the assembly folder, too bad it will make me a lot of files but in the meantime.... but thank you all

 

And Happy New Year

I called Axemble they will probably modify CloneComponent to create this option but how soon it will be I don't know.

 

So I'll make do with CloneComponent for now by saving my file in the assembly folder, too bad it will make me a lot of files but in the meantime.... but thank you all

 

And Happy New Year