3D 프로파일 구성
이 장에서는 xml 파일에 정의된 3D 프로파일에 대한 개요를 제공합니다. 그런 다음 Creo Illustrate Administration Tool을 사용하여 xml 파일을 표준에 추가할 수 있습니다.
xml 파일에 정의된 3D 프로파일은 표준에 추가될 때 다음 머리글이 유효하고 3D 프로파일로 인식되어야 합니다.
<?xml version="1.0" encoding="utf-8"?>
길이 단위
3D 프로파일에 대해 길이 단위가 정의되어야 합니다. 다음 단위를 설정할 수 있습니다.
MILLIMETER
INCH
POINT
다음은 3D 프로파일 길이 단위의 예입니다.
<profiles length_units="MILLIMETER">
3D 프로파일에 다음 특성을 정의할 수 있습니다.
프로파일 이름(필수). 예를 들면 다음과 같습니다.
<profile name="Yellow color to all figure items">- <start tag>
규칙 - 프로파일에 포함되는 규칙 세트를 정의합니다. 3D 그림 규칙에는 <if>가 하나 이상 포함되고 정확히 하나의 <then>만 포함될 수 있습니다.
<rule type="3D_Figures">
<if> 문은 상황에 따라 존재할 수 있습니다. <if>가 정의되지 않으면 모든 항목에 <then>이 적용됩니다. <if> 조건은 부울 <and|or|not> 태그와 결합할 수 있습니다. 부울 태그를 사용하지 않을 경우 <if> 문 내의 모든 조건에 대해 <and>로 처리됩니다.
다음 조건 유형을 인수에 포함할 수 있습니다. 다음 인수를 사용하여 조건을 정의할 수 있습니다.
인수
설명
item
조건이 적용된 항목을 설정합니다. 조건을 적용할 항목을 설정하십시오.
type
항목 유형을 정의합니다. regexpr=true인 경우 regexpr을 사용할 수 있습니다(선택 사항).
name
항목 이름을 정의합니다. regexpr=true인 경우 regexpr을 사용할 수 있습니다(선택 사항).
regexpr
true로 설정되면 조건에서 정규 표현식을 사용할 수 있습니다.
equal
true로 설정되면 조건이 true가 되기 위해 인수 값(type/name)이 같아야 합니다.
caseins
true로 설정되면 조건을 대소문자 구분할 수 있습니다.
다음은 항목에 적용된 조건의 예입니다.
<item type="co*" name="*1*" regexpr="true" equal="true" caseins="true"/>
<attribute> - 항목 속성에 적용되는 조건을 설정합니다.
속성 인수
설명
name
속성의 이름입니다. regexpr=true인 경우 regexpr을 사용할 수 있습니다(선택 사항).
value
속성의 값입니다. regexpr=true인 경우 regexpr을 사용할 수 있습니다(선택 사항).
equal
true로 설정되면 조건이 true가 되기 위해 인수 값(type/name)이 같아야 합니다.
regexpr
조건에 정규 표현식을 사용합니다.
caseins
문이 true일 때 대소문자를 구분합니다.
다음은 항목의 속성에 적용된 조건의 예입니다.
<attribute name="name" value="value" regexpr="true" equal="true" caseins="true"/>
then - 규칙에 then 인수가 있어야 합니다. 규칙을 적용할 때에만 인수를 추가합니다. 이 인수에는 규칙에 적용되는 모든 항목이 포함됩니다.
item - 항목에 무시를 설정합니다.
항목 인수
설명
phantom
항목의 팬텀 값을 설정합니다.
transparency
항목의 투명도 값을 설정합니다.
color
항목의 색 값을 설정합니다.
figure - 그림 인수에 무시를 설정합니다.
그림 인수
설명
background
그림의 배경색 값을 설정합니다.
background — gradient
그림의 배경 그라데이션 색 값을 설정합니다.
<?xml version="1.0" encoding="utf-8"?>
<profiles length_units="MILLIMETER">
<profile name="Profile A">
<rules>
<rule type="3D_Figure">
<if>
<and>
<attribute regexpr="true" name="sBOM Name" value="bolt*"/>
<attribute name="Source_file_name" value="bolt.prt.1"/>
</and>
</if>
<then>
<item color="#00ff00" transparency="25.0"/>
</then>
</rule>
<rule type="3D_Figure">
<if>
<and>
<attribute regexpr="true" name="sBOM Name" value="nut*"/>
</and>
</if>
<then>
<item color="#ff00ff"/>
</then>
</rule>
</rules>
</profile>
<profile name="Profile B">
<rules>
<rule type="3D_Figure">
<if>
<and>
<attribute regexpr="true" name="sBOM Name" value="DIN*"/>
</and>
</if>
<then>
<item phantom="true"/>
</then>
</rule>
<rule type="3D_Figure">
<if>
<and>
<attribute regexpr="true" name="sBOM Name" value="Brake*"/>
</and>
</if>
<then>
<item transparency="20.0"/>
</then>
</rule>
</rules>
</profile>
<profile name="Profile C">
<rules>
<rule type="3D_Figure">
<then>
<figure background="#ff00ff" background-gradient="#00ff00"/>
</then>
</rule>
</rules>
</profile>
<profile name="Profile D">
<rules>
<rule type="3D_Figure">
<if>
<and>
<attribute name="Feature_Id" value="1337"/>
</and>
</if>
<then>
<item color="#f0b823"/>
</then>
</rule>
</rules>
</profile>
</profiles>
도움이 되셨나요?