Search found 13 matches

by edcoggins
Fri Jan 20, 2023 11:19 am
Forum: API
Topic: Getting surface model vertex coordinates
Replies: 3
Views: 934

Re: Getting surface model vertex coordinates

Josh; Thanks for the tip!

Regards,
Ed
by edcoggins
Thu Jan 19, 2023 11:55 am
Forum: API
Topic: Getting surface model vertex coordinates
Replies: 3
Views: 934

Getting surface model vertex coordinates

Greetings. I am trying to get the 3D coordinates from a selection set of vertices in a surface model. I found an example code in the API Help (create and delete selection sets) that returns the type of entity found in the selection set which is 3. How can the 3D coordinates of the vertices be obtain...
by edcoggins
Fri Jul 08, 2022 11:29 am
Forum: API
Topic: Extracting spline data using API
Replies: 1
Views: 545

Re: Extracting spline data using API

Update: I was able to find example code in the API Help that found all of the spline points. The example code is found under the GetSketchSegments Method (ISketch).
by edcoggins
Wed Jun 29, 2022 4:12 pm
Forum: API
Topic: Extracting spline data using API
Replies: 1
Views: 545

Extracting spline data using API

Greetings and Salutations; I'm in the process of learning the API and have an interesting question to ask. A 5 point spline is created with the API. See images below showing the spline and the immediate window output from the creation of the spline. SplinefromMacro7.PNG ImmediateWindowfromMacro7.PNG...
by edcoggins
Fri Jun 24, 2022 8:53 am
Forum: How To Questions
Topic: SolidWorks API examples
Replies: 9
Views: 999

Re: SolidWorks API examples

This link may have what you are looking for...

https://help.solidworks.com/2020/Englis ... ple_VB.htm
by edcoggins
Wed May 05, 2021 5:03 pm
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

Thanks for the responses about deleting the cut list! I then promptly tried to link the Bounding Box Area property to a custom property which will not evaluate. See Pic15 below.
Pic15.PNG
Any thoughts on this issue? <()>
by edcoggins
Wed May 05, 2021 4:32 pm
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

All of the templates are dated 2019 or higher. Attached is Testpart2 created in the last week or so and is behaving properly.
TestPart2.SLDPRT
(116.88 KiB) Downloaded 81 times
by edcoggins
Wed May 05, 2021 4:00 pm
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

A little more information on this problem. First, by creating a brand new part, Testpart2, a custom property linked to the Bounding Box Area can be created. See attachments Pic13 and Pic14. This helps on new parts created going forward. Pic13.png Pic14.png Second, using an older part yields an even ...
by edcoggins
Fri Apr 30, 2021 9:36 am
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

Here is the file.
by edcoggins
Fri Apr 30, 2021 8:26 am
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

Thanks for the feedback. The model name is now corrected but am still not getting a value for the custom property at the part level.
by edcoggins
Thu Apr 29, 2021 4:52 pm
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

The Cut List Properties can be added as notes to a drawing. Cutting and pasting the text from the note to the custom property didn't work either.
Pic3.PNG
Pic4.PNG
by edcoggins
Thu Apr 29, 2021 4:39 pm
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Re: Sheetmetal

Thanks for the suggestion. I tried putting a space in before .SLDPRT and after the last " without success. This is on SW2020 SP5.0.
by edcoggins
Thu Apr 29, 2021 4:08 pm
Forum: SW General
Topic: Sheetmetal
Replies: 21
Views: 2612

Sheetmetal

Greetings. Is there a way to use a custom property to reference the "Bounding Box Area" property from a Sheetmetal Cut list?
Pic1.png
Pic2.png