Search found 508 matches

by AlexB
Thu Dec 19, 2024 3:31 pm
Forum: SW General
Topic: how to stop "view" insert of fillet/radius centerines
Replies: 6
Views: 221

Re: how to stop "view" insert of fillet/radius centerines

In your drawing template, if you look at "Options -> Document Properties -> Detailing", there is a section for "Auto insert on view creation" that will put centerlines/centermarks based on your selections.
by AlexB
Thu Dec 19, 2024 9:07 am
Forum: SolidWorks PDM
Topic: Task pops-up data card making a PDF
Replies: 2
Views: 155

Re: Task pops-up data card making a PDF

On the first page of the setup, choose to not use an input card
image.png
image.png (4.92 KiB) Viewed 108 times
by AlexB
Wed Dec 18, 2024 9:49 am
Forum: 2D Drawings
Topic: Attach balloon to part in assembly exploded view?
Replies: 2
Views: 250

Re: Attach balloon to part in assembly exploded view?

If you right-click your view and select properties, can you verify that the "Linked to BOM" box is checked?

Edit: Is the BOM they are linked to also set to show indented detail numbering?
by AlexB
Wed Dec 11, 2024 12:58 pm
Forum: SolidWorks PDM
Topic: Yes/No Variable Type in PDM
Replies: 6
Views: 352

Re: Yes/No Variable Type in PDM

It seems to stem from the inconsistencies within different programming languages themselves. Boolean (1 is true, 0 is false) vs. Variant_Bool (-1 is true, 0 is false) each seem to be used throughout the API and likely add-ins such as Dispatch or even PDM/Solidworks. I don't foresee this being someth...
by AlexB
Wed Dec 04, 2024 8:32 am
Forum: SW General
Topic: VAR money and their added value
Replies: 4
Views: 472

Re: VAR money and their added value

The only thing we are ever invoiced for is the license support renewal annually. This, as you mentioned, allows us to keep up to date with the latest service packs if desired as well as have access to the subscription-only license features (Solidworks CAM, etc.) I've never been invoiced for any addi...
by AlexB
Wed Dec 04, 2024 8:26 am
Forum: SolidWorks PDM
Topic: New Server and Vault view recreation
Replies: 4
Views: 402

Re: New Server and Vault view recreation

thank you for the batch, I was usually killing edmserver and explorer after checking if sldworks was in execution to avoid a registry overwrite when it closes. I will lookup the othet exes to better understand what they do. Do you think it is better to delete the whole vault folder and remake it? I...
by AlexB
Mon Dec 02, 2024 10:23 am
Forum: SW General
Topic: Informal survey for Solidworks usage.
Replies: 25
Views: 3167

Re: Informal survey for Solidworks usage.

As a PDM Admin, we have used and plan to only use SW Desktop paired with our on-site PDM server(s). This solution is working as we need it, and the latency is basically 0. I don't see a reason to ever move to a cloud based solution. That would move the files out of our control, reduce connection spe...
by AlexB
Fri Nov 22, 2024 9:12 pm
Forum: Macro Library
Topic: Macro help to display part of filename
Replies: 9
Views: 908

Re: Macro help to display part of filename

Try this. The variable "s" is your initial string.

Code: Select all

Dim substring As String
substring = Right(s, Len(s) - InStrRev(s, "-"))
by AlexB
Fri Nov 22, 2024 8:23 am
Forum: Macro Library
Topic: Split macro
Topic: Split macro
Replies: 13
Views: 1961

Re: Split macro

Monstrum Mathias wrote: Fri Nov 22, 2024 2:09 am Impressive Sir, very impressive!
@AlexB We owe you several cold beers, should you ever come to Denmark.
Happy to help. And Denmark has been on the long list of places I'd like to visit UU
by AlexB
Mon Nov 18, 2024 8:52 am
Forum: Macro Library
Topic: Split macro
Topic: Split macro
Replies: 13
Views: 1961

Re: Split macro

Hi Alex Just out of curiosity, how does the macro in fact split? There doesn't seem to be any split-feature involved in the code. It does produce some strange results from time to time, like extra identically named split-bodies. Unfortunately it also seems to do a complete rebuilt renaming all face...
by AlexB
Tue Nov 12, 2024 8:29 am
Forum: SolidWorks PDM
Topic: PDM Template Editor Missing
Replies: 3
Views: 592

Re: PDM Template Editor Missing

I've not implemented it, but plan to get a test environment up and running that has the latest PDM and SW for testing purposes. It's probably going to be after the new year though since I'm behind on getting 2024 all tested.
by AlexB
Tue Nov 12, 2024 8:24 am
Forum: Macro Library
Topic: Split macro
Topic: Split macro
Replies: 13
Views: 1961

Re: Split macro

The reverse direction button was put in because there are scenarios where it tries to start splitting things in the wrong direction. I didn't make it smart enough to determine the direction itself but it's possible to do that. To set a default value, you can modify the form in the VBA editor to set ...
by AlexB
Mon Nov 11, 2024 4:04 pm
Forum: Macro Library
Topic: Split macro
Topic: Split macro
Replies: 13
Views: 1961

Re: Split macro

I put something together as a proof of concept. It's still buggy and needs work but it shows about how this can function. I'm not going to have time to work on it for some time so it's here for anyone else that wants to tinker. There isn't currently an edit for the control, you'd have to delete and ...
by AlexB
Mon Nov 11, 2024 12:21 pm
Forum: SW General
Topic: cannot get radiused sheet metal part to flatten
Replies: 19
Views: 2237

Re: cannot get radiused sheet metal part to flatten

The feature between your unfold and fold where you add material by the bend is causing the issue. I'm not sure what to suggest though.
by AlexB
Mon Nov 11, 2024 8:28 am
Forum: SW General
Topic: Colored Drawings
Replies: 27
Views: 3117

Re: Colored Drawings

What color is your border and title block? I don't have "Microsoft Print to PDF", but I think the last time I used it, many years back, it prints the border in gray, not black. If you go to edit your Sheet Format, you actually see that the line format for borders is black. I will test it ...
by AlexB
Fri Nov 08, 2024 11:16 am
Forum: API
Topic: Populate PDM Data Card Edit Box with Part Description
Replies: 8
Views: 983

Re: Populate PDM Data Card Edit Box with Part Description

Out of the box, I can't think of a good way to do this. However, there are a lot of possibilities with a custom PDM Add-In. You could create the logic in the add-in code and add a button to the card that the user can click to "refresh from database" to trigger it or even make it automatic ...
by AlexB
Fri Nov 08, 2024 8:48 am
Forum: SW General
Topic: Colored Drawings
Replies: 27
Views: 3117

Re: Colored Drawings

I am looking into the print-to-pdf functionality and the only printer option I have is "Microsoft Print to PDF" and it doesn't give a lot of configuration options. However, it does print the filled hatched area the correct color.
image.png
by AlexB
Fri Nov 01, 2024 10:22 am
Forum: Macro Library
Topic: Split macro
Topic: Split macro
Replies: 13
Views: 1961

Re: Split macro

I could see this working as a macro feature, but that is probably one of the more complex things to develop with the API. My thought is that you could take the the starting face and the thickness as an input and it could copy/cut the body to create the desired features. This is certainly an interest...
by AlexB
Fri Nov 01, 2024 8:27 am
Forum: Job Listings
Topic: Job Posting I Just Saw
Replies: 6
Views: 1515

Re: Job Posting I Just Saw

can work with ambiguity
a bit of a red flag imo
by AlexB
Fri Oct 25, 2024 4:35 pm
Forum: Macro Library
Topic: Macro to delete tree features
Replies: 12
Views: 1510

Re: Macro to delete tree features

Dwight wrote: Fri Oct 25, 2024 3:50 pm It is kind of slow...
I suppose it probably rebuilds between each delete, which is not really fun. The attached version listens for events to halt rebuild during deletion and only rebuilds once at the end.
by AlexB
Fri Oct 25, 2024 11:55 am
Forum: Macro Library
Topic: Macro to delete tree features
Replies: 12
Views: 1510

Re: Macro to delete tree features

I don't necessarily see an issue with your macro, other than it operates the same as the delete dialog from within SW when you manually try to delete multiple things. The main issue is when you try to delete a feature and another feature that is dependent on the one being deleted. This, for whatever...
by AlexB
Mon Oct 07, 2024 9:45 am
Forum: SolidWorks PDM
Topic: Is it possible to set a version free variable via API without showing in the file history.
Replies: 12
Views: 2115

Re: Is it possible to set a version free variable via API without showing in the file history.

I'm interested. I had not heard of this so I did some searching. I found this in PDM Help: https://help.solidworks.com/2019/English/EnterprisePDM/Admin/t_Creating_an_Import_Rule.htm?id=39beb8ab95fb49f890fa27b04432022a&_gl=1*43uoio*_up*MQ..*_ga*NTkzOTgwNDM0LjE3MjgzMDc1NzY.*_ga_XQJPQWHZHH*MTcyODM...
by AlexB
Wed Oct 02, 2024 10:45 am
Forum: SolidWorks FAQ
Topic: Automatically add display data marks to default cfg
Replies: 13
Views: 4276

Re: Automatically add display data marks to default cfg

woollyhayles wrote: Tue Oct 01, 2024 2:01 am I've got the task created in the admin tool in PDM but I'm unsure on how to modify it to get it to work as it fails every time during the transition. I'm guessing it needs some additional code but I'm unsure on what or how to add it. Thanks
Can you post the code that you're using?
by AlexB
Mon Sep 30, 2024 1:02 pm
Forum: SolidWorks FAQ
Topic: Automatically add display data marks to default cfg
Replies: 13
Views: 4276

Re: Automatically add display data marks to default cfg

Hi there. This macro is perfect for what I need. Do you know how to modify it so that it can be used during a transition in Solidworks PDM? You would have to put that scripted code into a Task (using the SWTaskAddIn & PDM Professional). Then during your transition, you can add an action that tr...
by AlexB
Sat Sep 28, 2024 10:01 pm
Forum: Macro Library
Topic: Auto workshop drawing creation from Assembly of sheetmetal parts.
Replies: 2
Views: 724

Re: Auto workshop drawing creation from Assembly of sheetmetal parts.

I don't know of anything free that would do this, but I do know that there's an add-in developed to aid in drawing creating called "Drew" by "CadBooster". It does a lot of automation for drawings based on pre-defined templates. Note: I am not affiliated with the company so this i...
by AlexB
Tue Sep 24, 2024 8:21 am
Forum: SW General
Topic: FYI - 2024 SP04 is now available for download
Replies: 79
Views: 10657

Re: FYI - 2024 SP04 is now available for download

Since we are dropping Solidworks support .. I'll be watching this very closely because its the last one I will be able to get. I only have until Sept. 30th ** You have up to whatever service pack is released until you end your subscription service, whether you download and install it or not. Just g...
by AlexB
Thu Sep 19, 2024 8:35 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM DataCard: Input formula does not update without interaction
Replies: 2
Views: 1652

Re: PDM DataCard: Input formula does not update without interaction

I can reproduce this, however I don't really have any thoughts on how to remedy this without the use of Dispatch or another custom solution.

Edit: relevant KB article (not possible out of the box) https://support.3ds.com/knowledge-base/ ... 0000106127
by AlexB
Wed Sep 18, 2024 11:45 am
Forum: SolidWorks PDM
Topic: Can't Login to PDM
Replies: 12
Views: 1383

Re: Can't Login to PDM

Whenever I have user with this issue, it's due to the Explorer recent files list. If the list is too long or contains PDM files/folders then for whatever reason it can hang the explorer.exe process. Try unchecking the options shown here and restarting your explorer.exe process from the task manager....
by AlexB
Mon Sep 16, 2024 2:58 pm
Forum: API
Topic: How to determine if file is checked out?
Replies: 3
Views: 685

Re: How to determine if file is checked out?

Is there more of the macro available? When do you call this "IsCheckedOut" function?

I ran a test on my system and am getting the IEdmFile5.IsLocked to report as expected.
by AlexB
Mon Sep 16, 2024 11:36 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3043

Re: Applying updated templates to old documents

But you're talking about drawings here, right? I don't need to transfer these to a new template. I just need to do this with parts and assemblies. Mostly parts, transferring model history (sketches, features, configurations, equations, etc.). Everything else is simple enough to fix manually, but th...
by AlexB
Mon Sep 16, 2024 10:55 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3043

Re: Applying updated templates to old documents

I don't think it's necessarily impossible, but it may need to be tailored to your situation (as Deepak ( gupta9665 ) mentioned). The problems for me when I've run into this are with BOM tables and revision tables. It's difficult to update the formats of those if they've changed without just re-addin...
by AlexB
Mon Sep 16, 2024 9:24 am
Forum: SW General
Topic: Need some ideas from the braintrust for a really cool project!
Replies: 13
Views: 1744

Re: Need some ideas from the braintrust for a really cool project!

doobes wrote: Mon Sep 16, 2024 8:58 am
I would like to see the macro if'n you can lay your hands on it.

cheers
I believe it's ModelRescaler in this list of Lenny's tools: http://www.lennyworks.com/solidworks/default.asp?ID=20
by AlexB
Mon Sep 16, 2024 8:33 am
Forum: SW General
Topic: Need some ideas from the braintrust for a really cool project!
Replies: 13
Views: 1744

Re: Need some ideas from the braintrust for a really cool project!

... I'd like to try to 3D print up one of these to futz around with it. Trouble is the individual pieces are quite a bit larger than my printer. So I thought I would try scaling everything. ... Does your 3D print software offer scaling? I've been using GrabCAD Print and it's got a lot of post proce...
by AlexB
Tue Sep 10, 2024 4:53 pm
Forum: API
Topic: Editing Config Specific Props from BOM question
Replies: 3
Views: 589

Re: Editing Config Specific Props from BOM question

If you're in an assembly, then you don't necessarily have to call OpenDoc#. You can likely just get the ModelDoc2 from each Component2 interface and manage the custom properties without having to open/activate each child document. If you manage to get some code together, I'm sure others in addition ...
by AlexB
Fri Sep 06, 2024 8:17 am
Forum: SW General
Topic: Need a suggestion
Replies: 8
Views: 1261

Re: Need a suggestion

If you could show what this is supposed to attach to, that may help. It's difficult to picture what you're going for without knowing what it's intended application looks like.
by AlexB
Thu Aug 29, 2024 12:41 pm
Forum: 2D Drawings
Topic: Title block issues
Replies: 3
Views: 964

Re: Title block issues

You'll want to edit your Sheet2 properties and un-check this box and change the reference drawing view to the parent one on the current page you want to use.
image.png
by AlexB
Wed Aug 21, 2024 9:18 am
Forum: SolidWorks PDM
Topic: server renewal
Replies: 7
Views: 1391

Re: server renewal

The way that we brought our new servers online was to install everything fresh on them (SQL, PDM, etc.) I installed a blank vault view and then restored the SQL database from a production copy to the new server onto the blank vault view's table structure. This required that I modify a few tables in ...
by AlexB
Tue Aug 20, 2024 1:22 pm
Forum: SolidWorks PDM
Topic: server renewal
Replies: 7
Views: 1391

Re: server renewal

I may be misunderstanding by you mentioning replication, but if you mean what I think then that seems like an unnecessary complication. The only thing that would be doing for you is to replicate some files from the main archive as you've defined in your replication settings. Then when you want to us...
by AlexB
Wed Aug 07, 2024 8:46 am
Forum: SW General
Topic: What causes this...?
Replies: 16
Views: 2491

Re: What causes this...?

I've seen this before too. The only thing I see in the KB is a bug report for 2023 sp3. So I'm assuming it probably hasn't been resolved.
by AlexB
Wed Aug 07, 2024 8:28 am
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 20613

Re: Revision control app macro (release)

I wanted to post it to Github so that others could maintain/improve it as well, (for example, @PaoloG said you wanted to add some new features), making it a community project, but I don't know how to connect SW VBA editor to Github, it does not seem to support any kind of version control, and the ....
by AlexB
Tue Jul 30, 2024 11:14 am
Forum: How To Questions
Topic: Opening STEP files in SW?
Replies: 23
Views: 3950

Re: Opening STEP files in SW?

Just for fun, I took one of our big assemblies and saved it as a step file. My PC has 64 GB of ram and it took about 20 minutes to open the 600Mb STEP file. There's got to be something else going on.
by AlexB
Thu Jul 25, 2024 4:18 pm
Forum: SW General
Topic: can "On Edge" mates be repaired?
Replies: 7
Views: 1368

Re: can "On Edge" mates be repaired?

I just discovered that it's a bit more difficult when the sketch entity is still directly atop of what it needs to be re-mated to and there's no way to temporarily drag it out of the way. Haven't quite figured that out yet... Yeah, there are some limitations. The main issues are when the "edge...
by AlexB
Thu Jul 25, 2024 11:57 am
Forum: SW General
Topic: can "On Edge" mates be repaired?
Replies: 7
Views: 1368

Re: can "On Edge" mates be repaired?

Yes it's possible to repair relations. See the GIF below for how that works.

(You may have to click the GIF to get it to play)
Re-attach Relation.gif
by AlexB
Wed Jul 10, 2024 3:39 pm
Forum: SW General
Topic: Solidworks and VPN
Replies: 6
Views: 2311

Re: Solidworks and VPN

I'll echo what's been said already. The added latency of the connection from home as well as over VPN makes communication with PDM much slower. So, in addition to file transfers being slowed down, the SQL queries required for browsing the vault and making changes to files take much longer.
by AlexB
Mon Jul 08, 2024 9:24 am
Forum: API
Topic: Macro won't run if...
Replies: 5
Views: 1781

Re: Macro won't run if...

I'm only able to sort of duplicate this. If I select a cell and then move to click the "play" button on the macro editor, it doesn't do anything. However I don't believe this is necessarily an issue with the macro execution and more the way focus is handled. If I select the cell, then clic...
by AlexB
Wed Jul 03, 2024 2:27 pm
Forum: Macro Library
Topic: pdf & dxf export adding sheet name to filename for multi-sheet
Replies: 6
Views: 1774

Re: pdf & dxf export adding sheet name to filename for multi-sheet

I don't know if this setting will affect a macro's output or not... But what do you have for this setting? image.png On mine, that setting saves out the files as 00_filename 01_filename 02_filename etc... and it doesn't use sheet name. So maybe it isn't related. UU It does need to be selected to &q...
by AlexB
Wed Jul 03, 2024 10:21 am
Forum: Macro Library
Topic: pdf & dxf export adding sheet name to filename for multi-sheet
Replies: 6
Views: 1774

Re: pdf & dxf export adding sheet name to filename for multi-sheet

Hi AlexB, thanks for the link, Funnily enough I had been looking at that very page and trying to tweak the above code to pull through the vSheetName parts into my existing macro. It was after many fruitless attempts that actually led me here to get some help from someone who knows what they're doin...
by AlexB
Thu Jun 27, 2024 8:31 am
Forum: 2D Drawings
Topic: When filename is ****-GA
Replies: 6
Views: 1393

Re: When filename is ****-GA

Unfortunately, there's not a way to dynamically change what a text box is pointing to. 1. The easiest solution would be to have a separate template that you could apply which has the text boxes linked to the alternate properties. 2. A more difficult solution in PDM could be to have the GA drawings i...
by AlexB
Tue Jun 25, 2024 3:03 pm
Forum: API
Topic: Renaming a Mate with VBA
Replies: 18
Views: 2180

Re: Renaming a Mate with VBA

Would changing your line to set the name to include an explicit cast like this make a difference? Dim mateFeature As Feature Set mateFeature = arrayMates(x) mateFeature.Name = Left(swComp.Name, InStr(swComp.Name, "-") - 1) & "+" & arrayMates(X).Name Edit: Casting is essen...