Trendsic Platform Service

<back to all web services

CadRenderRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/cad/{AttachmentId}/render
import Foundation
import ServiceStack

public class CadRenderRequest : Codable
{
    public var attachmentId:String
    public var versionNo:Int?

    required public init(){}
}

public class CadRenderResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var derivative:CadDerivative

    required public init(){}
}

public class CadDerivative : Codable
{
    public var cadDerivativeID:Int
    public var attachmentId:String
    public var versionNo:Int
    public var urn:String
    public var objectKey:String
    public var status:String
    public var progress:Int
    public var stageLabel:String
    public var has2d:Bool
    public var has3d:Bool
    public var hasPdf:Bool
    public var thumbKey:String
    public var thumbUrl:String
    public var pdfAttachmentId:String?
    public var errorText:String
    public var requestedBy:String
    public var requestedAt:Date?
    public var finishedAt:Date?
    public var ageSeconds:Int

    required public init(){}
}


Swift CadRenderRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/cad/{AttachmentId}/render HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"AttachmentId":"00000000000000000000000000000000","VersionNo":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Derivative":{"CadDerivativeID":0,"AttachmentId":"00000000000000000000000000000000","VersionNo":0,"Urn":"String","ObjectKey":"String","Status":"String","Progress":0,"StageLabel":"String","Has2d":false,"Has3d":false,"HasPdf":false,"ThumbKey":"String","ThumbUrl":"String","PdfAttachmentId":"00000000000000000000000000000000","ErrorText":"String","RequestedBy":"String","RequestedAt":"0001-01-01T00:00:00.0000000","FinishedAt":"0001-01-01T00:00:00.0000000","AgeSeconds":0}}