Message 1 of 8

Not applicable
05-30-2014
04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have code to insert a block and explode it. But I'm now wondering how to set the thickness of the polyline afterwards. Here is what I have so far:
Private Sub InsertBlock(ByVal acadapp As Autodesk.AutoCAD.Interop.AcadApplication, _ ByVal acadDoc As Autodesk.AutoCAD.Interop.AcadDocument, _ ByVal InsertionPT As Object, _ ByVal BlockName As String) Dim DbxDoc As Object = acadapp.GetInterfaceObject "ObjectDBX.AxDbDocument.19") DbxDoc.Open(BlockDrawing) Dim Objects(0) As AcadBlock For Each entry As AcadBlock In CType(DbxDoc.Blocks, IEnumerable) If (Not entry.IsLayout) AndAlso (Not entry.Name.StartsWith("*")) Then Objects(0) = entry DbxDoc.CopyObjects(CObj(Objects), acadDoc.Blocks) End If Next entry Dim oBlkRef As AcadBlockReference oBlkRef = acadDoc.ModelSpace.InsertBlock(InsertionPT, BlockName, 1.0#, 1.0#, 1.0#, 0) oBlkRef.Explode() End Sub
The insert block code was supplied to me by Mikko and works great. Thanks again Mikko. But now I'm trying to relieve the user of another step by setting the thickness of the polyline inserted based upon the insertion point. Any help would be appreciated, Thank you.
Solved! Go to Solution.