All of our purchased parts "library parts" have to be released in EPDM which then drives the creation of the part in our ERP system. The problem I have is people will not ask me to check the parts and release them so when they release an assembly that contains a part that is not released yet, ERP is set to create the number if it has not encountered it before. The problem is the info from the data card only gets pushed through when it is released.
If I had a macro that they could use to look through the assemblies parts and check the workflow state it would at least alert them they had parts that needed to be released.
If anyone has a better idea please feel free to offer.
Thanks,
SolidworksApi macros
Hello Michael
We've created an addin for this very reason. Take a look at the video and let me know if it fits your needs.
http://www.hawkwareapps.com/products/hawkware-for-pdm/pdm-transition-blocker/
This would definitely solve the problem, but seems very pricey. I think what we will do is change ERP to send an message alerting us that a new part was encountered. Thanks for responding. I do have some other macro needs so I will check out your site.
No problem. Thanks Michael.
Do you need the macro to work outside of the Vault and on active assembly file?
Deepak, (The living Legend)
Thanks for the reply, and yes the idea would be to run it though SolidWorks on active assembly file.
I'm not using EPDM or PDM at the moment, so how you would check that state manually? If it is a custom/config property, then macro can easily loop thru all components int he active assembly and report back the component list based of the set conditions.
It is based off the workflow state in EPDM. I guess this can't be done. I am going to set up an alert from or ERP system that will notify me when new parts are created which will cue me to go and release these parts. Thanks for the input.
But how do one check that manually?
Michael,
I think this can be done and I think there are a couple different ways you could go about it. I'm currently doing something similar where I have the users manually run a SolidWorks macro before they release files to alert them of potential issues. One of these issues it checks for is if the data card is filled out. As long as your workflow state shows up on the data card, you could use the IModelDocExtension CustomPropertyManager to check the workflow state. http://help.solidworks.com/2016/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.imodeldocextension~custompropertymanager.html
If you don't already have the workflow state as a variable in the data card, you could use the EPDM API IEdmFile5 CurrentState to get the file's current workflow state. Not sure where this guide is online, but mine's under "C:\Program Files\SolidWorks Enterprise PDM\API_GB.chm"
-Matt
You have to browse the EPDM Add-in Blueberry. Also the parts in question are in a particular workflow. Below is an example of a part that is not released and in the Standard Parts Workflow.
Matt,
I believe you are correct. I am going to go with the ERP work around I replied to Deepak for now, but if more items need to be checked I will definitely come back to this.
Side question, You guys having any problems with UOM? SolidWorks drives our ERP through BOM XML export and since the UOM in SolidWorks is EA we run into problems with items that have different UOM such as FT, SF for instance.
Thanks,
We haven't opened up that can of worms yet, but it's definitely on the horizon. If you have any pointers on correctly handling UOM w/ the BOM XML exports, please let me know . I need to start digging into this.
-Matt
Matt only thing I have in mind is to create a database of part #'s and set conditions and if statements to trigger some action like multiplying length column by quantity column and dividing by 12 since Length is in INCHES. I have no clue how to address Sq Ft. though. As of now we override the column but when someone forgets we pay dearly.