Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo...
Transcript of Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo...
![Page 1: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/1.jpg)
PLM World ‘06
Premium Partners:
Practical Usage of UGS PLMXML File Format.
Bronek [email protected](585) 422-6129
![Page 2: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/2.jpg)
Agenda
· Product Data Exchange Standards.· XLM technology overview.· PLMXML data schema overview.· MSXML Parser with Internet Explorer· How to read and manage PLMXML files.· Demo of practical examples.
![Page 3: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/3.jpg)
Standards
Product Data requires standard representation for interoperability. Propitiatory formats needs to be balanced by common standard.
DesignEngineering
ManufacturingEngineering
Purchasing
Salesand
Distribution
Accounting
Maintenance
![Page 4: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/4.jpg)
Common Standard
DesignEngineering
ManufacturingEngineering Purchasing
Salesand
DistributionAccounting Maintenance
• Support of interoperability and integration.
• Enable different products and systems made to work together.
• Provide specifications explaining how information should look.
Standard Product Data Representation Format
![Page 5: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/5.jpg)
Three types of standards for product information exchange:
• Open Standards.
• Industry Standards
• De Facto Standards
Types of Standards
![Page 6: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/6.jpg)
Open Standards
Developed by consensus in an industry group, for example:
STEP - developed by ISO .
XML developed by the World Wide Web Consortium (W3C)
Open Standards
![Page 7: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/7.jpg)
Industry Standards
Technologies that are commonly used, but are not open or democratically managed by a group of users.
The Java™ is a well-known example of an industry standard.
Industry Standards
![Page 8: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/8.jpg)
De Facto Standards
They are in wide use because of their value or association with other technologies, standards organization, for example :
DXF - developed by AutoDesk.
PDF – Developed by Adobe Systems.
De Facto Standards
![Page 9: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/9.jpg)
• Implements XML format for data exchange interoperability.
• Similar to STEP product data definition (schema).
• It is becoming industry “de facto” standard.
PLM XML
![Page 10: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/10.jpg)
• Technology for WWW applications.
• Sponsored by World Wide Web Consortium
• Design to simplifies business-to-business transactions.
XML (Extensible Markup Language).
![Page 11: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/11.jpg)
XML vs. HTML
HTML
• Lacks fine controls. It is too “forgiving”.
• Browsers’ displays vary.
• Design for data presentation (rendering)
• Not good for complex data interchange
![Page 12: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/12.jpg)
XML vs. HTML
XML
• Applications can easy access and extract information.
• Enables robust database contents exchange
• Data can be used in HTML pages.
• Documents must follow certain rules.
• Data is structure is self-describing and extendable.
![Page 13: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/13.jpg)
XML schema
![Page 14: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/14.jpg)
An XSL stylesheet contains some number of templatesthat define how the elements in an XML document should be transformed
XLS
XLStransformation
#1
XLStransformation
#2
![Page 15: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/15.jpg)
Simple XML example
![Page 16: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/16.jpg)
The Document Object Model (DOM) as implemented in MSXMLprovides a programmatic representation of XML documents.
DOM with MSXML
![Page 17: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/17.jpg)
XML Resources
Amazon.comover 980 books about XML !
![Page 18: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/18.jpg)
PLMXML Schema
PLM XML is defined bya set of XML schemas that are compliant with theW3C XML schema recommendation.
![Page 19: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/19.jpg)
Creating PLMXML
With SolidEdge
With VisView Professional
![Page 20: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/20.jpg)
source = new ActiveXObject("Msxml2.DOMDocument.5.0");
source.async=false;source.load(“myNEW.plmxml);source.setProperty("SelectionLanguage", "XPath");if (source.parseError.errorCode != 0){
result = reportParseError(source.parseError);alert(result);
}
Loading PLMXML
Example code for loading PLMXML file with JavaScript.
![Page 21: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/21.jpg)
Transforming with XSLT
stylesheet = new ActiveXObject("Msxml2.DOMDocument.5.0");stylesheet.async = false;stylesheet.load("hilite-xml.xsl");
if (source.parseError.errorCode != 0) {alert( reportParseError(source.parseError));
}
try {result = source.transformNode(stylesheet);
}catch (e) {alert( reportRuntimeError(e));
}
Example code for PLMXML transformation file with JavaScript.
![Page 22: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/22.jpg)
Query with XPath
function doQuery(theQuery) {var q = source.selectNodes(theQuery);alert(q.length + " Objects Found")for (var e = q.nextNode(); e != null; e = q.nextNode() {
try {alert( "Node " + e.xml )
}catch (exception) {
alert reportRuntimeError(exception);}
}}
theQuery=“PLMXML/ProductDef/InstanceGraph/Instance “theQuery=““PLMXML/ProductDef/Part “theQuery=““PLMXML/ProductDef/InstanceGraph/Transform”theQuery=““PLMXML/ProductDef/Part/UserData/UserValue[@title='ProjectName']/@value”theQuery=““PLMXML/ProductDef/InstanceGraph/Transform”
![Page 23: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/23.jpg)
PLMXML XPath Expression Tester
![Page 24: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/24.jpg)
nodes=source.getElementsByTagName("ProductDef");
parts = nodes[0].getElementsByTagName("Part");
for ( var i=0; I <parts.length; i++) { ud=parts[i].getElementsByTagName("UserData");
uv =ud.getElementsByTagName (“UserValue”);parts[i].getElementsByTagName(“Representation");
rep=parts[i].getElementsByTagName(“CompoundRep");
rep.getElementsByTagName(“MassProperties");
}
Traversing PLMXML Nodes
![Page 25: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/25.jpg)
Fetching PLMXML Nodes Attributes
partID=part[i].getAttribute("id");partTYPE= part[i]=itemsList[i].getAttribute("type");…partNUMBER=ud[1]. getAttribute(“PartNumber”);
![Page 26: Practical Usage of UGS PLMXML File Format. - Fermilab Usage of UGS PLMXML File Format. ... · Demo of practical examples. Standards ... The Java ™ is a well-known ...](https://reader038.fdocuments.in/reader038/viewer/2022102518/5ada31cb7f8b9a137f8d2307/html5/thumbnails/26.jpg)
Questions ?