Search found 210 matches

by laukejas
Fri Jan 24, 2025 8:18 am
Forum: Macro Library
Topic: My Macros
Replies: 20
Views: 13766

Re: My Macros

DavidWS wrote: Fri Jan 24, 2025 7:56 am FYI, you can set a hotkey to edit a part, but it doesn't work for editing the selected assy.
image.png
Yeah, I know, that's why I made that macro, to overcome that little limitation :)
by laukejas
Tue Jan 07, 2025 10:13 am
Forum: API
Topic: Question about temporary bodies
Replies: 10
Views: 888

Re: Question about temporary bodies

It seems like putting SW back and forth between modeling operations and display operations takes extra time. You may want to try creating all the bodies, then displaying them all at once. To test this, I wrote some code to generate 3000 surface body spheres of diameters from 0 to 10 in a cube space...
by laukejas
Tue Jan 07, 2025 9:33 am
Forum: API
Topic: Question about temporary bodies
Replies: 10
Views: 888

Re: Question about temporary bodies

Maybe this will help: https://www.codestack.net/solidworks-api/document/suspend-graphics-update/ Aha! So the graphics suppression call was hiding in ModelView... Thank you very much, this works amazingly well. For my test part with 100 complex temporary bodies, it cut down display from 8.7 seconds ...
by laukejas
Tue Jan 07, 2025 7:47 am
Forum: API
Topic: Question about temporary bodies
Replies: 10
Views: 888

Re: Question about temporary bodies

I have another related question, can't seem to figure it out: when there are a lot of temporary bodies that need displaying (either in assembly or in a part), running Display3 individually on each of them becomes very slow, because SW seems to be regenerating graphics after each Display3 call. Is th...
by laukejas
Mon Jan 06, 2025 7:00 pm
Forum: Macro Library
Topic: My Macros
Replies: 20
Views: 13766

Re: My Macros

Adding another small macro. Random Body Color - randomizes the color (appearance) for every body in a multibody part. Useful with complex geometries where the boundary between bodies might not be clear, for example after complex splits. Also very refreshing for the eyes once you get bored by the def...
by laukejas
Mon Dec 30, 2024 6:14 pm
Forum: API
Topic: Question about temporary bodies
Replies: 10
Views: 888

Re: Question about temporary bodies

Again... They do not exist "in" anything. They exist in the aether. The void. The body's entities do have absolute coordinates, or they couldn't exist at all. Applying a transform to this before displaying will move the body, of course. "Display" doesn't even make the body exist...
by laukejas
Sat Dec 28, 2024 7:05 am
Forum: API
Topic: Question about temporary bodies
Replies: 10
Views: 888

Re: Question about temporary bodies

I don't think it exists "in" anything. I think the Display3 wording may be a bit imprecise. I'm not entirely sure, but I think it should say "where you want to display this temporary body", not "where this temporary body exists". That's why displaying the body in the a...
by laukejas
Fri Dec 27, 2024 9:43 pm
Forum: API
Topic: Question about temporary bodies
Replies: 10
Views: 888

Question about temporary bodies

Hi, everyone, Merry Christmas. I got a question about temporary bodies. When I get a reference to Body2 in an assembly (from part type component) and call Body2.Copy2 to create a temporary body from it, where does that temporary body reside in? What is hosting it? Since Copy2 call does not allow spe...
by laukejas
Tue Dec 03, 2024 6:55 pm
Forum: SW General
Topic: Representing multi-layer composite materials in SW
Replies: 5
Views: 815

Re: Representing multi-layer composite materials in SW

It looks like NX has an add-on for this purpose. NX Fibersim That looks pretty close to what I need. Wish there was something like it for SW... Laminate Tools has SolidWorks support. No idea on cost or functionality.....can't imagine its cheap. That looks pretty well thought-out, although from that...
by laukejas
Sun Dec 01, 2024 1:49 pm
Forum: SW General
Topic: Representing multi-layer composite materials in SW
Replies: 5
Views: 815

Representing multi-layer composite materials in SW

Hi, I wonder if anyone has any experience with this. For example, suppose you need to design a composite part that is comprised of a different material stack "sandwich", for example: Paint Primer 220gsm carbon cloth 380gsm carbon cloth 220gsm carbon cloth Foam 220gsm carbon cloth 380gsm ca...
by laukejas
Tue Nov 26, 2024 3:59 pm
Forum: API
Topic: Why is SW API so inconsistent and weird?
Replies: 4
Views: 901

Re: Why is SW API so inconsistent and weird?

Well, I had similar ideas, but: Some of the problems are limitations of COM itself (primarily array/variant related weirdness). Some of the problems are due to trying to support 3 (now 4) different programming languages and having to cater to the lowest common denominator (VBA). Even VBA supports st...
by laukejas
Sat Nov 23, 2024 9:48 am
Forum: API
Topic: Why is SW API so inconsistent and weird?
Replies: 4
Views: 901

Why is SW API so inconsistent and weird?

This is not a complaint, nor any specific issue, but just something I've been wondering over the years of working with SW API. Although it is very robust and well-documented, there are just so many inconsistent weird things about it that make it really difficult for newcomers to get into it. This ap...
by laukejas
Tue Nov 12, 2024 2:48 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

SPerman wrote: Tue Nov 12, 2024 2:28 pm If this had been available a few years ago I likely would have never purchased PDM. It appears to do most, if not all, of what our tiny engineering department needs from a PDM.
Hey, be careful with such comments, DS might come after me for hurting their sales :lol:
by laukejas
Tue Nov 12, 2024 2:47 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

Okay, so after some extensive testing, I think V5 is stable, so here it is. Release V5 Changes: -The application will no longer automatically lock Released documents (make them read-only, lock external references and enable freeze bar), but will prompt the user by default. If you prefer to always lo...
by laukejas
Tue Nov 12, 2024 2:24 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

Very much appreciated, it's very good work. It makes me doubt it would be really valuable to implement a PDM for our small team, your macro answer so many common problems in a very straightforward way. No problem :) I never expected this little tool to gain so much popularity, after all, it does ma...
by laukejas
Thu Nov 07, 2024 11:55 am
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

Well, thanks to you!!! That's certainly the problem, when I hover over "filename" it shows "231130-450.sldprt". So it's a file that was copied there without the macro. I can enforce a "do not touch directly" policy to the Repo folder but I cannot guarantee it will be f...
by laukejas
Wed Nov 06, 2024 11:10 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

Sorry you lost a lot of time with this. We will find a way to fix this issue, I promise :) Okay, reviewing your video, I strongly suspect that the issue is that you have some foreign files in your Repo directory with names that do not match the convention expected by the macro: [trackingId]_[Version...
by laukejas
Wed Nov 06, 2024 1:00 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

mgibeault wrote: Wed Nov 06, 2024 12:43 pm Thanks to you!
I'll do extensive testing in the next couple of days and report.
Are you using only SolidWorks' macro editor to edit your macros?
Thank you, I'll be waiting :) And yes, I am using SolidWorks macro editor. I thought there aren't any other IDE options, or are there..?
by laukejas
Tue Nov 05, 2024 4:15 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

Here's a file and it's versions from the Repo folder. I don't know why there's no "A.1" version. To be sure it was not a cause to the problem I duplicated A.2 and renamed to A.1 but it changes nothing. When I run the macro on this file, "Phases" and "Revision" change r...
by laukejas
Tue Nov 05, 2024 2:07 pm
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

Hi guys, sorry for my absence, for some reason I was not getting notifications, and now like 5 of them arrived at once :shock: I am looking into this issue as we speak. If there is no NDA or anything, could you please share at least one file (and it's revision history files) that shows the "sub...
by laukejas
Mon Oct 28, 2024 8:26 am
Forum: SW General
Topic: Automation for cutting holes in mating bodies based on a sketch?
Replies: 4
Views: 915

Re: Automation for cutting holes in mating bodies based on a sketch?

I have derived sketch set to the "z" key since I use it a lot. All I have to do is select a face or plane, select the sketch from the tree and hit the Z key. Derived sketch created. Then just need to constrain it. image.png It may not help you in the end, but maybe it will help you speed ...
by laukejas
Sun Oct 27, 2024 9:58 am
Forum: SW General
Topic: Automation for cutting holes in mating bodies based on a sketch?
Replies: 4
Views: 915

Re: Automation for cutting holes in mating bodies based on a sketch?

I found kind-of-a workaround, far from ideal, but sharing to show my progress. Basically I created a single sketch and Cut-Extrude feature, and did Link Dimension on both the size of the square and the depth of the cut, with Cut-Extrude set to cut All Bodies. And then copy-paste that feature. Basica...
by laukejas
Sat Oct 26, 2024 8:36 pm
Forum: SW General
Topic: Automation for cutting holes in mating bodies based on a sketch?
Replies: 4
Views: 915

Automation for cutting holes in mating bodies based on a sketch?

Hi, I am trying to do something that should be super simple, but I just can't figure it out. I need to automate the creation of rectangular bi-directional holes on a multibody part that cut through both bodies in equal depth: https://i.imgur.com/v6K9RQT.png https://i.imgur.com/kM1VAhS.png Number of ...
by laukejas
Fri Oct 18, 2024 1:28 pm
Forum: SW General
Topic: FYI - 2024 SP04 is now available for download
Replies: 79
Views: 13304

Re: FYI - 2024 SP04 is now available for download

I just searched the KB for "hole wizard" and the number of BR and malfunction in general is quite a clown show. Every time is the same story and the devs do not learn. I said and repeat: NX uses the best and most stable approach. If a command changes the way the model behaves they just ma...
by laukejas
Fri Oct 11, 2024 4:00 pm
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

For us, we have projects that don't share components (they are basically one off fixtures). So a main assembly # would be MF-02850 Then each make part under that assembly would be MF-02850-D01, MF-02850-D02, MF-02850-D03, etc... So, once I have the number of bodies set in stone, I just hit F2 and r...
by laukejas
Fri Oct 11, 2024 3:15 pm
Forum: SW General
Topic: FYI - 2024 SP04 is now available for download
Replies: 79
Views: 13304

Re: FYI - 2024 SP04 is now available for download

AlexLachance wrote: Fri Oct 11, 2024 7:47 am Why wouldn't it be?
Because that QA apparently isn't available to everyone... Not sure why they made it this way. Maybe you're right. Whatever, let them sue me, here it is: https://ufile.io/4c3o3umw
by laukejas
Fri Oct 11, 2024 3:12 pm
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

Re: How to add configuration-specific Cut List properties?

Eddy Alleman wrote: Fri Oct 11, 2024 7:29 am in that case i will add your findings to my SR. :D

happy coding!
Please let me know how it goes!
by laukejas
Fri Oct 11, 2024 2:51 pm
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

I do things like this, but go one extra step. I use the multibody part, and call it a MASTER file (example: if my assembly # is MF-02946, then this multibody part is called MF-02946_Master). For this example, lets say that the multibody part has 8 bodies in it. I then create 8 empty parts, and, usi...
by laukejas
Fri Oct 11, 2024 2:14 pm
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

If you have a set of features that are common to several parts, you can take that portion and insert it into multiple parts, and then make the differences from there. Separate parts seems so basic and silly, but in the end, it's the most reliable way to go. I've had a lot of problems with configura...
by laukejas
Fri Oct 11, 2024 1:54 pm
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

No multibody. SSP and Master Sketch/Skeleton create and maintain links so multibody is not necessary. All you need with multibody is "ground at origin" don't need to mate. For weldment, I only have frame parts in there. Whatever add to it is in next level assembly. Multibody is a pain in ...
by laukejas
Fri Oct 11, 2024 1:02 pm
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

Personally, without knowing exactly what you're trying to do, I would avoid especially the multi body stuff that you described. Well, what do you propose as an alternative? There are many designs with complex geometries shared between parts that are impossible or impractical to build as separate pa...
by laukejas
Fri Oct 11, 2024 12:43 pm
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

You want dumb number but you are giving meanings to the numbers. Even with order number, what's wrong using it in different project? Yes, I've done that before. As long as you got a way to search part number, you're good. The dumbest number will be {GUID}. A random long no duplicate "number&qu...
by laukejas
Fri Oct 11, 2024 4:18 am
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

Re: How to add configuration-specific Cut List properties?

Damn they add code for configuration specific properties and set it for all configurations... One wonders if they test it... I wanted to upvote the BR, but seems this is only for your eyes... Yeah, there seems to be quite a lot of new features in 2024 that didn't receive proper testing. Don't worry...
by laukejas
Fri Oct 11, 2024 4:17 am
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

Re: How to properly do dumb numbering for configs and multibody parts?

If you havent already, you might try posting this on the official forum. You may get more traction. Its an interesting question, just not one I have any constructive feedback on for you unfortunately. You mean the one on the 3DX platform? Which one exactly? I'm finding it difficult to find anything...
by laukejas
Fri Oct 11, 2024 3:48 am
Forum: SW General
Topic: FYI - 2024 SP04 is now available for download
Replies: 79
Views: 13304

Re: FYI - 2024 SP04 is now available for download

Did you elevate this with your VAR? We ended up going back to SP3.1, but Im curious if you continued to have the issue. Yes, and apparently they made a hotfix for this issue. Ask your VAR to send it for you as well, I was told it's number is QA00000367153. I'd post it here but I'm not sure if that'...
by laukejas
Thu Oct 10, 2024 9:25 am
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

Re: How to add configuration-specific Cut List properties?

Great to hear you're on 2024! 😄 Thanks for confirming that the bug is gone! I was checking out the new features in SolidWorks 2024 API, and I came across : A cut list (see: ICutListItem::CustomPropertyManager and IConfiguration::GetCutListItems) An assembly component (see: IComponent2::CustomProper...
by laukejas
Thu Oct 10, 2024 7:37 am
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

Re: How to add configuration-specific Cut List properties?

OK, I know I have tested with this some years ago and i filed an enhancement request several times. Even using the WINAPI it is not possible to mimic the clicking on the icon on the right. I did have a look into my code from then and found this remark: //IMPORTANT REMARK for SolidWorks 2021 cutlist...
by laukejas
Thu Oct 10, 2024 3:21 am
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

Re: How to add configuration-specific Cut List properties?

workaround: you can activate the configuration you want and then get the custom property for the active configuration. This has botthered me too for a long time so i filed a SR Last year i got a message from Solidworks that the following is added in SOLIDWORKS 2024 SP2: 🔹 SR# 1-23751953419 Descript...
by laukejas
Tue Oct 08, 2024 10:55 am
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

Re: How to add configuration-specific Cut List properties?

I believe this is not yet supported thru API. Reach out to your VAR, and ask them to verify. Here is a similar post https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/home?content=swym:prd:R1132100503382:qnaquestion:-9pcRMYEQoWfmDbQAjb8mQ Thanks, I did it, and we confirmed it's a bug, got it th...
by laukejas
Sun Oct 06, 2024 8:09 am
Forum: SW General
Topic: FYI - 2024 SP04 is now available for download
Replies: 79
Views: 13304

Re: FYI - 2024 SP04 is now available for download

Anyone getting constant crashes when working with Exploded View in SP4? I just reinstalled Windows and fresh SW 2024 SP4 with factory settings, yet can't do more than a few explode steps before the program CTDs :D
by laukejas
Sat Oct 05, 2024 11:57 am
Forum: API
Topic: How to add configuration-specific Cut List properties?
Replies: 12
Views: 1681

How to add configuration-specific Cut List properties?

I want to add configuration-specific Cut-List item properties, so they would appear like this: image.png By default, accessing ICustomPropertyManager from Feature won't allow me to specify configuration name: Set swCustPropMgr = selectedFeature.CustomPropertyManager(activeConfig.Name) swCustPropMgr....
by laukejas
Fri Oct 04, 2024 10:45 am
Forum: SW General
Topic: How to properly do dumb numbering for configs and multibody parts?
Replies: 20
Views: 3770

How to properly do dumb numbering for configs and multibody parts?

I know this topic has been beaten to death, but I wanted to ask something very specific that has not been covered yet as far as I was able to find. I'm working without PDM for my personal/hobby/contracted projects, and I've recently abandoned descriptive file naming for semi-dumb numeric convention ...
by laukejas
Thu Oct 03, 2024 6:05 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3767

Re: Applying updated templates to old documents

If the templates were such an issue SWX (not DSS) would issue a tool that allows you to create new ones based on the old ones, or to convert/update an "old" template to a new one. BTW, has anyone bothered to write a macro to do this? Attaching a macro I created for modifying the existing ...
by laukejas
Wed Sep 25, 2024 11:19 am
Forum: Macro Library
Topic: Revision control app macro (release)
Replies: 65
Views: 23591

Re: Revision control app macro (release)

What version of Solidworks are you all running? I'm on 2023 SP5.0 currently. I just downloaded V4 and went to run it and it acts like it is thinking for a minute but then nothing happens, no window appears, errors or anything. I also can't find a string in this code to change the Repository file pa...
by laukejas
Mon Sep 16, 2024 11:53 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3767

Re: Applying updated templates to old documents

Yes, I was referring mostly to drawings, but a good amount applies to part and assembly models to. As you mentioned, you have a lot of customized configuration property options selected, display options, etc. so a general tool will only get you part of the way there. This does give me an idea for a...
by laukejas
Mon Sep 16, 2024 11:19 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3767

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 laukejas
Mon Sep 16, 2024 10:47 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3767

Re: Applying updated templates to old documents

would you look into this? I am adding the macro. I remember it as bulk anted changing. set language from subtitle options. https://www.youtube.com/watch?v=eaDZ-rBzARw Thank you, this looks like a great tool to update drawings. I'm saving it for later. But for now, it's far more important for me to ...
by laukejas
Sun Sep 15, 2024 11:29 am
Forum: SW General
Topic: Maintaining projects in multiple languages
Replies: 5
Views: 1188

Re: Maintaining projects in multiple languages

It's the actual people/user downloading the macro. And since it is a weekend, may be we did not bothered to reply. And glad to know that you have found a solution, I was thinking to link to a Chinese to English macro for ideas I'm not complaining, I was just suspicious about the downloads, because ...
by laukejas
Sun Sep 15, 2024 11:25 am
Forum: SW General
Topic: Applying updated templates to old documents
Replies: 25
Views: 3767

Re: Applying updated templates to old documents

Have you tried insert part into part, and then breaking the link? Break how? image.png You mean External References -> Break All? Or selecting "Break Link" when creating Insert Part feature? Neither of these imports sketches and features... EDIT: correction, it does work for some parts (n...
by laukejas
Sun Sep 15, 2024 8:43 am
Forum: SW General
Topic: Maintaining projects in multiple languages
Replies: 5
Views: 1188

Re: Maintaining projects in multiple languages

Unrelated question... I've noticed on many of my posts people downloading my attached files like crazy (like, this one already has 28 downloads), but not a single reply, so I'm just wondering, do we have some bots here that keep downloading everything? Or is it real users that hoard every macro just...