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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

loadfile for creating project

adybala
5-Regular Member

loadfile for creating project

Hi,

I created template for project in Windchill but I don't know how to implement private access in load file template.

In manual creation you can simply choose Private Access: Project Members Only.

 

ACCEPTED SOLUTION

Accepted Solutions

Hi Adybala,

 

Generally when we loading the project using LoadFromFile then Private access is always loaded as default when loading new projects from file.

 

Sample loader to Load the Project:

<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard11_1.dtd">
<NmLoader>
<!-- Create project 'PJL1' -->
<csvProject2Begin handler="wt.projmgmt.admin.LoadProject2.createProject2Begin">
<csvname><?loc-begin key="TEST_PROJECT1"?>Test Load Project 2<?loc-end?></csvname>
<csvdescription><?loc-begin key="TEST_PROJECT1_DESC"?>Test for Lori<?loc-end?></csvdescription>
<csvtemplate><?loc-begin key="GENERAL_PROJECT_TEMPLATE_NAME" match="ProjectLinkContainerTemplates.xml:GENERAL_PROJECT_TEMPLATE_NAME"?>General<?loc-end?></csvtemplate>
</csvProject2Begin>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue">
<csvdefinition>ProjectDescriptionTest</csvdefinition>
<csvvalue1>Test DescriptionValue</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvendIBAHolder handler="wt.iba.value.service.LoadValue.endIBAHolder"/>
<csvProject2End handler="wt.projmgmt.admin.LoadProject2.createProject2End"></csvProject2End>
</NmLoader>

 

This Loader help to load the project with Global attributes.

 

Thanks,

Pravin Shinde

View solution in original post

2 REPLIES 2

Hi Adybala,

 

Generally when we loading the project using LoadFromFile then Private access is always loaded as default when loading new projects from file.

 

Sample loader to Load the Project:

<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard11_1.dtd">
<NmLoader>
<!-- Create project 'PJL1' -->
<csvProject2Begin handler="wt.projmgmt.admin.LoadProject2.createProject2Begin">
<csvname><?loc-begin key="TEST_PROJECT1"?>Test Load Project 2<?loc-end?></csvname>
<csvdescription><?loc-begin key="TEST_PROJECT1_DESC"?>Test for Lori<?loc-end?></csvdescription>
<csvtemplate><?loc-begin key="GENERAL_PROJECT_TEMPLATE_NAME" match="ProjectLinkContainerTemplates.xml:GENERAL_PROJECT_TEMPLATE_NAME"?>General<?loc-end?></csvtemplate>
</csvProject2Begin>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue">
<csvdefinition>ProjectDescriptionTest</csvdefinition>
<csvvalue1>Test DescriptionValue</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvendIBAHolder handler="wt.iba.value.service.LoadValue.endIBAHolder"/>
<csvProject2End handler="wt.projmgmt.admin.LoadProject2.createProject2End"></csvProject2End>
</NmLoader>

 

This Loader help to load the project with Global attributes.

 

Thanks,

Pravin Shinde

adybala
5-Regular Member
(To:PravinShinde)

Hi,

Thanks for the file. It's really working. I don't need Iba so by executing this I have started project with Private Access: Project Members Only:

<NmLoader>
<!-- Create project 'PJL1' -->
<csvProject2Begin handler="wt.projmgmt.admin.LoadProject2.createProject2Begin">
<csvname><?loc-begin key="TEST_PROJECT1"?>Test Load Project 2<?loc-end?></csvname>
<csvdescription><?loc-begin key="TEST_PROJECT1_DESC"?>Test for Lori<?loc-end?></csvdescription>
<csvtemplate><?loc-begin key="OWN_PROJECT_TEMPLATE" match="ProjectLinkContainerTemplates.xml:OWN_PROJECT_TEMPLATE"?>OWN Project Template<?loc-end?></csvtemplate>
</csvProject2Begin>
<csvProject2End handler="wt.projmgmt.admin.LoadProject2.createProject2End"></csvProject2End>
</NmLoader> 

Announcements


Top Tags