CADAddInsertXY places a Block by adding a Block insert object to a drawing or
another block.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theBlockID | longint | A Block ID or kCADRootBlockID for the root
drawing
|
| in | theLayerOrSubLayerID | longint | Layer ID or Sublayer ID
|
| in | theInsertBlockID | longint | Block ID of the Block to place
|
| in | theInsertX | real | Insertion point X-coordinate
|
| in | theInsertY | real | Insertion point Y-coordinate
|
| out | theNewObjID | longint | Object ID of the new object
|
| out | function result | OSErr | Error result code, also see Error handling
|
Important
Non-terminating circular block inserts will lead to plug-in crashes
(e.g. when block A places block B and at the same time block B places block A).
Related methods
CADAddInsert, CADObjInsert, CADGetInsertID,
CADSetInsertID, CADGetInsert, CADSetInsert,
CADGetInsertXY, CADSetInsertXY, CADGetBlockInfo,
CADGetBlocks.