Matrix Object
Description
A 4x4 Matrix object. For more information, see the Transient Geometry article in the overviews section.Methods
Name | Description |
Copy | Creates a copy of this Matrix object. The result is entirely independent and can be edited without affecting the original Matrix object. |
GetCoordinateSystem | Get the coordinate system that this matrix maps to from the standard coordinate system. |
GetMatrixData | Get the data defining this matrix. |
Invert | Invert this matrix. |
IsEqualTo | Compares this matrix for equality with the specified matrix. |
PostMultiplyBy | Method that post-multiplies this matrix by the specified matrix, setting this matrix to the result. |
PreMultiplyBy | Method that post-multiplies this matrix by the specified matrix, setting this matrix to the result. |
PutMatrixData | Method that sets the data defining this matrix. |
SetCoordinateSystem | Sets this matrix to be the matrix that maps from the standard coordinate system to the specified coordinate system. |
SetToAlignCoordinateSystems | Sets this matrix to be the matrix that maps from the 'from' coordinate system to the 'to' coordinate system. |
SetToIdentity | Sets this matrix to the identity matrix. |
SetToRotateTo | Sets to the matrix of rotation that would align the 'from' vector with the 'to' vector. The optional Axis argument may be used when the two vectors are parallel and in opposite directions to specify a specific solution, but is otherwise ignored. |
SetToRotation | Sets this matrix to the matrix of rotation by the specified angle, through the specified origin, around the specified axis. |
SetTranslation | Sets the translation portion of the matrix. If the optional ResetRotation flag is True, the rotation portion of the matrix is reset to identity. |
TransformBy | Method that sets this matrix to the result of this transformation followed by the specified transformation (a pre-multiplication of this matrix by the specified matrix). |
Properties
Name | Description |
Cell | Property that returns the cell defined by row/col. |
Determinant | Get the determinant of this matrix. |
Translation | Get the translation portion of the matrix. |
Accessed From
AnnotationPlaneDefinition.Transformation, Camera.ModelToViewTransformation, ComponentOccurrence.Transformation, ComponentOccurrenceProxy.Transformation, DerivedPartTransformDef.GetTransformation, DetailDrawingView.DrawingViewToModelTransform, DetailDrawingView.DrawingViewToSheetTransform, DetailDrawingView.ModelToDrawingViewTransform, DetailDrawingView.ModelToSheetTransform, DetailDrawingView.SheetToDrawingViewTransform, DetailDrawingView.SheetToModelTransform, DrawingView.DrawingViewToModelTransform, DrawingView.DrawingViewToSheetTransform, DrawingView.ModelToDrawingViewTransform, DrawingView.ModelToSheetTransform, DrawingView.SheetToDrawingViewTransform, DrawingView.SheetToModelTransform, DWGBlockReference.Transformation, DWGBlockReferenceProxy.Transformation, FeaturePatternElement.Transform, FeaturePatternElementProxy.Transform, FreeMoveDefinition.Transformation, GraphicsNode.Transformation, GraphicsNodeProxy.Transformation, ImportedDWGComponentDefinition.Transformation, ManipulatorEvents.Transform, Matrix.Copy, ModelDatumReferenceFrameDefinition.CoordinateSystem, MoveFeature.Transformation, MoveFeatureProxy.Transformation, OGSRenderItem.TextureTransformation, OGSRenderItem.Transformation, OGSSceneNode.Transformation, PlanarSketch.ModelToSketchTransform, PlanarSketch.SketchToModelTransform, PlanarSketchProxy.ModelToSketchTransform, PlanarSketchProxy.SketchToModelTransform, PointCloud.Transform, PointCloudProxy.Transform, PositionalRepresentation.IsTransformOverridden, PresentationComponent.Transformation, PresentationExplodedView.GetTransform, PublicationComponent.GetTweakTransformationAt, PublicationComponent.InitialTransformation, PublicationComponent.Transformation, PublicationMarkedView.GetComponentTransformation, PublicationTweakDefinition.Transform, PublicationTweaks.TriadMatrix, SectionDrawingView.DrawingViewToModelTransform, SectionDrawingView.DrawingViewToSheetTransform, SectionDrawingView.ModelToDrawingViewTransform, SectionDrawingView.ModelToSheetTransform, SectionDrawingView.SheetToDrawingViewTransform, SectionDrawingView.SheetToModelTransform, SketchBlockDefinition.ModelToSketchTransform, SketchBlockDefinition.SketchToModelTransform, SketchBlockDefinitionProxy.ModelToSketchTransform, SketchBlockDefinitionProxy.SketchToModelTransform, TextureMap.Transformation, TransientGeometry.CreateMatrix, TriadEvents.GlobalTransform, UserCoordinateSystem.Transformation, UserCoordinateSystemDefinition.Transformation, UserCoordinateSystemProxy.TransformationSamples
Name | Description |
Adding iAssembly occurrences | This sample demonstrates adding iAssembly occurrences to an assembly. |
Adding iPart occurrences to an assembly | This sample demonstrates adding iPart occurrences to an assembly. |
Assembly Add Occurrence | This sample demonstrates placing an assembly occurrence. |
iMate Creation During Occurrence Placement | This sample demonstrates creating multiple iMate results when adding an occurrence into an assembly. This uses the AddUsingiMate method which is the equivalent of using the Place Component command and checking the Use iMate check box on the dialog. |
Demote occurence | This sample demonstrates how to demote a top level occurrence in an assembly into a new sub-assembly occurrence. |
SurfaceBody Copy | This sample demonstrates copying a surface body from one part to another. This is equivalent to the Promote command, but the API is much more flexible. In order for the sample to be self-contained, it creates two parts on the fly that will be used to demonstrate copying a body from one part to another. When copying a body into a part, you provide the surface body and a matrix to define its position in the new part. This sample creates a matrix based on the position of these parts within an assembly. |
Derived Parts and Assemblies | This sample demonstrates the use of the API to create derived parts and assemblies. |
Client Graphics - Line | This sample demonstrates the creation of custom graphics using LineGraphics and LineStripGraphics. The same set of coordinate data is used for both types of graphics. Line graphics use two coordinates to define a line, and then the next two coordinates to define the next line, and so on through the defined coordinates. For the data provided, this results in gaps in the drawn curve. Line strips use the first two coordinates to define the first line and then the last point of the first line becomes the first point of the second line and the next coordinate is used as the end point of the second line. This results in the set of points being connected by a continuous set of lines, drawing a continuous curve. This sample also demonstrates two methods of defining the color for client graphics. In one case it uses an existing appearance asset, and in the other, it explicitly defines a color and assigns it. To use the sample you need to have an assembly or part document open. The program has two behaviors: the first time it is run it will draw the graphics. The second time it is run it deletes the previously drawn graphics. |
Create assembly occurrence with representations | This sample demonstrates how to create an assembly occurrence by specifying various representations. |
Assembly Move Occurrence | This sample demonstrates moving a component occurrence. This sample performs a translate, but a rotate can also be performed since the transform is defined using a matrix. |
UCS by transformation matrix | This sample demonstrates the creation of a user coordinate system (UCS) by specifying a transformation matrix. |