Message 1 of 7
New inserted block doesn't seems to have snap point
Not applicable
11-10-2011
09:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
I use the following code insert block
Using myTrans As Transaction = db.TransactionManager.StartTransaction
Dim myBT As BlockTable = db.BlockTableId.GetObject(OpenMode.ForRead)
Dim myBTR As BlockTableRecord = myBT(BlockTableRecord.ModelSpace).GetObject(OpenMode.ForWrite)
'Insert the Block
Dim myBlockDef As BlockTableRecord = _
myBT(Me.BlockName).GetObject(OpenMode.ForRead)
myBlockRef = New DatabaseServices.BlockReference(InsertPoint, myBT(BlockName))
myBlockRef.ScaleFactors = New Geometry.Scale3d(1, 1, 0)
myBlockRef.Rotation = FixtureRotation
myBTR.AppendEntity(myBlockRef)
myTrans.AddNewlyCreatedDBObject(myBlockRef, True)
myTrans.Commit()
End UsingAfter coe excuted new block has been insert. Then I found regardless I turn on/off onsap there is no sappoint on those newly added blocks.
What did I do wrong? Any ideas ?
Thanks very much