Search found 44 matches
- Mon Apr 29, 2024 1:21 pm
- Forum: API
- Topic: Macro to set Imagequality to coarse with Batch+
- Replies: 8
- Views: 833
Re: Macro to set Imagequality to coarse with Batch+
Hi Slasher, thanks AlexLachance ;-) I'm back, but you are faster you can use Batch+ for this see the complete article on Codestack: https://www.codestack.net/solidworks-api/options/document/image-quality-coarse/ There is a button to save in the UI for every file you need to be saved: image.png Try o...
- Fri Dec 03, 2021 11:40 am
- Forum: How To Questions
- Topic: How to find rollback'd component?
- Replies: 23
- Views: 39144
Re: How to find rollback'd component?
I had the same problem last week.
Closing the assembly and solidworks and reooening solved it for me.
Eddy
Closing the assembly and solidworks and reooening solved it for me.
Eddy
- Tue Nov 02, 2021 8:55 am
- Forum: API
- Topic: VBA macro to toggle white background in drawings
- Replies: 1
- Views: 552
Re: VBA macro to toggle white background in drawings
As of today it is added to Codestack website.
https://www.codestack.net/solidworks-ap ... und-white/
https://www.codestack.net/solidworks-ap ... und-white/
- Tue Oct 12, 2021 12:13 pm
- Forum: API
- Topic: Add axis to coordinate system
- Replies: 30
- Views: 2411
Re: Add axis to coordinate system
I just cannot believe that you cannot access this somehow. The vector has to exist somewhere so that SolidWorks can use it. Every single triad uses the information from the standard origin - and the other coordinate system is just a transformed one. I need an SPR for that. SWX 2022 SP5 could have i...
- Mon Oct 04, 2021 9:25 am
- Forum: API
- Topic: Add axis to coordinate system
- Replies: 30
- Views: 2411
Re: Add axis to coordinate system
Hi berg_lauritz I'm thinking about a workaround. Do you need the CS for your CNC (in other words : can your CNC import the CS?) or do you only need a point, 3 axes and 3 planes in you CNC environment for easy selecting, aligning? If the latter you could create a dummy part with a point, 3 axis, 3 wo...
- Sat Oct 02, 2021 2:37 am
- Forum: API
- Topic: Add axis to coordinate system
- Replies: 30
- Views: 2411
Re: Add axis to coordinate system
How do i add an actual axis to this coordinate system with a macro? I'd like to add all three of them. Can I somehow use the ICoordinateSystemFeatureData Interface Members to do that? Any ideas? Hi Lauritz, ICoordinateSystemFeatureData can be used to get the points, faces ,edges the CS was build up...
- Thu Sep 30, 2021 3:47 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
Re: starting a SWUG in Belgium
The Belgium SolidWorks User Group BESWUG is officially started up.
Have a look at the meetup page and join if you like to:
https://lnkd.in/dDhp7w7w
Have a look at the meetup page and join if you like to:
https://lnkd.in/dDhp7w7w
- Wed Sep 08, 2021 6:07 am
- Forum: API
- Topic: Knurl Macro
- Replies: 8
- Views: 1143
Re: Knurl Macro
Hi Mark,
can you show an image of a part that had this knurl on it?
Might be interesting which features were used to google.
Eddy
can you show an image of a part that had this knurl on it?
Might be interesting which features were used to google.
Eddy
- Tue Sep 07, 2021 10:26 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
Hi Alex,
TIP: Sometimes it's easier to create a new macro with macro recorder and then copy paste the code in there.
Those references will be ok already then.
Eddy
TIP: Sometimes it's easier to create a new macro with macro recorder and then copy paste the code in there.
Those references will be ok already then.
Eddy
- Tue Sep 07, 2021 9:11 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
Hi Alex,AlexLachance wrote: ↑Tue Sep 07, 2021 9:02 am This is the error I get on Visual Basic. 2nd image to show how I selected. 3rd image to show file location.
Can you check your references:
Menu tools > References Eddy
- Fri Sep 03, 2021 7:05 am
- Forum: API
- Topic: Knurl Macro
- Replies: 8
- Views: 1143
Re: Knurl Macro
Hi mark,
What does it do exactly? I suppose it is not named knurl because you would already have found it i guess.
What does it do exactly? I suppose it is not named knurl because you would already have found it i guess.
- Tue Aug 31, 2021 8:24 am
- Forum: API
- Topic: VBA macro to toggle white background in drawings
- Replies: 1
- Views: 552
VBA macro to toggle white background in drawings
On the SolidWorks forum someone asked how to make a macro that toggles between the default drawing background color and a white color. The goal was to make it easier to capture images where a white background was required. Here is a simple macro that does exactly that. I will also explain the basic ...
- Mon Aug 30, 2021 9:38 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
- Sat Aug 28, 2021 8:46 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
Re: starting a SWUG
Hi Todd,
Great initiative you started.
Thx for the feedback
I´ve been contacted by the Solidworks swugn manager and applied for it today.
Eddy
Great initiative you started.
Thx for the feedback
I´ve been contacted by the Solidworks swugn manager and applied for it today.
Eddy
- Fri Aug 27, 2021 3:23 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
Is it possible that the drawing you want to open is already open?
The code just opens it if it is not already, it doesn't activate it to show on top of other windows if it was already there.
could you "Tile Horizontally" and show a print screen here?
The code just opens it if it is not already, it doesn't activate it to show on top of other windows if it was already there.
could you "Tile Horizontally" and show a print screen here?
- Thu Aug 26, 2021 11:54 am
- Forum: API
- Topic: Macro to set Imagequality to coarse with Batch+
- Replies: 8
- Views: 833
Re: Macro to set Imagequality to coarse with Batch+
Tip to speed things up :
if your files are all in the same folder, you can filter for *.SLDASM only, because of the setting, the parts in there will be affected too.
if your files are all in the same folder, you can filter for *.SLDASM only, because of the setting, the parts in there will be affected too.
- Thu Aug 26, 2021 10:49 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
are you able to use macro recording and run that macro?
If so you can copy paste the code in there to test your environment.
Are you saving the macro in a directory that has no restrictions on user level? You can try using C:\temp in that case.
If so you can copy paste the code in there to test your environment.
Are you saving the macro in a directory that has no restrictions on user level? You can try using C:\temp in that case.
- Thu Aug 26, 2021 9:20 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
you have to select a BOM cell first (not in a header) using LMB
That should do it.
If nothing happens, then follow my previous question/advice to run the macro directly...
then you press RMB and drag to the left.That should do it.
If nothing happens, then follow my previous question/advice to run the macro directly...
- Thu Aug 26, 2021 5:33 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
Hi Uncle,
I tested it and it works fine here.
Can you run the macro without using a gesture?
Menu Tools > Macro > Run and select the OpenDrawingFromBom.swp file
I tested it and it works fine here.
Can you run the macro without using a gesture?
Menu Tools > Macro > Run and select the OpenDrawingFromBom.swp file
- Thu Aug 26, 2021 1:10 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
Re: starting a SWUG
Thx David!
Does any of you know SWUG leaders here on the forum that are doing it nowadays? Obviously a lot has changed over the years.
Does any of you know SWUG leaders here on the forum that are doing it nowadays? Obviously a lot has changed over the years.
- Tue Aug 24, 2021 3:24 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
Re: starting a SWUG
Thx Mate
All good advice
Eddy
All good advice
Eddy
- Mon Aug 23, 2021 10:00 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
Re: starting a SWUG
I started a dozen groups up and down the US east coast 10-15 years ago. I burned out on it in the end. I was active in user groups from about '98 to probably 2010. It can be fun, but get help, pace yourself, and don't expect anyone to keep their promises. Thanks Matt That is what I'm afraid off. I'...
- Mon Aug 23, 2021 9:18 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
Re: starting a SWUG
Thanks Dennis,
that is extra useful info!
Eddy
that is extra useful info!
Eddy
- Mon Aug 23, 2021 3:10 am
- Forum: SW General
- Topic: starting a SWUG in Belgium
- Replies: 13
- Views: 1050
starting a SWUG in Belgium
Last weekend I enjoyed the SLUGME6 live stream. thanks to @Artem @gupta9665 @Alin and a lot of others who showed great content. What a great bunch of enthusiasm that was! This got me thinking. In my region there is no SWUG (SolidWorks User Group) and I think some of you here are SWUG leaders. Can yo...
- Thu Aug 19, 2021 9:53 am
- Forum: API
- Topic: If a custom property has associative dimension, how would I get the value and not the dimension name
- Replies: 3
- Views: 585
Re: If a custom property has associative dimension, how would I get the value and not the dimension name
you're welcome
We all made that mistake once, but when stepping up we use other "values" than numbers.
Happy coding
We all made that mistake once, but when stepping up we use other "values" than numbers.
Happy coding
- Thu Aug 19, 2021 9:01 am
- Forum: API
- Topic: If a custom property has associative dimension, how would I get the value and not the dimension name
- Replies: 3
- Views: 585
Re: If a custom property has associative dimension, how would I get the value and not the dimension name
Hi, the valout schould give you the value val gives what is filled in and that can be an equation in your case. from the docs: Parameters FieldName Name of the custom property UseCached True if the configuration has been activated, false if not (see Remarks) ValOut Value of the custom property Resol...
- Thu Aug 19, 2021 6:14 am
- Forum: API
- Topic: Macro to set Imagequality to coarse with Batch+
- Replies: 8
- Views: 833
Macro to set Imagequality to coarse with Batch+
I just published another macro on Codestack
https://www.codestack.net/solidworks-ap ... ty-coarse/
I hope you find it useful.
Please let me know if you have any comments/questions.
Eddy
direct link :https://www.codestack.net/solidworks-ap ... ty-coarse/
I hope you find it useful.
Please let me know if you have any comments/questions.
Eddy
- Tue Aug 17, 2021 2:14 pm
- Forum: API
- Topic: Copy Surface Macro
- Replies: 6
- Views: 832
Re: Copy Surface Macro
You´re welcome.
Glad you like it !
The macro has been published on Codestack today.
Go to Goodies > Geometry > copy surfaces direct link:
https://www.codestack.net/solidworks-ap ... set-equal/
Eddy
Glad you like it !
The macro has been published on Codestack today.
Go to Goodies > Geometry > copy surfaces direct link:
https://www.codestack.net/solidworks-ap ... set-equal/
Eddy
- Thu Aug 12, 2021 1:35 pm
- Forum: SW General
- Topic: Draftsight Free for New SW Licenses?
- Replies: 15
- Views: 1403
Re: Draftsight Free for New SW Licenses?
Agreed. We were on the verge of switching to Draftsight when they pulled that stunt. Glad we kept up our AutoCad seats. A client of mine also sticked to their autocad seat, but one day they had to reinstall windows10. They had to reregister their license and Autodesk support tells them they don't s...
- Tue Aug 10, 2021 2:22 pm
- Forum: API
- Topic: Copy Surface Macro
- Replies: 6
- Views: 832
Re: Copy Surface Macro
Hi @Zhen-Wei Tee I just uploaded a VBA macro to Codestack that does what you asked: https://github.com/EddyAlleman/codestack/tree/master/solidworks-api/geometry/surface-offset-equal It could take some days before you can find it on the Codestack website. This way you can look into it already. Happy ...
- Tue Aug 10, 2021 9:57 am
- Forum: Macro Library
- Topic: Open Drawing From BOM
- Replies: 19
- Views: 3008
Re: Open Drawing From BOM
Hi Stefan
Nice work!
Eddy
Nice work!
Eddy
- Sun Jul 25, 2021 8:51 am
- Forum: API
- Topic: Copy Surface Macro
- Replies: 6
- Views: 832
Re: Copy Surface Macro
Hi Zhen-Wei Tee you also could achieve this by using "knit surface" there is an API example in the help files: "Create Surface Knit Feature Example" https://help.solidworks.com/2016/english/api/sldworksapi/create_surface_knit_feature_example_vb6.htm An advantage here can be that ...
- Fri Jul 23, 2021 10:07 am
- Forum: API
- Topic: API Create Closed Spline
- Replies: 3
- Views: 553
Re: API Create Closed Spline
You're welcome
thanks for your feedback ;-)
Eddy
thanks for your feedback ;-)
Eddy
- Thu Jul 22, 2021 8:55 am
- Forum: API
- Topic: API Create Closed Spline
- Replies: 3
- Views: 553
Re: API Create Closed Spline
Hi Jordan, Can you show your code? What error did you get? The following recorded code creates a spline with the last point equal to the first one: Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Sub main() Set swApp = Application.SldWork...
- Wed Jul 14, 2021 2:40 pm
- Forum: API
- Topic: Retrieving Custom Properties for Part when Drawing is Active
- Replies: 10
- Views: 2649
Re: Retrieving Custom Properties for Part when Drawing is Active
The "default" you mention has me questioning whether you are actually accessing the "configuration name" of the part instead. Since you aren't familiar with SW, parts and assemblies can have multiple configurations where sizes, appearances, etc. can be different. Every part and ...
- Wed Jul 14, 2021 12:09 pm
- Forum: API
- Topic: How to select the planes by name
- Replies: 3
- Views: 474
Re: How to select the planes by name
You're welcome
- Wed Jul 14, 2021 12:01 pm
- Forum: API
- Topic: Retrieving Custom Properties for Part when Drawing is Active
- Replies: 10
- Views: 2649
Re: Retrieving Custom Properties for Part when Drawing is Active
Good to hear that! Eddy EDIT I do have a follow-up question regarding the CustomPropertyView property of the ISheet interface. When I collected the view name string currently assigned to the ISheet.CustomPropertyView property, the value returned for the view name was "default". When iterat...
- Tue Jul 13, 2021 5:05 am
- Forum: API
- Topic: Retrieving Custom Properties for Part when Drawing is Active
- Replies: 10
- Views: 2649
Re: Retrieving Custom Properties for Part when Drawing is Active
Hi Sean, You first have to retrieve the Modeldoc2 of the 3D model the drawing is referring to: 1) Get the "Sheet" Sheet swSheet = (Sheet)swDrawing?.GetCurrentSheet(); and use "CustomPropertyView" to get the name of the view the custom properties are used for. Iterate over all vie...
- Mon Jul 12, 2021 9:38 am
- Forum: API
- Topic: How to select the planes by name
- Replies: 3
- Views: 474
Re: How to select the planes by name
Hi, in the line PlaneName = "Plane" & "i" (results in Planei) change it to PlaneName = "Plane" & i (results in Plane1, Plane2,...) Also in the line boolstatus = Part.Extension.SelectByID2(PlaneName, "Plane", 0, 0, 0, True, 0, Nothing, 0) Plane should b...
- Fri Jul 09, 2021 6:25 am
- Forum: API
- Topic: Suggestions for programming training specifically for .NET and preferably geared to API concepts.
- Replies: 14
- Views: 1725
Re: Suggestions for programming training specifically for .NET and preferably geared to API concepts.
I haven't get the SW template to work yet in VC 2019 Community. Hi Frederick, Solidworks templates are not supported in visual studio versions > 2015. That's why I still have a visual studio 2015 installed on my pc (only for using the template). After creating a new project with the template , clos...
- Thu Jun 24, 2021 2:53 am
- Forum: API
- Topic: How to calculate the transform of a new plane?
- Replies: 2
- Views: 546
Re: How to calculate the transform of a new plane?
This question was also asked on CadOverflow and was continued there: https://www.cadoverflow.com/t/how-to-calculate-the-transform-of-a-new-plane/142 Basically the OP wants to create a workplane before creating a PMP and when the PMP is open transform it to the wanted location as chosen in the PMP. T...
- Wed Jun 16, 2021 3:09 am
- Forum: SW General
- Topic: Solidworks 2021 SP 4.0 is now available
- Replies: 13
- Views: 1227
Re: Solidworks 2021 SP 4.0 is now available
Thanks Bradforzzz
You are not sleeping ;-) No need for the zzz ;-)
Eddy
You are not sleeping ;-) No need for the zzz ;-)
Eddy
- Wed Jun 16, 2021 3:04 am
- Forum: SW General
- Topic: Solidworks 2021 SP 4.0 is now available
- Replies: 13
- Views: 1227
Re: Solidworks 2021 SP 4.0 is now available
Thanks Bradforzzz
You are not sleeping ;-) No need for the zzz ;-)
Eddy
You are not sleeping ;-) No need for the zzz ;-)
Eddy
- Thu Apr 01, 2021 10:55 am
- Forum: SW General
- Topic: Hi all
- Replies: 3
- Views: 385
Hi all
Hi there,
This is my first day on this forum. (just discovered it...)
Happy to see a lot of people I know here . feels good!
Thanks for making this forum
Cheers,
Eddy
This is my first day on this forum. (just discovered it...)
Happy to see a lot of people I know here . feels good!
Thanks for making this forum
Cheers,
Eddy