<?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 Can't access &amp;quot;Getboundingbox&amp;quot; and &amp;quot;insertionpoint&amp;quot; property of DBTEXT in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2888826#M62176</link>
    <description>&lt;P&gt;Hello All It is me again . Big Bugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted user to be allowed to pick just one object when he/she prompted. The program should exit and do process. I searched and gile from this forum helped me. Now when I get that object from user. I can't access to "insertionpoint" and "getboudingbox" property of that object ( Exactly Where I made it RED)&amp;nbsp;. Autocad Crashes. Other properties are good. like Layer , Rotation, TextString.&lt;/P&gt;&lt;P&gt;I need help here please . see the code. I am not expert with professional terminology please be simple. Thank you all for helping me to keep my job.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   Sub Selectonscreen_one_item()
        Dim myPEO As New Autodesk.AutoCAD.EditorInput.PromptEntityOptions(vbLf &amp;amp; "Select BarMark:")
        Dim mydwg, mydb, myed, myent, myPS, myPer, mytrans, mytransman,MIND,MAXD As Object
        mydwg = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
        mydb = mydwg.Database
        myed = mydwg.Editor
        myPEO.SetRejectMessage("You must select a BarMark." &amp;amp; vbCrLf)
        myPEO.AddAllowedClass(GetType(Autodesk.AutoCAD.DatabaseServices.DBText), False)
        myPer = myed.GetEntity(myPEO)
        myPS = myPer.Status
        Select Case myPS
            Case Autodesk.AutoCAD.EditorInput.PromptStatus.OK
                'MsgBox("Good job!")
                mytransman = mydwg.TransactionManager
                mytrans = mytransman.StartTransaction
                myent = myPer.ObjectId.GetObject(Autodesk.AutoCAD.DatabaseServices.OpenMode.ForRead)
                'MsgBox("Entity is on layer " &amp;amp; myent.Layer)
                'Where did he click?!
            Case Autodesk.AutoCAD.EditorInput.PromptStatus.Cancel
                MsgBox("You cancelled.")
                Exit Sub
            Case Autodesk.AutoCAD.EditorInput.PromptStatus.Error
                MsgBox("Error warning.")
                Exit Sub
            Case Else
                Exit Sub
        End Select
        TempTTT = myent.textstring
        TempTT = myent.Rotation
        &lt;FONT color="#ff0000"&gt;MIND = myent.insertionpoint()
        myent.GetBoundingBox(MIND, MAXD)&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2011 13:29:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-21T13:29:23Z</dc:date>
    <item>
      <title>Can't access "Getboundingbox" and "insertionpoint" property of DBTEXT</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2888826#M62176</link>
      <description>&lt;P&gt;Hello All It is me again . Big Bugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted user to be allowed to pick just one object when he/she prompted. The program should exit and do process. I searched and gile from this forum helped me. Now when I get that object from user. I can't access to "insertionpoint" and "getboudingbox" property of that object ( Exactly Where I made it RED)&amp;nbsp;. Autocad Crashes. Other properties are good. like Layer , Rotation, TextString.&lt;/P&gt;&lt;P&gt;I need help here please . see the code. I am not expert with professional terminology please be simple. Thank you all for helping me to keep my job.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   Sub Selectonscreen_one_item()
        Dim myPEO As New Autodesk.AutoCAD.EditorInput.PromptEntityOptions(vbLf &amp;amp; "Select BarMark:")
        Dim mydwg, mydb, myed, myent, myPS, myPer, mytrans, mytransman,MIND,MAXD As Object
        mydwg = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
        mydb = mydwg.Database
        myed = mydwg.Editor
        myPEO.SetRejectMessage("You must select a BarMark." &amp;amp; vbCrLf)
        myPEO.AddAllowedClass(GetType(Autodesk.AutoCAD.DatabaseServices.DBText), False)
        myPer = myed.GetEntity(myPEO)
        myPS = myPer.Status
        Select Case myPS
            Case Autodesk.AutoCAD.EditorInput.PromptStatus.OK
                'MsgBox("Good job!")
                mytransman = mydwg.TransactionManager
                mytrans = mytransman.StartTransaction
                myent = myPer.ObjectId.GetObject(Autodesk.AutoCAD.DatabaseServices.OpenMode.ForRead)
                'MsgBox("Entity is on layer " &amp;amp; myent.Layer)
                'Where did he click?!
            Case Autodesk.AutoCAD.EditorInput.PromptStatus.Cancel
                MsgBox("You cancelled.")
                Exit Sub
            Case Autodesk.AutoCAD.EditorInput.PromptStatus.Error
                MsgBox("Error warning.")
                Exit Sub
            Case Else
                Exit Sub
        End Select
        TempTTT = myent.textstring
        TempTT = myent.Rotation
        &lt;FONT color="#ff0000"&gt;MIND = myent.insertionpoint()
        myent.GetBoundingBox(MIND, MAXD)&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2011 13:29:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2888826#M62176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T13:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't access "Getboundingbox" and "insertionpoint" prope</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2889242#M62177</link>
      <description>&lt;P&gt;Names have changed from VBA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For insertionpoint - try Position&lt;/P&gt;&lt;P&gt;For Getboundingbox - try GeometricExtents for Entity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or GeometricExtentsBestFit for BlockReference&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2011 16:39:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2889242#M62177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't access "Getboundingbox" and "insertionpoint" prope</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2889700#M62178</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much mohnston . You solved my problem big time. God Bless you.&lt;/P&gt;&lt;P&gt;I love you guys here&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2011 21:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-access-quot-getboundingbox-quot-and-quot-insertionpoint/m-p/2889700#M62178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T21:16:15Z</dc:date>
    </item>
  </channel>
</rss>

