Hi All
Does anyone out there know how to get an iPart variant to be automatically selected from an idrop html document.
According to the InventorSchema.xdr it should be posible as shown below
<!-- Factories -->
<ElementType name = "factory" content = "eltOnly" order = "many" model = "closed">
<description usage = "DOCUMENTATION"><p>Define that the downloaded file represents a factory (iPart or DeSel). The "table" element can be used to specify a unique member of the factory and the "destination" element can be used to define the location where the factory should be stored.</p></description>
<element type = "table" minOccurs = "0" maxOccurs = "1"/>
<element type = "destination"/>
</ElementType>
<ElementType name = "table" content = "eltOnly" order = "seq" model = "closed">
<description usage = "DOCUMENTATION"><p>When the partfile represents an Inventor iPart or DeSel, the table element us used to state that the factory is table driven and specify a specific row in the table. When this information is specified, the iPart or DeSel GUI used to specify a row is circumvented.</p></description>
<element type = "key" minOccurs = "1" maxOccurs = "*"/>
</ElementType>
<ElementType name = "key" content = "empty" model = "closed">
<description usage = "DOCUMENTATION"><p>Defines a component of a unique key used to uniquely identify an object within a database.</p></description>
<attribute type = "keyname" required = "yes"/>
<attribute type = "keyvalue" required = "yes"/>
</ElementType>
I have tried a number of thing to get this to work with no success, my latest is as shown below (this is the xml document linked to the html
<?xml version = "1.0" encoding = "UTF-8"?>
<package xmlns = "x-schema:InventorSchema.xdr">
<proxy defaultsrc = "c:\iDrop\Kart\Images\MBR_Type_1.jpg">
<caption></caption>
<activex clsid = "" codebase = ""/>
<activex clsid = "" codebase = ""/>
</proxy>
<dataset defaultsrc = "C:\iDrop\Kart\Parts\MBR_TYPE_A.ipt">
<datasrc clipformat = "CF_IDROP.INV">
<datafile src = "C:\iDrop\Kart\Parts\MBR_TYPE_A.ipt"/>
<metadatafile>
<factory table = "1">
<table key = "2"/>
</factory>
<destination pathtype ="Workspace" pathname = ""/>
</metadatafile>
</datasrc>
</dataset>
</package>
The way I read the InventorSchema.xdr this should work. If any of you have a better idea I would be most greatfull
Regards
Dave Smith