Search found 36 matches

by MMartens
Fri Aug 16, 2024 9:02 am
Forum: SolidWorks PDM
Topic: Scheduling Monthly PDM Tasks
Replies: 3
Views: 613

Re: Scheduling Monthly PDM Tasks

It's not hyper critical as it's just a reporting task for each month but the way I have it coded currently (the time period for the report is set as the 1st of the previous month to the last day of the previous month), when it ran on 7/31 a day early instead of 8/1 the report generated was for the m...
by MMartens
Wed Jul 31, 2024 8:53 am
Forum: SolidWorks PDM
Topic: Scheduling Monthly PDM Tasks
Replies: 3
Views: 613

Scheduling Monthly PDM Tasks

I have a custom task I created that I have been trying to run on the 1st of the month. Since monthly isn't on the standard scheduling options I have been using the advanced scheduling option. I would select the 1st of the next occurring month and then set the repeat to Monthly. However, when using m...
by MMartens
Fri May 17, 2024 2:40 pm
Forum: API
Topic: PDM User-defined File References
Replies: 2
Views: 1041

Re: PDM User-defined File References

I think my issue is I am relying on my addin to create the references during the PreUnlock command. When I use a menu command to create the references and go straight into the check in dialog, the bill of materials, contains, and where used tabs get updated.
by MMartens
Fri May 17, 2024 1:17 pm
Forum: API
Topic: PDM User-defined File References
Replies: 2
Views: 1041

PDM User-defined File References

I am writing a process for my add-in that will automatically create a user-defined file reference during the check in process. My code creates the references just fine. I know because I see the references when I click the "Custom References" button on the Contains tab. The issue I am havin...
by MMartens
Wed May 15, 2024 5:06 pm
Forum: API
Topic: PDM Dialogs
Topic: PDM Dialogs
Replies: 1
Views: 881

Re: PDM Dialogs

Found my own solution. After the dialog closes, I used BatchGet.GetFileList(Egflf_GetLocked) to find all the files being checked out during the operation. I could then iterate through the list for the filenames.
by MMartens
Wed May 15, 2024 3:55 pm
Forum: API
Topic: PDM Dialogs
Topic: PDM Dialogs
Replies: 1
Views: 881

PDM Dialogs

When using ShowDlg for BatchGet or BatchUnlock in your code, is there a method to see if the user made additional selections from the tree listing? Mainly, I want to be able to determine if the user selected any of the attached files when checking out the main file.
image.png
by MMartens
Mon Dec 18, 2023 3:05 pm
Forum: API
Topic: Filtering PDM menu command
Replies: 2
Views: 1045

Re: Filtering PDM menu command

I currently have the code only grab the filetypes able to be converted for the selected task similar to your second selection. I was just curious if it was possible to prevent it in the menu command coding.
by MMartens
Fri Dec 15, 2023 10:00 am
Forum: API
Topic: Filtering PDM menu command
Replies: 2
Views: 1045

Filtering PDM menu command

My searches haven't yielded any results so I thought I'd just ask the question. I know you can filter a custom PDM menu command based on file or folder selection and single or multiple selection. But does anyone know of a way to change the availability of a menu command based on the file type. I hav...
by MMartens
Wed Nov 22, 2023 12:08 pm
Forum: SolidWorks PDM
Topic: Folder Cache options
Replies: 1
Views: 894

Folder Cache options

I have my application settings folders set to Refresh the cache during login. But, there is 1 subfolder in the structure that I don't want to Refresh because the size of the files are so large (we keep past versions of the Inventor content center libraries in there and they are quite large). I have ...
by MMartens
Mon Oct 23, 2023 3:40 pm
Forum: API
Topic: Testing custom PDM task
Replies: 3
Views: 1175

Re: Testing custom PDM task

Yes, I was. I have found a workable solution. My main issue was I was still running the addin as a debug addin. Once, I fully loaded the addin simply shutting everything down before I rebuilt the dll allowed me to keep going. I just had to relaunch whatever I was using to test out the task.
by MMartens
Mon Oct 23, 2023 1:24 pm
Forum: API
Topic: Testing custom PDM task
Replies: 3
Views: 1175

Testing custom PDM task

When testing code for PDM tasks, I have found once you run any part of your code the only way to get PDM to let go of the .dll file is to restart. When testing out code on other PDM commands I usually just restart explorer and I can rebuild my .dll file. I've also tried exiting the PDM client progra...
by MMartens
Wed May 31, 2023 8:25 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM add-in task text box
Replies: 7
Views: 1287

Re: PDM add-in task text box

I tried intercepting the keypress events but the enter button doesn't trigger the textbox keypress events before it closes the task setup. I'm thinking of converting this to a listbox with control buttons for adding or removing items from the list. It has the added benefit of having a sort property ...
by MMartens
Tue May 30, 2023 3:07 pm
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM add-in task text box
Replies: 7
Views: 1287

Re: PDM add-in task text box

That's what I initially thought but it doesn't work.
by MMartens
Tue May 30, 2023 2:26 pm
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM add-in task text box
Replies: 7
Views: 1287

PDM add-in task text box

I am developing an task addin for my users. On my custom task setup page I have a multiline text box that I plan to use to change the options available in a listbox on the launch task card. This would allow me to easily change the values available in the listbox without having to rewrite the code to...
by MMartens
Mon Dec 12, 2022 11:47 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM and AutoCAD Electrical
Replies: 3
Views: 5471

Re: PDM and AutoCAD Electrical

Thanks for the info.In the test sample my EEs sent me, there were 2 other project files: aepx and wdt. From my what I understand, the wdt file keeps track of the title block attribute mapping. I'm not sure what the aepx one is for. Also, I was thinking about having the folder datacard be the "m...
by MMartens
Mon Dec 12, 2022 9:25 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM and AutoCAD Electrical
Replies: 3
Views: 5471

PDM and AutoCAD Electrical

My company has a PDM Professional environment. We are in the planning phases of switching our electrical schematic and panel layout drawings from straight AutoCAD to AutoCAD Electrical. As the PDM administrator, I am tasked with determining the file handling aspect for PDM. My initial thought is to ...
by MMartens
Tue Sep 06, 2022 12:55 pm
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM Search - Latest version only
Replies: 2
Views: 1186

PDM Search - Latest version only

I have a search card setup for searching through ECRs in our system. The ECRs have a status property on them. When I search for open ECRs the results will show everything because it sees the past versions of the files when the status property was open. I can get around this by putting a Search Previ...
by MMartens
Thu Jun 30, 2022 7:58 am
Forum: API
Topic: PDM Searching with API
Replies: 13
Views: 4815

Re: PDM Searching with API

Here is my sub I use... Function getFileLocations(names As String) 'use PDM search to find files Dim pdmVault As EdmLib.EdmVault5 Dim pdmBatchGetUtil As EdmLib.IEdmBatchGet Dim pdmSearch As EdmLib.IEdmSearch9 Dim searchResult As EdmLib.IEdmSearchResult5 Set pdmVault = CreateObject("ConisioLib.E...
by MMartens
Mon Mar 21, 2022 1:07 pm
Forum: API
Topic: Inventor Apprentice and Design Assistant
Replies: 5
Views: 1797

Re: Inventor Apprentice and Design Assistant

For those who may be searching...

When attempting to reference the Inventor dll in visual studio, it didn't show up in the COM library listings as I expected. I had to do a hard drive search for autodesk.inventor.interop.dll to find where it gets installed.
image.png
by MMartens
Mon Mar 21, 2022 8:29 am
Forum: API
Topic: Inventor Apprentice and Design Assistant
Replies: 5
Views: 1797

Re: Inventor Apprentice and Design Assistant

We already have both Inventor and Inventor View in our system. I was just trying to find the API library for it. As I was reading the using Apprentice Server article you sent, I came to the realization, based on their wording, the Apprentice API Library may actually a subset of the overall Inventor ...
by MMartens
Fri Mar 18, 2022 4:37 pm
Forum: API
Topic: Inventor Apprentice and Design Assistant
Replies: 5
Views: 1797

Inventor Apprentice and Design Assistant

I am familiar with the Solidworks Document Manager API and how to use it to perform API actions on files that aren't open in Solidworks. Apparently, Autodesk has something similar called Autodesk Inventor Design Assistant and its associated API which seems to be called Apprentice. I believe from wha...
by MMartens
Fri Mar 18, 2022 9:20 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM add-in message box hiding behind transition progress window
Replies: 5
Views: 1538

Re: PDM add-in message box hiding behind transition progress window

For anyone looking for this same issue, my solution ended up being fairly simple. I created a simple userform with a label for my message and an OK button. Before using the Show method, I the TopMost property to True. Now my userform opens on top of the transition progress window. Dim window = New M...
by MMartens
Thu Mar 17, 2022 2:38 pm
Forum: API
Topic: PDM add-in message box hiding behind transition progress window
Replies: 2
Views: 519

Re: PDM add-in message box hiding behind transition progress window

It's still there. I wanted to get this in the API forum in case there are any heavy API users following over here. I couldn't find how to move it to a different section so I created a new topic.
by MMartens
Thu Mar 17, 2022 1:43 pm
Forum: API
Topic: PDM add-in message box hiding behind transition progress window
Replies: 2
Views: 519

PDM add-in message box hiding behind transition progress window

I am writing a PDM add-in to catch when files finish going through a certain transition. Upon completion of the actions I am bringing up a message box to notify the user of completion. The issue I am having is the transition progress window is still showing when the msgbox opens causing the msgbox t...
by MMartens
Thu Mar 17, 2022 8:39 am
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM add-in message box hiding behind transition progress window
Replies: 5
Views: 1538

Re: PDM add-in message box hiding behind transition progress window

I am using the window handle as an argument. iVault.MsgBox(poCmd.mlParentWnd, message , EdmMBoxType.EdmMbt_OKOnly, Caption ) It would be nice if it functioned like Dispatch. In PDM Dispatch when running a post transition script, it actually waits for the transition progress window to close to fire t...
by MMartens
Wed Mar 16, 2022 1:56 pm
Forum: CAD Admin (Install, PDM, etc)
Topic: PDM add-in message box hiding behind transition progress window
Replies: 5
Views: 1538

PDM add-in message box hiding behind transition progress window

I am writing a PDM add-in to catch when files finish going through a certain transition. Upon completion of the actions I am bring up a message box to notify the user of completion. The issue I am having is the transition progress window is still showing when the msgbox opens causing the msgbox to b...
by MMartens
Fri Jan 07, 2022 3:13 pm
Forum: SolidWorks PDM
Topic: Toolbox and PDM
Replies: 3
Views: 1267

Toolbox and PDM

I am experimenting with the proper settings to use when managing the SW toolbox within PDM. I have read through all the help files and several blogs about what the settings should be. When my users create new part numbers/configurations through the Edit Toolbox Component page the toolbox tables are ...
by MMartens
Fri Sep 17, 2021 10:31 am
Forum: SW General
Topic: SW Network Licensing
Replies: 6
Views: 685

Re: SW Network Licensing

Thank you for the information and suggestions. I have IT working on it right now.
by MMartens
Thu Sep 16, 2021 1:49 pm
Forum: SW General
Topic: SW Network Licensing
Replies: 6
Views: 685

Re: SW Network Licensing

According to our IT, they think it is set at 15 minutes. I am working with them to double check and find other possible solutions other than buying more Premium licenses just because 1 or 2 times a month we have this problem.
by MMartens
Thu Sep 16, 2021 11:30 am
Forum: SW General
Topic: SW Network Licensing
Replies: 6
Views: 685

SW Network Licensing

I am CAD admin for a company currently running with 8 network licenses: (7 Professional, 1 Premium). A situation came up recently where 1 engineer had been running a simulation in the morning, so his computer had grabbed the 1 Premium license. He didn't close Solidworks after he was done. When a 2nd...
by MMartens
Wed Apr 28, 2021 3:27 pm
Forum: API
Topic: PDM Searching with API
Replies: 13
Views: 4815

Re: PDM Searching with API

It is something that will run everytime someone invokes it. After seeing someone else's code I realized why it wasn't working. I had used CreateSearch method instead of CreateSearch2. I had glossed over the instruction in the search syntax section of the API help.
by MMartens
Wed Apr 28, 2021 1:30 pm
Forum: API
Topic: PDM Searching with API
Replies: 13
Views: 4815

Re: PDM Searching with API

I misspoke earlier when I said my list was 80-100 items. It is actually ~240 items. I tried creating the search object once and doing a clear search after each item like you suggested. This definitely has helped. The load time is down to ~2:15. I would like to be able to get it down further. I would...
by MMartens
Wed Apr 28, 2021 12:03 pm
Forum: API
Topic: PDM Searching with API
Replies: 13
Views: 4815

Re: PDM Searching with API

My list is a CSV report run from our ERP. I was always able to find each file when I searched similar to how you laid out. What I am trying to avoid is running the search for each item in the list. The individual search for each item is causing my code to take over 5 minutes to run with just 80-100 ...
by MMartens
Wed Apr 28, 2021 11:12 am
Forum: API
Topic: PDM Searching with API
Replies: 13
Views: 4815

Re: PDM Searching with API

I tried using OR operators in a string in the EDMSearch.Filename. I tried using BeginOR/EndOR with setting the Filename property multiple times in between. I tried using SetToken with Edmstok_Name argument and OR operators in the search term argument and using BeginOR/EndOR and call SetToken multipl...
by MMartens
Wed Apr 28, 2021 10:22 am
Forum: API
Topic: PDM Searching with API
Replies: 13
Views: 4815

PDM Searching with API

I have a generated list of part numbers as a source. I am trying to get the path name of each part in PDM. Currently the only way I have figured out is to iterate through each item in my list, search it, and get the path. This is very time consuming as running the search multiple times takes approxi...