Data Standard 템플릿

Data Standard는 문서 템플릿을 새 Data Standard 파일.

기본적으로 새 표준 파일 기능은 문서 템플릿에 대해 Vault의 $₩Templates 폴더에 배치합니다. 이 경로는 Data Standard File.xml 파일에서 수정할 수 있습니다.

관리자는 다른 응용프로그램에 대해 별도의 템플릿 폴더(예: AutoCAD 템플릿용 폴더와 Inventor 템플릿용 폴더)를 지정할 수 있습니다.

작동 방식

Data Standard에 대한 기본 새 파일 대화상자에서 문서 유형이라는 콤보 상자가 포함되어 있습니다.

사용자가 문서 유형 리스트에서 옵션을 선택하고 확인을 클릭하면 새 Data Standard 파일 기능으로 해당 문서 유형과 연관된 Vault 폴더 경로에서 템플릿을 찾습니다. 이 템플릿을 사용하여 새 파일을 생성합니다.

%programdata%\Autodesk\<Vault 버전>\Extensions\DataStandard\Vault\Configuration\File.xml

<?xml version="1.0" encoding="utf-8"?>
                <DocTypeData xmlns="">
                    <DocTypeInfo>
                        <DocName>Inventor</DocName>
                        <Path>$/Templates/Inventor</Path>
                    </DocTypeInfo>
                    <DocTypeInfo>
                        <DocName>AutoCAD Drawings</DocName>
                        <Path>$/Templates/AutoCAD</Path>
                    </DocTypeInfo>
                    <DocTypeInfo>
                        <DocName>Office Document</DocName>
                        <Path>$/Templates/Office</Path>
                    </DocTypeInfo>
                </DocTypeData>

요소 <Name>은 새 파일 대화상자의 콤보 상자에 표시되는 값을 정의합니다. 요소 <TemplatePath>는 사용자에게 보이지 않지만 뷰 모형 내에서 "templatepath"를 설정하는 데 사용됩니다.

문서 유형 콤보 상자를 다음과 같은 모양이 됩니다.

...
<Label Content="Document Type" Grid.Row="2" Grid.Column="0" />
<ComboBox ItemsSource="{Binding Source={StaticResource DocTypes}, XPath=DocTypeInfo}"
          Name="DocTypeCombo"
          Grid.Row="2"
          Grid.Column="1"
          IsEnabled="{Binding IsNewEntryDialog}"
          DisplayMemberPath="Name"
          SelectedValuePath="templatepath"
          SelectedValue="{Binding TemplatePath}"
          SelectedIndex="0"></ComboBox>
...

속성 DisplayMemberPath는 콤보 상자에 표시할 데이터 원본의 요소를 정의합니다. 이 예에서는 "Name"으로 설정됩니다.

속성 SelectedValuePath는 사용할 템플릿 경로 값으로 설정되는 데이터 원본("TemplatePath")의 요소를 정의합니다.

SelectedValue="{Binding TemplatePath}" 속성은 뷰 모형에서 선택한 템플릿 경로를 설정합니다. 새 바인딩 특성 "TemplatePath"를 뷰 모형에 추가해야 합니다.

Vault Office Data Standard 템플릿

Vault Office 클라이언트는 Vault 클라이언트와 동일한 여러 기능을 제공하지만 비 CAD 설계 데이터 관리 프로세스에 맞게 기능이 축소되었습니다. Vault 클라이언트 및 Vault Office 클라이언트는 각각 고유한 XAML을 가지므로 각 클라이언트에 대해 고유한 Data Standard 대화상자를 작성할 수 있습니다.

FileOffice.xml을 수정하여 Vault Office Client에 대한 Data Standard 대화상자를 사용자화합니다.

이름이 FileOffice.xml인 Vault Office Client에 대한 템플릿이 이미 정의되어 있습니다.

FileOffice.xml은 %programdata%\Autodesk\<Vault 버전>\Extensions\DataStandard\Vault\Configuration에 있습니다.

<?xml version="1.0" encoding="utf-8"?>
                <DocTypeData xmlns="">       
                    <DocTypeInfo>
                        <DocName>Office Document</DocName>
                        <Path>$/Templates/Office</Path>
                    </DocTypeInfo>
                </DocTypeData>