Search found 8 matches

by jeremyrz
Fri Feb 09, 2024 4:08 am
Forum: Macro Library
Topic: Macro to Initialize Unity and Customs properties
Replies: 2
Views: 921

Macro to Initialize Unity and Customs properties

Hello, I've created a macro that allows you to manually initialise certain perssonalised properties in solidworks. It worked until I decided to merge it with another macro that initializes units. Since then, I've been unable to get my macros to work together, or even to separate the 2 as was the cas...
by jeremyrz
Mon Jan 08, 2024 8:52 am
Forum: Macro Library
Topic: File name comparison macro in vault PDM
Replies: 1
Views: 1363

File name comparison macro in vault PDM

Hi, I'm looking for a way to clean up our vault, by identifying duplicate sldprt or sldasm files. A few years ago, we were using Pro Engineer as our CAD software. When we switched to Solidworks, all Pro Eng CAD files were batch transformed into SW files for use in Solidworks. However, all the files ...
by jeremyrz
Tue Nov 14, 2023 8:11 am
Forum: Macro Library
Topic: How to extract configation name of a selected view with Macro ?
Replies: 1
Views: 892

How to extract configation name of a selected view with Macro ?

Hello,

I'm looking for a macro capable of retrieving the name of the configuration used on a view previously selected by the user in a solidworks drawing.

Thanks for your help.
by jeremyrz
Tue Nov 14, 2023 8:05 am
Forum: Macro Library
Topic: Macro to create layer and set it to active state
Replies: 10
Views: 2465

Re: Macro to create layer and set it to active state

Hello Zwei and Superman

Thanks for your help, it works very well.
UU
by jeremyrz
Thu Nov 09, 2023 6:27 am
Forum: Macro Library
Topic: Macro to create layer and set it to active state
Replies: 10
Views: 2465

Re: Macro to create layer and set it to active state

Hello Zwei,

Image
It seems that the modifications you made generate a compilation error when I run the macro.
And since I'm not a VBA specialist at all, I can't find the solution to this error.
Could you please test it at home to see if you get the same thing?

Thanks a lot!
by jeremyrz
Tue Nov 07, 2023 6:24 am
Forum: Macro Library
Topic: Macro to create layer and set it to active state
Replies: 10
Views: 2465

Re: Macro to create layer and set it to active state

Tanks you Tera. And thank you Zwei, you helped me find a solution. However, some problems remain: - The BOM, which in the VBA program is generated after layer creation, is not created with the active layer, but in another layer "0". The new layer becomes active in SW, but the BOM does not ...
by jeremyrz
Fri Nov 03, 2023 6:37 am
Forum: Macro Library
Topic: Macro to create layer and set it to active state
Replies: 10
Views: 2465

Re: Macro to create layer and set it to active state

Hye SPerman, Thanks you for the links. I've allready seen this kind of help on solidworks, but i don't know how to use it. Especially for the "Declaration" field. Where i put that in my VBA macro ? What mean the "_" at the end of each line ? image.png looking forward to hearing f...
by jeremyrz
Thu Nov 02, 2023 11:40 am
Forum: Macro Library
Topic: Macro to create layer and set it to active state
Replies: 10
Views: 2465

Macro to create layer and set it to active state

Hye, I'm expected to create a Macro that could create a Layer, and set it in an active state, before adding a BOM in this layer, in my assembly drawing. I've search on site like, Codestacks or cadCoder, but nothing that i can really use to do this. A have allready find a macro to add a BOM, i just n...