Modified line disappears when zoomed in

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
StefanChrist
Posts: 22
Joined: 06 Jul 2018, 10:52

Modified line disappears when zoomed in

Post by StefanChrist » 05 Dec 2018, 11:00

Hello Support,

I have some lines on a drawing that will be modified at runtime. The second Point (P2) will be changed. In order to update the drawing, we then call the following function passing the changed line:

Code: Select all

  Public Sub UpdateEntity(Entity As rthCadEntity)
    mDrawing.Converter.Loads(Entity.mEntity)
    For Each block As rthCadBlock In Me.Blocks
      If block.ContainsEntity(Entity) Then
        mDrawing.Converter.Loads(block.CadBlock)
        For Each insert As rthCadInsert In Me.Inserts
          If insert.Block.CadBlock Is block.CadBlock Then
            mDrawing.Converter.Loads(insert.cadInsert)
          End If
        Next
      End If
    Next
  End Sub
Note: We wrote some wrappers like rthCadEntity, rthCadBlock, rthCadInsert which contain the entities, blocks and inserts.

The lines are shown correctly, but whenever I start to zoom in, they suddenly disappear. When zooming out those reappear. Is there anything we can do to avoid this?

Thank you,
Stefan

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Modified line disappears when zoomed in

Post by support » 05 Dec 2018, 19:37

Hello Stefan,

Could you please make a simple test project which demonstrates this problem and attach it to your reply?

Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply