Visual Basic | |
---|---|
Function InsertBlock( _ ByVal BlockName As System.String, _ ByVal InsertX As System.Double, _ ByVal InsertY As System.Double, _ ByVal InsertZ As System.Double, _ ByVal Scale As System.Double, _ ByVal Rotation As System.Double _ ) As BlockInstance |
C# | |
---|---|
BlockInstance InsertBlock( System.string BlockName, System.double InsertX, System.double InsertY, System.double InsertZ, System.double Scale, System.double Rotation ) |
JavaScript | |
---|---|
InsertBlock( BlockName : String, InsertX : Number, InsertY : Number, InsertZ : Number, Scale : Number, Rotation : Number ) : dsBlockInstance |
COM native C++ | |
---|---|
HRESULT InsertBlock( BSTR BlockName, DOUBLE InsertX, DOUBLE InsertY, DOUBLE InsertZ, DOUBLE Scale, DOUBLE Rotation, IBlockInstance** Blk ) |
C++ | |
---|---|
DSRESULT InsertBlock( const dsString& BlockName, double InsertX, double InsertY, double InsertZ, double Scale, double Rotation, dsBlockInstance** Blk ) |
Parameters
- BlockName
- Name for the Block instance
- InsertX
- x coordinate where to insert the Block instance
- InsertY
- y coordinate where to insert the Block instance
- InsertZ
- z coordinate where to insert the Block instance
- Scale
- Scale factor for each axis
- Rotation
- Angle by which to rotate the Block instance; in radians (see Remarks)
- Blk[out] or Return Value
- Block instance
Use a positive value for Rotation to rotate the Block instance counterclockwise and a negative value to rotate the Block instance clockwise.
DraftSight V1R1