I have been successful so far in generating xmi files for to import in an eap file. So far it work by keeping xmi:id just unique, no more rules. However, now I started to produce tags against some profile. When I use an arbitrary - but unique - xmi:id for a tag element, it will not be imported.
What I did was manually enter tags in the eap file and then exporting the package, copying the xmi:id's to my file to get imported. That works.
What I found out so far is, that I shall not change the first 24 characters for the tag's xmi:id. For uniqueness I may change the last 17 characters.
Is there anywhere a rule that I can follow, to successfully produce the first 24 characters of an xmi:id?
Here you can see the xmi file that can be imported successfully. E.g. when I change the beginning of the xmi:id EAID_EC46D93B_5E30_7e5e_0000_000000000001 the tag Bit_No will not be imported.
<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmlns:uml="http://www.omg.org/spec/UML/20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:SignalProfile="http://www.sparxsystems.com/profiles/SignalProfile/1.0">
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/>
<uml:Model xmi:type="uml:Model" name="EA_Model">
<packagedElement xmi:type="uml:Package" xmi:id="RSCID_Signals" name="Signals">
<packagedElement xmi:type="uml:Interface" xmi:id="RSCID_Signal1" name="Signal1" isAbstract="true"/>
<packagedElement xmi:type="uml:Interface" xmi:id="RSCID_Signal2" name="Signal2" isAbstract="true"/>
</packagedElement>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="profileap_13E3FB92-0">
<appliedProfile xmi:type="uml:Profile" href="http://www.sparxsystems.com/profiles/SignalProfile/1.0#13E3FB92-0"/>
</profileApplication>
</uml:Model>
<xmi:Extension extender="Enterprise Architect" extenderID="6.5">
<elements>
<element xmi:idref="RSCID_Signal1" xmi:type="uml:Interface" name="Signal1" scope="public">
<properties documentation="comment to Signal Function of Signal1" isSpecification="false" sType="Interface" nType="0" scope="public" stereotype="Signal" isRoot="false" isLeaf="false" isAbstract="true"/>
<tags>
<tag xmi:id="EAID_EC46D93B_5E30_7e5e_0000_000000000001" name="Bit_No" value="3" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_9A779570_3D05_a03d_0000_000000000002" name="Byte_No" value="1" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_640BFE5F_7DD4_4a7d_0000_000000000003" name="Cycle Time" value="CycleTime_100#NOTES#Values: CycleTime_40,CycleTime_100,CycleTime_1000,CycleTime_10000,NoCycleTime
" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_04C5B725_62DA_ee62_0000_000000000004" name="Default" value="6" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_A1E56D61_FA76_75fa_0000_000000000005" name="direction" value="s#NOTES#Values: r,s
" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_7DCA38DC_C011_cdc0_0000_000000000006" name="Launch Parameter" value="LaunchParameter_20#NOTES#Values: LaunchParameter_10,LaunchParameter_20,LaunchParameter_100,LaunchParameter_200,NoLaunchParameter
" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_462950BD_42D2_6942_0000_000000000007" name="Launch Type" value="CyclicAndChange#NOTES#Values: Cyclic,CyclicAndChange,Spontanious,None
" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_034EE602_6F17_866f_0000_000000000008" name="Length" value="3" modelElement="RSCID_Signal1"/>
<tag xmi:id="EAID_736065D1_2526_7c25_0000_000000000009" name="Not_Available" modelElement="RSCID_Signal1"/>
</tags>
<xrefs value="$XREFPROP=$NAM=Stereotypes$NAM;$TYP=element property$TYP;$VIS=Public$VIS;$PAR=0$PAR;$DES=@STEREO;Name=Signal;FQName=SignalProfile::Signal;@ENDSTEREO;$DES;$SUP=<none>$SUP;$ENDXREF;"/>
</element>
<element xmi:idref="RSCID_Signal2" xmi:type="uml:Interface" name="Signal2" scope="public">
<properties documentation="comment to Signal Function of Signal2" isSpecification="false" sType="Interface" nType="0" scope="public" stereotype="Signal" isRoot="false" isLeaf="false" isAbstract="true"/>
<tags>
<tag xmi:id="EAID_EC46D93B_5E30_7e5e_0000_000000000010" name="Bit_No" value="0" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_9A779570_3D05_a03d_0000_000000000011" name="Byte_No" value="1" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_640BFE5F_7DD4_4a7d_0000_000000000012" name="Cycle Time" value="CycleTime_100#NOTES#Values: CycleTime_40,CycleTime_100,CycleTime_1000,CycleTime_10000,NoCycleTime
" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_04C5B725_62DA_ee62_0000_000000000013" name="Default" value="27" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_A1E56D61_FA76_75fa_0000_000000000014" name="direction" value="s#NOTES#Values: r,s
" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_7DCA38DC_C011_cdc0_0000_000000000015" name="Launch Parameter" value="LaunchParameter_100#NOTES#Values: LaunchParameter_10,LaunchParameter_20,LaunchParameter_100,LaunchParameter_200,NoLaunchParameter
" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_462950BD_42D2_6942_0000_000000000016" name="Launch Type" value="CyclicAndChange#NOTES#Values: Cyclic,CyclicAndChange,Spontanious,None
" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_034EE602_6F17_866f_0000_000000000017" name="Length" value="5" modelElement="RSCID_Signal2"/>
<tag xmi:id="EAID_736065D1_2526_7c25_0000_000000000018" name="Not_Available" modelElement="RSCID_Signal2"/>
</tags>
<xrefs value="$XREFPROP=$NAM=Stereotypes$NAM;$TYP=element property$TYP;$VIS=Public$VIS;$PAR=0$PAR;$DES=@STEREO;Name=Signal;FQName=SignalProfile::Signal;@ENDSTEREO;$DES;$SUP=<none>$SUP;$ENDXREF;"/>
</element>
</elements>
</xmi:Extension>
</xmi:XMI>