Hi, I'm currently working on an ECN workflow, and i want to use ECN documents in HTML format (for opening speed reasons).
I believe this can be done by mapping a variable to custom properties from the HTML file.. but here comes the problem: i have no clue about the block names, attribute names etc. i need to use.
I have tried to use the same strategy as for xml docs, but no result for html..
I found this video from Justin Webster, and i believe he does exactly the thing i want!
http://blog.inflow-tech.com/inflow/2009/10/solidworks-enterprise-pdm-ecn-process.html
Anybody got experience with this matter?
any help would be highly appreciated!
Willem,
Glad that Joy replied to you. I thought that you couldn't map attributes to HTML files but wasn't certain. For our ECOs I'm using XML along with an XSL stylesheet so that the preview looks like an HTML file. I even created links to view the files listed in the ECO (that's why I'm storing the fileid & folderid). The technique is pretty straightforward.
For example my ECO xml file contains this:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='C:\VAULT\TEMPLATES\eco.xsl'?>
<Eco Number="ECO-0000017">
<Author>Mike DeKoning</Author>
<Created>07/05/2010</Created>
<Filelist>
<File FileId="207021" FolderId="3866" Filename="AW010001.DWG" />
<File FileId="207025" FolderId="3866" Filename="AW010002.DWG" />
</Filelist>
</Eco>
The eco.xsl file which is in the TEMPLATES folder conatins this:
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
<STYLE>
A {text-decoration:none}
</STYLE>
<BODY>
<H1>Engineering Change Order</H1>
<xsl:apply-templates/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="/Eco">
<TABLE cellspacing="0" cellpadding="2" width="300">
<TR>
<TD Colspan="2"><b>ECO Number: </b> <xsl:value-of select="@Number"/></TD>
</TR>
<TR>
<TD><b>Requestor: </b> <xsl:value-of select="Author"/></TD>
<TD><b>Date: </b> <xsl:value-of select="Created"/></TD>
<TR>
<TD Colspan="2"><b>Affected Drawings:</b></TD>
</TR>
</TR>
<xsl:apply-templates select="Filelist" />
</TABLE>
</xsl:template>
<xsl:template match="Filelist">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="File">
<TR>
<TD Colspan="2">
<A><xsl:attribute name="href">conisio://VAULT/view?projectid=<xsl:value-of select="@FolderId"/>&documentid=<xsl:value-of select="@FileId"/>&objecttype=1</xsl:attribute>
<xsl:value-of select="@Filename"/></A></TD>
</TR>
</xsl:template>
</xsl:stylesheet>
The preview shows the following:
Mike
EPDM 2010 SP2