Search found 359 matches
Re: Macro to
Instead of exporting them from model directly, create a drawing with required views. Pu those views into separate layer and export. All via macro.
- Sat May 06, 2023 12:12 pm
- Forum: CAD Agnostic
- Topic: Painted surfaces in drawings
- Replies: 9
- Views: 1091
Re: Painted surfaces in drawings
I've not seen any specific pattern for painting/coating. We just use to show the surface and mark a note pointing to that surface. The note could say "Surface to be painted/coated".
- Sat May 06, 2023 3:32 am
- Forum: SW General
- Topic: How to change default tab of Welcome dialog
- Replies: 3
- Views: 964
Re: How to change default tab of Welcome dialog
Instead of home button, use R button on the keyboard.
- Sat May 06, 2023 2:06 am
- Forum: Macro Library
- Topic: Insert Virtual Part from template creates an empty sketch
- Replies: 14
- Views: 1562
Re: Insert Virtual Part from template creates an empty sketch
@gupta9665 I have just begun writing macro and there are a lot of things I still have to learn, could you explain me how to put the virtual part I just created in edit mode, and select the sketch without user input? Something like this is not in context and does not work. swAssy.InsertNewVirtualPar...
- Fri May 05, 2023 1:54 am
- Forum: How To Questions
- Topic: Hole Pattern - adding holes as part grows
- Replies: 4
- Views: 681
Re: Hole Pattern - adding holes as part grows
@Glenn Schroeder the 'Up to ref..." is new to me. I've always used equations, in an Excel Design Table, to calculate the values in the sketch array and keep it centered on the part. I'll have to try 'Up to ref..." next time and see how that works. You will love the "Up to Ref.."
- Fri May 05, 2023 1:51 am
- Forum: Macro Library
- Topic: Insert Virtual Part from template creates an empty sketch
- Replies: 14
- Views: 1562
Re: Insert Virtual Part from template creates an empty sketch
Yes and No... actually selecting the ORIGIN instead of the front plane the sketch is not created. Probably the sketch fails on creating due to the missing plane I guess. It would be nice to have some more control over it. Correct. Well the option would be to edit the sketch and exists it. This will...
- Thu May 04, 2023 2:17 am
- Forum: Macro Library
- Topic: Insert Virtual Part from template creates an empty sketch
- Replies: 14
- Views: 1562
Re: Insert Virtual Part from template creates an empty sketch
This is a default behavior when inserting a new virtual component (even manually). So you you can add the codes to delete the the sketch.
- Thu May 04, 2023 2:07 am
- Forum: Macro Library
- Topic: Macro for tangent edges and high quality views
- Replies: 8
- Views: 1374
Re: Macro for tangent edges and high quality views
GetOrientationName method should help in finding the view pre defined name only if it has been created independently.
- Mon May 01, 2023 2:28 am
- Forum: SW General
- Topic: Recduce points in in imported DXF file
- Replies: 5
- Views: 662
Re: Recduce points in in imported DXF file
You can draw spline by selecting fewer points.
Also check the heal edges tool if that helps.
Also check the heal edges tool if that helps.
- Mon Apr 24, 2023 12:48 am
- Forum: How To Questions
- Topic: Flexible Printed Circuit Geometry
- Replies: 14
- Views: 1112
Re: Flexible Printed Circuit Geometry
Yes my old buddy, miss the days we had worked together
You can keep a small bend radius if that helps.DanBovinich wrote: ↑Fri Apr 21, 2023 1:54 pm That works, but the sheet metal feature will add radius's in the corners. You have to tell it what size R. So, its back to guessing again....
- Thu Apr 20, 2023 1:14 pm
- Forum: 2D Drawings
- Topic: Link to Property Variables set?
- Replies: 3
- Views: 593
Re: Link to Property Variables set?
Found this Variable, but the options are grayed out, so anyone know how to activate these? image.png I believe this option is only for model and will not give you / for scale in drawings. So your second picture is the right way. Just uncheck per standard and set the delimiter to X/X for the 5 types...
- Thu Apr 20, 2023 11:19 am
- Forum: How To Questions
- Topic: Flexible Printed Circuit Geometry
- Replies: 14
- Views: 1112
Re: Flexible Printed Circuit Geometry
Have you tried using arc length dimension to fix the arc length?
- Tue Apr 18, 2023 5:17 am
- Forum: API
- Topic: insert virtual part
- Replies: 3
- Views: 542
Re: insert virtual part
If you want to insert multiple virtual components, then why not insert them in batch.
- Wed Apr 12, 2023 1:30 pm
- Forum: SW General
- Topic: Multiple licenses on the same machine.
- Replies: 17
- Views: 997
Re: Multiple licenses on the same machine.
OOOoooohhh Very interesting.. This option has potential. You have successfully achieved this previously.? Without issue or problems.? I would not be in anyones good books if I messed up our contractors license or locked our own one out.. I had used this method and made a tool for a client. The tool...
- Wed Apr 12, 2023 2:15 am
- Forum: SW General
- Topic: Multiple licenses on the same machine.
- Replies: 17
- Views: 997
Re: Multiple licenses on the same machine.
Deepak. This sounds promising. How would one go about achieving this..? The serial number is stored under HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks\Licenses\Serial Numbers in the Windows registry. So you can export this key with desired version name (keep the extension as .reg). Now make a copy of the...
- Mon Apr 10, 2023 12:17 pm
- Forum: How To Questions
- Topic: Move object 1 with object 2 but not vice versa
- Replies: 7
- Views: 666
Re: Move object 1 with object 2 but not vice versa
Can you share the files to check and suggest a solution?
- Mon Apr 10, 2023 12:09 pm
- Forum: SW General
- Topic: 'Old' Customer Portal Issues Today
- Replies: 38
- Views: 2052
Re: 'Old' Customer Portal Issues Today
The old portal may not be working. So you will have to use the one from the 3DSYM dashboard.
- Mon Apr 10, 2023 12:08 pm
- Forum: SW General
- Topic: Multiple licenses on the same machine.
- Replies: 17
- Views: 997
Re: Multiple licenses on the same machine.
It should work OK. Have a reg/bat file which you/contactor can run to change the serial number quickly in the registry and then can use the required version accordingly.
- Sun Apr 09, 2023 1:41 pm
- Forum: How To Questions
- Topic: Move object 1 with object 2 but not vice versa
- Replies: 7
- Views: 666
Re: Move object 1 with object 2 but not vice versa
Look into using limit mates.
- Fri Mar 31, 2023 10:45 am
- Forum: SolidWorks FAQ
- Topic: Archive of the old SWX Forum
- Replies: 3
- Views: 1273
Re: Archive of the old SWX Forum
https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/#community:yUw32GbYTEqKdgY7-jbZPg/iquestion:x8Aj_5NXQiqL3RSTJGpVDg https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/#community:yUw32GbYTEqKdgY7-jbZPg/iquestion:FtfnGr9ORkKHUfpKe68bnQ https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/#...
- Sat Mar 25, 2023 6:15 am
- Forum: Macro Library
- Topic: Macro to Rename Detail, Section and Aux View in alphabetical order
- Replies: 1
- Views: 704
Re: Macro to Rename Detail, Section and Aux View in alphabetical order
As far as I recall, the original macro was from @artem
- Sat Mar 25, 2023 6:12 am
- Forum: How To Questions
- Topic: Macro to change custom properties
- Replies: 14
- Views: 3275
Re: Macro to change custom properties
Check the API learning resources here https://tinyurl.com/DeepakGuptaAPI
- Thu Mar 23, 2023 4:07 am
- Forum: SW General
- Topic: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
- Replies: 11
- Views: 931
- Thu Mar 23, 2023 4:04 am
- Forum: How To Questions
- Topic: Macro to change custom properties
- Replies: 14
- Views: 3275
Re: Macro to change custom properties
Try these codes (not much error handling is added). Also does not handle to skip component already updated. You need to enter the existing property value followed by a - and then desired new property. For e.g. A1234-X1234 Option Explicit Dim swApp As SldWorks.SldWorks Dim swModel As ModelDoc2 Dim vC...
- Wed Mar 22, 2023 1:41 am
- Forum: How To Questions
- Topic: Macro to change custom properties
- Replies: 14
- Views: 3275
Re: Macro to change custom properties
Thanks Deepak for the macro. It gets me most of the way there. I think you misunderstood what I want to do though. The assembly is 1234, the first part in the assembly is 1234-A, the second part is 1234-B, third part is 1234-C and so on. When I run the macro it changes the prefix in the parts, but ...
- Mon Mar 20, 2023 12:34 pm
- Forum: How To Questions
- Topic: Macro to change custom properties
- Replies: 14
- Views: 3275
Re: Macro to change custom properties
Hi Gupta, This macro caught my attention, but I couldn't quite understand what it would do exactly, I tried it in a simple assembly, it added a number to the special properties of all parts (which I wrote). This macro add a property named "Number" (you can change the property name) in all...
- Mon Mar 20, 2023 12:31 pm
- Forum: SW General
- Topic: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
- Replies: 11
- Views: 931
Re: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
Use the same method and select "drawing view specified in Sheet properties" option.
- Sun Mar 19, 2023 1:16 am
- Forum: SW General
- Topic: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
- Replies: 11
- Views: 931
Re: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
Add a note in the drawing attached to the view and link to the custom property "Bend Allowance" as shown in attached video.
- Sat Mar 18, 2023 12:17 pm
- Forum: SW General
- Topic: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
- Replies: 11
- Views: 931
Re: Is there a way to show a sheet metal part's K factor on the .SLDDRW?
You can link a note to Bend Allowance cut list property.
- Sat Mar 18, 2023 12:14 pm
- Forum: How To Questions
- Topic: Macro to change custom properties
- Replies: 14
- Views: 3275
Re: Macro to change custom properties
Thanks, fixed that.Bradfordzzz wrote: ↑Sat Mar 18, 2023 8:59 am Works fine with one very minor change.
Change this .... If Not swComp .GetSuppression2 = 0 Then
to this ..... If Not swComp.GetSuppression2 = 0 Then
There is a space there that needs to be removed.
- Sat Mar 18, 2023 8:15 am
- Forum: How To Questions
- Topic: Macro to change custom properties
- Replies: 14
- Views: 3275
Re: Macro to change custom properties
Try following codes (not tested but should work) Option Explicit Dim swApp As SldWorks.SldWorks Dim swModel As ModelDoc2 Dim vComps As Variant Dim swComp As SldWorks.Component2 Dim swAssy As SldWorks.AssemblyDoc Dim i As Integer Dim wo_num As String Sub main() Set swApp = Application.SldWorks Set sw...
- Thu Mar 16, 2023 8:12 am
- Forum: How To Questions
- Topic: Workflow for Multibody Part names from Solidworks to Mastercam
- Replies: 6
- Views: 768
Re: Workflow for Multibody Part names from Solidworks to Mastercam
Have you explored a macro to rename the bodies in the cut list based on the folder names or some cut list property?
There is an option to rename the folders based on the description property value of the body in the cut list.
There is an option to rename the folders based on the description property value of the body in the cut list.
- Thu Mar 09, 2023 12:15 am
- Forum: SW General
- Topic: Top Ten List '23
- Replies: 142
- Views: 9591
Re: Top Ten List '23
Here is the list.
- Sun Mar 05, 2023 11:15 am
- Forum: How To Questions
- Topic: Advance BOM with Drawing View
- Replies: 4
- Views: 931
Re: Advance BOM with Drawing View
You can look at this macro and use codes form it: https://www.3dcontentcentral.com/Search ... ?id=807151
- Wed Feb 08, 2023 7:49 am
- Forum: API
- Topic: I Can't Download SOLIDWORKS API SDK!
- Replies: 3
- Views: 1462
Re: I Can't Download SOLIDWORKS API SDK!
You should be able to find the SDK in the installation files else you can ask your VAR/Reseller to help you with the required files.
- Mon Feb 06, 2023 2:55 am
- Forum: SW General
- Topic: Read my journey with SOLIDWORKS!!
- Replies: 1
- Views: 359
Read my journey with SOLIDWORKS!!
Read my journey with SOLIDWORKS, beautifully captured by Chris Fox on Engineers Rule
https://www.engineersrule.com/community ... -business/
https://www.engineersrule.com/community ... -business/
- Mon Feb 06, 2023 2:20 am
- Forum: SW General
- Topic: Is there a way to highlights parts from a BOM table?
- Replies: 8
- Views: 1020
Re: Is there a way to highlights parts from a BOM table?
Clicking on the row should highlight the components in the view and the feature tree (if expanded)
- Sat Feb 04, 2023 12:52 am
- Forum: API
- Topic: How to set the source of the part number used in the BOM (C#)
- Replies: 1
- Views: 447
Re: How to set the source of the part number used in the BOM (C#)
Seems like help is not updated.
instance.BOMPartNoSource = value is for setting the desired value (this is for VBA). SO similarly check the help file for C# methods.
instance.BOMPartNoSource = value is for setting the desired value (this is for VBA). SO similarly check the help file for C# methods.
- Mon Jan 30, 2023 1:47 pm
- Forum: API
- Topic: McMaster Cleaning Macro
- Replies: 14
- Views: 1236
Re: McMaster Cleaning Macro
Can you add finished version of these files as well i.e. after making the required changes.
- Sat Jan 28, 2023 5:04 am
- Forum: Macro Library
- Topic: Rename drawings tabs with model name
- Replies: 4
- Views: 732
- Sat Jan 28, 2023 1:31 am
- Forum: Macro Library
- Topic: Rename drawings tabs with model name
- Replies: 4
- Views: 732
Re: Rename drawings tabs with model name
Check the macro by @artem here https://www.codestack.net/solidworks-ap ... es-values/
- Fri Jan 27, 2023 12:16 am
- Forum: API
- Topic: McMaster Cleaning Macro
- Replies: 14
- Views: 1236
Re: McMaster Cleaning Macro
Share one sample file and what changes you would need and then I will try to create one
- Wed Jan 18, 2023 5:52 am
- Forum: SW General
- Topic: Why Solidworks prevents adding this hole?
- Replies: 25
- Views: 1612
Re: Why Solidworks prevents adding this hole?
Same results as @acmall i.e. the flange seems to be giving issue. And on changing the offset to 1.61, the issue is fixed.
- Tue Jan 10, 2023 12:10 pm
- Forum: Macro Library
- Topic: Viewing swp files without opening them in SolidWorks
- Replies: 8
- Views: 2096
- Sun Jan 01, 2023 12:54 am
- Forum: What's Wrong?
- Topic: Can't post / refresh issue on Android Chrome
- Replies: 15
- Views: 1393
Re: Can't post / refresh issue on Android Chrome
@jcapriotti, try switching to desktop option on the Android Chrome.
- Sun Jan 01, 2023 12:52 am
- Forum: Suggestions
- Topic: New topic for the forum
- Replies: 9
- Views: 2191
Re: New topic for the forum
I had also started with the drafting on the board in late 90's using pencils (my teacher was very particular in using the various pencils and that too from a particular brand) but never had to use in professional life. Like matt mentioned, I also doubt as people would be interest in discussing the o...
- Sat Dec 31, 2022 1:04 am
- Forum: API
- Topic: Missing enumartion for equation
- Replies: 12
- Views: 1581
Re: Missing enumartion for equation
Well it's reported under SPR #1197201. Kindly vote for it.
- Fri Dec 30, 2022 7:57 am
- Forum: API
- Topic: Missing enumartion for equation
- Replies: 12
- Views: 1581
Re: Missing enumartion for equation
Yes forgot that 2021 and onwards has this option added. Let me check that again.Hansjoerg wrote: ↑Thu Dec 29, 2022 4:54 pm This SOLIDWORKS Tech Blog describes that it is possible.
But I will still try to apply your suggested solution tomorrow.
- Thu Dec 29, 2022 10:58 am
- Forum: API
- Topic: Missing enumartion for equation
- Replies: 12
- Views: 1581
Re: Missing enumartion for equation
Is it because of the way the formula is written? You can not have the values multiplied in the custom properties but only in equations. So you need to add an equation and link the property with that. Here is an old post on same topic https://gupta9665.wordpress.com/2011/06/26/display-mass-in-dual-u...
- Wed Nov 23, 2022 1:20 am
- Forum: SW General
- Topic: Feature Manager Size
- Replies: 10
- Views: 908
Re: Feature Manager Size
Feature manager width is controlled per document i.e. it can not be controlled globally. So I had created a program to keep the feature manager width to certain value. Unfortunately that program is lost due to hard disk issue. But you can use/try the macros from following links https://www.cadforum....