Interface IDraftings
Gives access to drafting documents.
Namespace: TopSolid.Cad.Drafting.Automating
Assembly: TopSolid.Cad.Drafting.Automating.dll
Syntax
[ServiceContract]
[AvailableSinceVersion(7, 10, 0, 0)]
public interface IDraftings
Remarks
This interface is available since v7.10.
Methods
| Name | Description |
|---|---|
| CreateDocument(PdmObjectId, DocumentId, DocumentId) | Creates a drafting document. |
| CreateLinearDimensionBetweenTwoPoints(ElementId, Point2D, Point2D, Direction2D, string, string) | OBSOLETE - Creates a linear dimension using two points. |
| CreateNewProjectionSet(DocumentId, ElementId) | Creates a new projection set for document using another document representation |
| GetAuxiliaryViews(ElementId) | Get Auxiliary views related to a view. This method fetch main view of the set then returns auxiliaries (including the view sent, if it is an auxiliary view). |
| GetDraftingDimensions(ElementId) | OBSOLETE - Gets dimensions from a drafting document view. |
| GetDraftingFormatDimensions(DocumentId, out Real, out Real) | Gets drafting format dimensions |
| GetDraftingFormatMargins(DocumentId, out Real, out Real, out Real, out Real, out Real, out Real) | Gets drafting document format margins |
| GetDraftingFormatName(DocumentId) | Gets the drafting format name of a drafting document |
| GetDraftingViews(DocumentId) | Gets the views from a drafting document. |
| GetMainProjectionSet(DocumentId, out DocumentId, out ElementId) | Gets drafting main projection set |
| GetMainView(ElementId) | Gets main view related to a view. This method can return the view itself. |
| GetPageCount(DocumentId) | Gets the number of pages of a drafting document |
| GetProjectionMode(DocumentId) | Gets the projection mode of a drafting document. |
| GetScaleFactorParameter(DocumentId) | Gets the scale factor parameter entity of a document. |
| GetScaleFactorParameterValue(DocumentId) | Gets the scale factor parameter entity value of a document. |
| GetViewProjectionSet(ElementId, out DocumentId, out ElementId) | Gets view projection set |
| GetViewScaleFactor(ElementId, out bool, out double, out double, out double) | Gets the view scale factor. |
| GetViewTitle(ElementId) | Gets the view title text |
| IsDrafting(DocumentId) | Tells whether a document is a drafting document. |
| IsDraftingBundle(DocumentId) | Tells whether a document is a drafting bundle document. |
| ModifyMainProjectionSet(DocumentId, DocumentId, ElementId) | Modify main projection set |
| ModifyProjectionSetRepresentation(ElementId, ElementId) | Sets representation for the projection set |
| MultiplePrint(List<DocumentId>, PrintMode, PrintColorMapping, int) | Prints a list of documents to the printers according to the draft formats. |
| Print(DocumentId, PrintMode, PrintColorMapping, int, int, int) | Prints a document to the active printer. |
| SetDraftingFormatDimensions(DocumentId, Real, Real) | Set dimensions of a drafting document format |
| SetDraftingFormatMargins(DocumentId, Real?, Real?, Real?, Real?, Real?, Real?) | Sets drafting document format margins |
| SetDraftingFormatName(DocumentId, string) | Set friendly name of a drafting document format |
| SetProjectionMode(DocumentId, ProjectionMode) | Sets the projection mode of a drafting document. |
| SetScaleFactorParameterValue(DocumentId, double) | Sets the scale factor parameter entity value of a document. |
| SetViewProjectionSet(ElementId, ElementId, bool) | Redirect projection set |
| SetViewScaleFactor(ElementId, double) | Sets the view scale factor. |