BlockTableRecordExtensionInsertBlockReference Method |
Inserts a block reference.
Namespace:
Gile.AutoCAD.R20.Extension
Assembly:
Gile.AutoCAD.R20.Extension (in Gile.AutoCAD.R20.Extension.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static BlockReference InsertBlockReference(
this BlockTableRecord target,
Transaction tr,
string blkName,
Point3d insertPoint,
double xScale = 1,
double yScale = 1,
double zScale = 1,
double rotation = 0,
Dictionary<string, string> attribValues = null
)
<ExtensionAttribute>
Public Shared Function InsertBlockReference (
target As BlockTableRecord,
tr As Transaction,
blkName As String,
insertPoint As Point3d,
Optional xScale As Double = 1,
Optional yScale As Double = 1,
Optional zScale As Double = 1,
Optional rotation As Double = 0,
Optional attribValues As Dictionary(Of String, String) = Nothing
) As BlockReference
public:
[ExtensionAttribute]
static BlockReference^ InsertBlockReference(
BlockTableRecord^ target,
Transaction^ tr,
String^ blkName,
Point3d insertPoint,
double xScale = 1,
double yScale = 1,
double zScale = 1,
double rotation = 0,
Dictionary<String^, String^>^ attribValues = nullptr
)
[<ExtensionAttribute>]
static member InsertBlockReference :
target : BlockTableRecord *
tr : Transaction *
blkName : string *
insertPoint : Point3d *
?xScale : float *
?yScale : float *
?zScale : float *
?rotation : float *
?attribValues : Dictionary<string, string>
(* Defaults:
let _xScale = defaultArg xScale 1
let _yScale = defaultArg yScale 1
let _zScale = defaultArg zScale 1
let _rotation = defaultArg rotation 0
let _attribValues = defaultArg attribValues null
*)
-> BlockReference
Parameters
- target
- Type: BlockTableRecord
Instance to which the method applies. - tr
- Type: Transaction
Transaction or OpenCloseTransaction to use. - blkName
- Type: SystemString
Nlock name. - insertPoint
- Type: Point3d
Insertion point. - xScale (Optional)
- Type: SystemDouble
X scale factor. - yScale (Optional)
- Type: SystemDouble
Y scale factor. - zScale (Optional)
- Type: SystemDouble
Z scale factor. - rotation (Optional)
- Type: SystemDouble
Rotation - attribValues (Optional)
- Type: System.Collections.GenericDictionaryString, String
Collection of key/value pairs (Tag/Value).
Return Value
Type:
BlockReferenceThe newly created BlockReference.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
BlockTableRecord. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also