<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: New inserted block doesn't seems to have snap point in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3224494#M58447</link>
    <description>&lt;P&gt;Just looking at your code the Z scale is at 0.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2011 18:40:54 GMT</pubDate>
    <dc:creator>arcticad</dc:creator>
    <dc:date>2011-11-10T18:40:54Z</dc:date>
    <item>
      <title>New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3224352#M58446</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I use the following code insert block&lt;/P&gt;&lt;PRE&gt;            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 Using&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;After 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG height="158" title="It should looks like " alt="It should looks like " src="http://forums.autodesk.com/t5/image/serverpage/image-id/15984i735ACAD89E463156/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" align="middle" width="235" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG title="my new inserted block" alt="my new inserted block" src="http://forums.autodesk.com/t5/image/serverpage/image-id/15986i136C386654CC447D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" align="middle" /&gt;&lt;/P&gt;&lt;P&gt;What did I do wrong? Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:34:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3224352#M58446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-10T17:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3224494#M58447</link>
      <description>&lt;P&gt;Just looking at your code the Z scale is at 0.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 18:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3224494#M58447</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2011-11-10T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3225268#M58448</link>
      <description>&lt;P&gt;Thanks for reply. I changed zscale to 1.0 , still no grip point&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2011 09:26:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3225268#M58448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-11T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3225336#M58449</link>
      <description>&lt;P&gt;After more investigation. I found new inserted block display grip point, If I use "Line" command.&lt;/P&gt;&lt;P&gt;However once I run my own draw line function. the grip point turned off.&lt;/P&gt;&lt;P&gt;Even worse，after I run my own draw line code, back to AutoCAD "Line" command, those grip point never turn back&lt;/P&gt;&lt;P&gt;Here is my draw line code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    Private Function DrawAlignLine(ByRef StartPoint As Point3d, ByRef EndPoint As Point3d, Optional ByRef strError As String = "") As Boolean
        Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
        Dim acCurDb As Database = acDoc.Database
        Dim pPtRes As PromptPointResult
        Dim pPtOpts As PromptPointOptions = New PromptPointOptions("")
        Try
            '' Prompt for the start point
            pPtOpts.Message = vbLf &amp;amp; "Enter the start point of the line: "
            pPtRes = acDoc.Editor.GetPoint(pPtOpts)
            If pPtRes.Status &amp;lt;&amp;gt; PromptStatus.OK Then
                Return True
            End If
            StartPoint = pPtRes.Value
            pPtOpts.AllowNone = True
            '' Prompt for the end point
            pPtOpts.Message = vbLf &amp;amp; "Please enter the next point of the line: "
            pPtOpts.UseBasePoint = True
            pPtOpts.BasePoint = StartPoint
            Dim DrawComplete As Boolean = False
            Do
                pPtRes = acDoc.Editor.GetPoint(pPtOpts)
                If pPtRes.Status &amp;lt;&amp;gt; PromptStatus.OK Then
                    StartPoint = Nothing
                    Return True
                End If
                '--Start point different to end point 
                If pPtRes.Value.IsEqualTo(StartPoint) = False Then
                    DrawComplete = True
                End If
            Loop Until DrawComplete = True
            EndPoint = pPtRes.Value
            Return True
        Catch sysex As SystemException
            strError = sysex.Message
            StorePlanLogError(sysex, sysex.Message, STR_MODULE_NAME &amp;amp; ".DrawAlignLine")
        Catch ex As Exception
            strError = ex.Message
            StorePlanLogError(ex, ex.Message, STR_MODULE_NAME &amp;amp; ".DrawAlignLine")
        End Try
    End Function&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2011 12:00:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3225336#M58449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-11T12:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3225370#M58450</link>
      <description>&lt;P&gt;More investigation done, it is either a silly question or very strange one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replication Step&lt;/P&gt;&lt;P&gt;1. Insert block(use the code I provided above)&lt;BR /&gt;2. type line command--&amp;gt;user can see new block grip point&lt;BR /&gt;3. Draw line use my code(code provided above)--&amp;gt;User cannot see grip point&lt;BR /&gt;4. Click Esc once, then type regen command, then type line command--&amp;gt; user can see grip point again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What on earth happened to my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2011 12:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3225370#M58450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-11T12:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3226102#M58451</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By my reading of your code the DrawAlignLine does not draw a line, it just gets the start and end points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possibly related :&lt;/P&gt;&lt;P&gt;Why&amp;nbsp;are you returning true if either of the point selections fail ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd need to see a compilable Project to guess at the cause of your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2011 23:18:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3226102#M58451</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2011-11-11T23:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: New inserted block doesn't seems to have snap point</title>
      <link>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3226818#M58452</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is not draw line, it is finding 2 point. while doing that I can't see new block's grips point however I can see others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's the strange part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 09:29:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/new-inserted-block-doesn-t-seems-to-have-snap-point/m-p/3226818#M58452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T09:29:15Z</dc:date>
    </item>
  </channel>
</rss>

