cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream view is to be created

Newbie

For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream view is to be created

Folder structure for our product:
Design

Manufacturing

 

Design Engineer creates part in Design Folder.

MBOM Creator open the part in Manufacturing Associate Part Structure Browser (MPSAB) and then creates a New Downstream Branch of the part. The default location for this is /Default of the Product which can be changed manually by browsing to required location.

We want to change this Default location to /Default/Manufacturing.

Please suggest steps.

7 REPLIES 7

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream view is to be created

It is controlled by a preference.

manufactLocation.jpg

If you like, you can also write a delegate that uses a logic for number, location and so on.

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream view is to be created

Hi Binesh,

We already tried that preference. This preference sets a fixed location for creation of Downstream parts i.e a folder where downstream parts from all the products will be stored. What we need is that Downstream parts of each product should be stored in the Manufacturing folder of that particular product itself.

Regards,

Prasad

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream view is to be created

Hi Prasad, I know it is not easy to set this preference in each of the products. I think writing your own delegate overriding DefaultDownstreamLocationDelegate is the elegant. I wish this is more configurable

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream

We need exactly the same functionality. Setting the downstream location to a default Manufacturing folder in each product.

 

@BineshKumar1 Do you happen to have an example on how to create such a custom delegate?

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream

Thank you Gregory,

I was looking for this forever!!!

Highlighted

Re: For a Part, how to set the Default Downstream Location i.e. Folder Location where the Downstream

Hi,

 

PFB custom delegate to achieve this functionality,

 

public class MyCustomDelegateLocation extends DefaultDownstreamLocationDelegate{

  private static final String LOCATION_PATH_SEPARATOR = "/";
        @Override
        public STAInitialLocationValueBean getSTAInitialLocationValueBean(List<ObjectReference> refs){
       
  //Returns the location of the passed objects
        STAInitialLocationValueBean locationBean = new STAInitialLocationValueBean();

         for (final ObjectReference ref : refs) {
             WTContained persistable = (WTContained) ref.getObject();
             final Identifier associative_identifier = EntityUtils.toIdentifier(persistable);
             if (persistable instanceof Associative) {
    locationBean.addFolderIdForLocation(LOCATION_PATH_SEPARATOR + persistable.getContainerName(),Manufacturing)
                locationBean.addInitialLocationForAssociative(associative_identifier, LOCATION_PATH_SEPARATOR + persistable.getContainerName());
            }
        }
        return locationBean;
 }
}

 

Thanks and Regards,

Thiagarajan

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group