RotationAngle: Double input-only (optional). dwg extension and any path information necessary for AutoCAD to find the file. The name of the AutoCAD drawing file or the name of the block to insert. The 3D WCS coordinates specifying the location in the drawing to insert the block.īlockName: String input-only. InsertionPoint: Variant (three-element array of doubles) input-only. Object: ModelSpace Collection, PaperSpace Collection, Block – the objects this method applies to. The placed block as a Block Reference object. RetVal = object.InsertBlock(InsertionPoint, BlockName, Xscale, Yscale, Zscale, RotationAngle) Anyway, according to AutoCAD VBA help, the structure of InsertBlock method is the following: The code presented today is not new it was written actually some months ago (in April). I gave him some insight and I think that it’s time to present the complete solution, which involves AutoCAD’s InsertBlock method. In the comments section of the previous post about AutoCAD and Excel interaction, a blog reader (Tim) asked me if it is possible to insert blocks in AutoCAD from Excel.
0 Comments
Leave a Reply. |