Search found 359 matches

by gupta9665
Mon Sep 11, 2023 1:07 am
Forum: SW General
Topic: Impossible to create machine threads on cosmetic threads
Replies: 19
Views: 1758

Re: Impossible to create machine threads on cosmetic threads

The reason for the issue is that you have used CGS system and your friend's is using MMGS system. This means you part is 10 times bigger and there is no thread size for that size in the database. You can update the database to include that size OR changes your model units (and size as well) to MMGS.
by gupta9665
Sun Sep 10, 2023 10:03 am
Forum: SW General
Topic: Impossible to create machine threads on cosmetic threads
Replies: 19
Views: 1758

Re: Impossible to create machine threads on cosmetic threads

No, you need to open the part template. Look for the .prtdot file in your system.

In case you are still unclear, then we can connect online via Anydesk or Teamviewer, and I can show you on your screen.
by gupta9665
Sun Sep 10, 2023 2:36 am
Forum: SW General
Topic: Impossible to create machine threads on cosmetic threads
Replies: 19
Views: 1758

Re: Impossible to create machine threads on cosmetic threads

To check/uncheck the "APPLY NEW COSMETIC THREAD BEHAVIOR TO NEW PARTS", you need to open the part template. The option won't be available with a part file active.
by gupta9665
Thu Aug 31, 2023 10:00 am
Forum: API
Topic: OpenDoc6 works correctly only in debug mode
Replies: 14
Views: 1200

Re: OpenDoc6 works correctly only in debug mode

Hello Gupta, no there is no error message. Does the macro open the component on the second level in the feature tree in a separate window? Yes the macro opens the component. I have 3dinterconnect set to on. And then macro open the selected STEP file and then the first sub assembly/component. Do you...
by gupta9665
Wed Aug 30, 2023 12:07 pm
Forum: API
Topic: OpenDoc6 works correctly only in debug mode
Replies: 14
Views: 1200

Re: OpenDoc6 works correctly only in debug mode

I tested (normal running and not debugging) the macro and it worked OK. Are you getting any errors?
by gupta9665
Mon Aug 28, 2023 6:22 am
Forum: How To Questions
Topic: Solidworks BSP Threads
Replies: 5
Views: 4030

Re: Solidworks BSP Threads

by gupta9665
Sun Aug 27, 2023 1:01 am
Forum: API
Topic: Determine Configuration Name for each BOM QTY Column?
Replies: 1
Views: 368

Re: Determine Configuration Name for each BOM QTY Column?

Select the option "Show configuration in BOM header" and you will see the configuration names instead of QTY
BOM Options.png
And if you want to add QTY. as well, then select "Show custom text in BOM header" and add QTY.
BOM with Config and QTY.png
by gupta9665
Sat Aug 19, 2023 4:46 am
Forum: How To Questions
Topic: How can I find if Mass Properties have been Overridden
Replies: 2
Views: 648

Re: How can I find if Mass Properties have been Overridden

For single file (active config), you can use following codes. The codes can be further modified to traverse each component's configurations and create a report with the components name and their configurations in which mass is overridden. Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelD...
by gupta9665
Tue Aug 15, 2023 10:29 am
Forum: SW General
Topic: make envelope items standard components
Replies: 32
Views: 1295

Re: make envelope items standard components

Add following line before end sub to remove the envelope option for bulk. But please note that any component solve state, suppression, etc. wil change like josh has stated. swDoc.CompConfigProperties6 2, 0, True, True, swComp.ReferencedConfiguration, False, False, 0 Remove Envelope.png But you can a...
by gupta9665
Fri Aug 11, 2023 7:40 am
Forum: SW General
Topic: where is the customer portal?
Replies: 38
Views: 2603

Re: where is the customer portal?

Check this post to get yourself on the required track https://www.goengineer.com/blog/why-am- ... orks-sites
by gupta9665
Fri Aug 11, 2023 12:56 am
Forum: API
Topic: Pack and Go Lite macro
Replies: 6
Views: 1042

Re: Pack and Go Lite macro

Why not use the pack and go API to get the drawings as well. You can also add prefix, suffix if needed and also add other files as well.

https://help.solidworks.com/2023/englis ... ple_vb.htm
by gupta9665
Fri Aug 11, 2023 12:44 am
Forum: API
Topic: How do I set the Custom Property Tab Template from a VB Macro?
Replies: 10
Views: 2393

Re: How do I set the Custom Property Tab Template from a VB Macro?

lenoli wrote: Thu Aug 10, 2023 1:05 am Yes , I have set system option > file location> CustomPropertyfile folder.
and all CustomProperty template show in list but still not working.
Sorry I meant to ask if you changed the "whatever.prtprp" with your required Custom Property template name with extension?
by gupta9665
Thu Aug 10, 2023 9:34 am
Forum: How To Questions
Topic: how to reactivate Design Table query window on open
Replies: 2
Views: 443

Re: how to reactivate Design Table query window on open

Well that window only appears when you edit the DT first time after creation OR you have "Show unselected items again" option selected. To force it to appear again (in case you missed to select the "Show unselected items again" option), configure a feature/component in the featur...
by gupta9665
Wed Aug 09, 2023 11:23 am
Forum: API
Topic: How do I set the Custom Property Tab Template from a VB Macro?
Replies: 10
Views: 2393

Re: How do I set the Custom Property Tab Template from a VB Macro?

lenoli wrote: Wed Aug 09, 2023 5:38 am sub main()
application.sldworks.activedoc.extension.custompropertybuildertemplate(false) = "whatever.prtprp"
end sub
this macro can't run in SW2020?
Did you specified the correct path for the property tab builder file with extension?
by gupta9665
Wed Aug 09, 2023 3:09 am
Forum: How To Questions
Topic: mates delete themselves
Replies: 13
Views: 1418

Re: mates delete themselves

Check if the user has the "Use for positioning only" selected under mate property manager. If yes then ask the user to deselect it and try again.
by gupta9665
Sat Aug 05, 2023 1:00 pm
Forum: SW General
Topic: Text "Box" with an opaque background
Replies: 2
Views: 512

Re: Text "Box" with an opaque background

There is no option as I know of. So may be insert an image (white blank image with the required text) on the dimension. And then print.
by gupta9665
Thu Aug 03, 2023 2:17 am
Forum: API
Topic: call Add-in from Macro
Replies: 4
Views: 588

Re: call Add-in from Macro

We looked into this. Unfortunately, as far as I can tell, the functionality we want to do (generate PNG and STEP files) can't be done from a standalone tool, only an add-in or macro. I had made standalone tool to do similar tasks. The standalone tool will start the SW (if an instance is not running...
by gupta9665
Wed Aug 02, 2023 7:14 am
Forum: API
Topic: call Add-in from Macro
Replies: 4
Views: 588

Re: call Add-in from Macro

You can look into creating a standalone tool instead of add-in.
by gupta9665
Wed Aug 02, 2023 1:23 am
Forum: SW General
Topic: BOM behavior
Replies: 7
Views: 680

Re: BOM behavior

Would you mind sharing the files as it may help to under the issue and provide a better explanation/solution.
by gupta9665
Tue Aug 01, 2023 10:35 am
Forum: How To Questions
Topic: Delete "Find Intersection" lines
Replies: 14
Views: 1195

Re: Delete "Find Intersection" lines

May be time to build a macro to find and remove those dangling points.
by gupta9665
Tue Aug 01, 2023 1:21 am
Forum: SW General
Topic: What is best way to model these sheet metal parts?
Replies: 5
Views: 716

Re: What is best way to model these sheet metal parts?

picturedrawerGSS wrote: Mon Jul 31, 2023 7:26 pm Kinda bummed I don't know how to post pictures. Haven't looked into the process.
Upload the picture like you have uploaded the zip file. And then you will option to put the image inline. Click on that and the picture will be added below/above the description text.
by gupta9665
Fri Jul 28, 2023 8:45 am
Forum: 2D Drawings
Topic: Color Display Mode
Replies: 7
Views: 710

Re: Color Display Mode

My friend @Dan Bovinich calls this button an evil button :P
by gupta9665
Wed Jul 26, 2023 1:11 am
Forum: SW General
Topic: Deleting Custom Properties Links?
Replies: 8
Views: 647

Re: Deleting Custom Properties Links?

Hi again, Guessing it's a legacy issue, as these files have been sitting for 5 years and 5-15 people in 2 different countries, (outsource to India), so is what it is, thanks for the interest, wish I could share the files so we could figure out the issue and proper solution if there is one. Regards,...
by gupta9665
Tue Jul 25, 2023 12:08 pm
Forum: SW General
Topic: What is best way to model these sheet metal parts?
Replies: 5
Views: 716

Re: What is best way to model these sheet metal parts?

Create a master sketch with the panels. Drop the master sketch into a new part and build one panel using the master sketch lines as reference. Once finished, copy as new file/number. Edit the panel the second panel and move the sketch line references. Repeat. Once ready simply drop all panels into t...
by gupta9665
Tue Jul 25, 2023 11:57 am
Forum: SW General
Topic: Deleting Custom Properties Links?
Replies: 8
Views: 647

Re: Deleting Custom Properties Links?

JMOS4 wrote: Mon Jul 24, 2023 1:01 pm Hi Again,

As with everything now days it's all proprietary, either way not sure if it's a legacy issue or something else.

Regards,
Jim
OK.

What your VAR said about this?
by gupta9665
Fri Jul 21, 2023 12:34 pm
Forum: SW General
Topic: Deleting Custom Properties Links?
Replies: 8
Views: 647

Re: Deleting Custom Properties Links?

Any chance you can share the file to check (even in private is OK).
by gupta9665
Wed Jul 19, 2023 10:28 am
Forum: API
Topic: Macro in the PDM Vault
Replies: 17
Views: 1495

Re: Macro in the PDM Vault

This should work but I prefer to keep it local on user machine as sometimes when more than one user is trying to use a commonly placed macro, the results are weird. I have recently experienced this, so moved the macros to induvial machines and they are working good. Further I would advise to create ...
by gupta9665
Sat Jul 08, 2023 3:33 am
Forum: How To Questions
Topic: how to NOT update thumbnail
Replies: 8
Views: 1000

Re: how to NOT update thumbnail

Select these 2 options

Tools > Options > General > Show thumbnail graphics in Windows Explorer

Tools > Options > Document Properties > Image Quality > Use isometric, zoom to fit view for document preview.
by gupta9665
Fri Jun 30, 2023 3:13 am
Forum: How To Questions
Topic: orienting a sketch block in a 3Dsketch
Replies: 7
Views: 641

Re: orienting a sketch block in a 3Dsketch

Have you tried adding the 3d planes inside the 3d sketch and placing the blocks on them or adding constrains between block and those 3d planes?
by gupta9665
Fri Jun 23, 2023 1:44 am
Forum: How To Questions
Topic: Creating an Incrementing Alphabetical Pattern in Solidworks
Replies: 2
Views: 619

Re: Creating an Incrementing Alphabetical Pattern in Solidworks

It was actually captured by @MJuric first here https://cadforum.net/viewtopic.php?t=485

And I'm sure that there would be a way to do this for alphabets as well.
by gupta9665
Wed Jun 21, 2023 2:07 pm
Forum: 2D Drawings
Topic: Annotations & Sheet Scale
Replies: 13
Views: 1116

Re: Annotations & Sheet Scale

You must have selected "scale annotation's position/test height" while changing the scale. And also do not show again option. So check if you have "Show sheet scale.." message under Tools > Options > System Options> Messages/Errors/Warnings > Dismissed Messages. If yes, then sele...
by gupta9665
Mon Jun 19, 2023 1:33 am
Forum: SW General
Topic: How to make the visibility of Display Pane persistent?
Replies: 4
Views: 531

Re: How to make the visibility of Display Pane persistent?

There is no direct method in the API for the display pane. So option is to use the send keys methods.

If you are comfortable using mouse, then you can set a mouse gesture for the showing or hiding the display pane.
by gupta9665
Sat Jun 17, 2023 2:23 pm
Forum: SW General
Topic: How to make the visibility of Display Pane persistent?
Replies: 4
Views: 531

Re: How to make the visibility of Display Pane persistent?

Display Pane visibility is file dependent (so yes it's template driven). So you have to set it to show for individual file.

You can set a keyboard shortcut to quickly hide/show it. Other option could be a background macro which will show it once you have a model active on the screen.
by gupta9665
Fri Jun 16, 2023 11:52 am
Forum: SW General
Topic: Mate a Polygon
Replies: 3
Views: 397

Re: Mate a Polygon

You can use profile center mate and it do the job (just one mate).
Profile Center.PNG
And if you do not want that, then you can add 3 mates.
Coincident Mates.PNG
I have also attached the files for your reference.
Assem With Mates.zip
(317.29 KiB) Downloaded 37 times
by gupta9665
Mon Jun 05, 2023 12:32 pm
Forum: SW General
Topic: Export Solidworks model views to dxf file layers instead of sheets
Replies: 13
Views: 1530

Re: Export Solidworks model views to dxf file layers instead of sheets

I'm sure that this macro can be refined further to work without pre defined views and layers template. Will try my hands when I get some free time.
by gupta9665
Mon Jun 05, 2023 12:13 pm
Forum: Macro Library
Topic: Display Hidden Lines (with macro)
Replies: 6
Views: 811

Re: Display Hidden Lines (with macro)

There is a DisplayMode method but not sure if this can be used.
by gupta9665
Thu Jun 01, 2023 1:37 am
Forum: How To Questions
Topic: Inventor Import?
Replies: 5
Views: 674

Re: Inventor Import?

It could be related to the supported IAM version. SW 3Dinterconnect supports IAM V11 and above files, check the help file https://help.solidworks.com/2021/english/SolidWorks/sldworks/t_autodesk_inventor_files.htm and then check your assembly file version. Other reason could be the location. So copy ...
by gupta9665
Tue May 30, 2023 3:02 pm
Forum: SW General
Topic: Export Solidworks model views to dxf file layers instead of sheets
Replies: 13
Views: 1530

Re: Export Solidworks model views to dxf file layers instead of sheets

If you edit the component line font for the item shown in the view, you can select the layer and check "From Selection" to apply it to only the selected item in the selected view. It will move all of it's items to that layer prior to export. image.png After export to dxf (GIF, click to vi...
by gupta9665
Tue May 30, 2023 12:18 pm
Forum: SW General
Topic: Export Solidworks model views to dxf file layers instead of sheets
Replies: 13
Views: 1530

Re: Export Solidworks model views to dxf file layers instead of sheets

es2058 wrote: Tue May 30, 2023 11:28 am I was not able to change the different views of the drawing into layers, could only put all the views into the same layer. Is there a way to do this without converting the views to blocks/sketches?
Yes you can do it.
by gupta9665
Tue May 30, 2023 3:32 am
Forum: SW General
Topic: IF-Else Statement for Note in Drawing
Replies: 1
Views: 348

Re: IF-Else Statement for Note in Drawing

You can do this via equation in models based on models properties. For drawings, you may need a macro.
by gupta9665
Fri May 26, 2023 10:17 am
Forum: SW General
Topic: Export Solidworks model views to dxf file layers instead of sheets
Replies: 13
Views: 1530

Re: Export Solidworks model views to dxf file layers instead of sheets

I just tested the template method and it works.
Views on Layer DXF.PNG
by gupta9665
Fri May 26, 2023 7:49 am
Forum: SW General
Topic: Cosmetic Hole Pattern Border
Replies: 1
Views: 251

Re: Cosmetic Hole Pattern Border

Create a face split using the sketch and then you can select that face to define the boundary.
Cosmetic Hole Pattern Border.PNG
by gupta9665
Fri May 26, 2023 2:09 am
Forum: How To Questions
Topic: Getting Path Centerline from imported surface
Replies: 2
Views: 721

Re: Getting Path Centerline from imported surface

Yes, check this video
by gupta9665
Thu May 25, 2023 1:18 pm
Forum: How To Questions
Topic: sketch dimensions and configurations
Replies: 20
Views: 1851

Re: sketch dimensions and configurations

Is it possible to have sketch dimension in one config based on the that dimension in another config? So in Default the value is typed in, but in other config it's the value from Default * 2 or something. I'm thinking I cannot do it this way because there is no @[configname] in the Dimension ID, onl...
by gupta9665
Thu May 25, 2023 9:58 am
Forum: SW General
Topic: Export Solidworks model views to dxf file layers instead of sheets
Replies: 13
Views: 1530

Re: Export Solidworks model views to dxf file layers instead of sheets

Never tried it but here is a thought. Create a drawing template with all the desired views (pre defined views). Put them each on their individual layer. Now create the drawing for the model using that template and export as DXF. If this works then it can be easily automated using a macro in case you...
by gupta9665
Tue May 23, 2023 9:41 am
Forum: SW General
Topic: How do I determine what version a solidworks file is in?
Replies: 10
Views: 1331

Re: How do I determine what version a solidworks file is in?

Conklin wrote: Mon May 22, 2023 12:04 pm A customer sends me a file, how do I tell what version solidworks it is in?
Shy of trying to open it in various versions of eDrawings, and see what or which one opens it?
Any quick method?
Thanks
Why you want to try different eDrawings, just run the latest version and all should be good.
by gupta9665
Tue May 23, 2023 1:22 am
Forum: Macro Library
Topic: Macro: Batch Add Bounding Box
Replies: 3
Views: 920

Re: Macro: Batch Add Bounding Box

I apologize in advance for the thread drift. What is the purpose of a bounding box. I've never needed one in the CAD work I do. (Or maybe I did and didn't know it.) As jcapriotti mentioned, bounding box is to give you overall dimensions of a body, part or assembly. And add those values to propertie...
by gupta9665
Mon May 22, 2023 3:22 pm
Forum: Macro Library
Topic: Macro: Batch Add Bounding Box
Replies: 3
Views: 920

Macro: Batch Add Bounding Box

Here is another quick SOLIDWORKS macro to add "Bounding Box" feature found under "Reference Geometry" to all the model files (parts and assemblies) in the selected folder. There is option to hide the bounding box as well. Batch Add Bounding Box.png Here is the link to macro: http...
by gupta9665
Sat May 20, 2023 9:26 am
Forum: Macro Library
Topic: Macro: Export all open drawings as PDF and DWG
Replies: 4
Views: 5712

Re: Macro: Export all open drawings as PDF and DWG

The post you posted helped me a lot. Thank you. However, I am inquiring because there is a part that cannot be modified. I couldn't find the part number in the part where I found the part number, so I went to the description and got the conversion name. I don't know how to solve this. I'm not able ...