Description
Returns model information for the specified category/catalog for all products in 3D PartStream.NET.
Input is Model Name in the catalog.
Output is model information.
In case of error, error number (<faultcode>) and error description (<faultstring>) are returned.
For a list of fault codes, see XML Faults.
Interface
<interfacename> |
SWGetModelInfo |
Name of interface |
<sessionid> |
Id |
Id of the active session |
Parameters
<secure> |
Secure |
Security flag |
<model> |
ModelName |
Model Name (required) |
Return Values
<success> |
Description |
Success description |
<returnval> |
ReturnVal |
Return Value. Model information |
<modeldisplayname> |
Display name of model |
Model name |
<modelnumber> |
Number of the model |
Model number |
<description> |
Description of the model |
Model description |
<category> |
Category of model |
Model category |
<header> |
setting |
Header setting |
<image> |
http path |
Child node of <model>or <category>. Path to the model/categoryimage file |
<overview>
|
Caption, show/hide |
Caption to be displayed in place of mentioned tags. Show/ hide the contents. |
<modelsourcefile> |
Source for the model. |
Model source. |
<modelfile> |
Name of model file |
Model file name. |
<drawingsourcefile> |
Source of drawing file |
Drawing file source. |
<drawingfile> |
Name of drawing file |
Drawing fie name. |
<view2dFile> |
Name of eDrawing view file |
eDrawing file name. |
<view3dFile> |
Name of 3D view file |
3D viewer file name. |
<modeltype> |
Type of model |
Model extension. |
<sucess> |
Description success |
Description success. |
Fault Values
<faultcode> |
ErrorNumber |
Error code. |
<faultstring>
|
Description |
Description of the error. |
Remarks
Sample SOAP/XML Request
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<interfacename>SWGetModelInfo</interfacename>
<ccuser>username</ccuser>
<sessionid>0000</sessionid>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<interfaceparameters>
<model>samplepart</model>
</interfaceparameters>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample SOAP/XML Success Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<interfacename>swgetmodelinfo</interfacename>
<interfacename>swgetmodelinfo</interfacename>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<sessionId>2044340636-892666</sessionId>
<sessionid>2044340636-892666</sessionid>
<returndatamode></returndatamode>
<returndatamode></returndatamode>
<returnval>following are the modelinfo</returnval>
<returnval>following are the model info<model>samplepart</model>
<modeldisplayname>samplepart</modeldisplayname>
<modelnumber></modelnumber><description></description>
<category>PUBLISH3D</category>
<image>http://stagedev/SWDownloads1/2044340636-892666//select_acme_inch.jpg</image>
<modelsourcefile>samplepart.SLDPRT</modelsourcefile>
<modelfile>samplepart.SLDPRT</modelfile>
<drawingsourcefile>samplepart.SLDDRW</drawingsourcefile>
<drawingfile>samplepart.slddrw</drawingfile>
<view2dfile>samplepart.edrw</view2dfile>
<view3dfile>samplepart.mts</view3dfile>
<modeltype>SLDPRT</modeltype></returnval>
<success>Success Description</success>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample SOAP/XML Error Response
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<interfacename>SWGetModelInfo</interfacename>
<sessionid>0000</sessionid>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<faultcode>0000</faultcode>
<faultstring>Description</faultstring>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>