Search found 22 matches

by StefanChrist
18 Dec 2018, 18:22
Forum: CAD .NET
Topic: Issue with DrawSnapTrace in v12
Replies: 1
Views: 9022

Issue with DrawSnapTrace in v12

Hello support, we are still trying to get v12 to work in our software, now we have some issues with the DrawSnapTrace function. In v12 this function works fine when the entity at the location is for example a simple line. We are always using inserts and in this case the function returns a point that...
by StefanChrist
14 Dec 2018, 10:07
Forum: CAD .NET
Topic: Change length of line
Replies: 11
Views: 22083

Re: Change length of line

Hello,

with your demo project I was able to solve the issue. It is neccessary to call "GetExtents" after adding the line, before manipulating it. In my example I was resizing the line before calling GetExtents, which won't work.

Thank you for your help!

Best regards,
Stefan
by StefanChrist
13 Dec 2018, 11:17
Forum: CAD .NET
Topic: Change length of line
Replies: 11
Views: 22083

Re: Change length of line

With SetNewPosEntity the following happens:

- the entity gets selected automatically (at least markers show up)
- the selection is still wrong
- the new size is not taken into account when the drawing gets resized

Best regards,
Stefan Christ
by StefanChrist
12 Dec 2018, 12:40
Forum: CAD .NET
Topic: Change length of line
Replies: 11
Views: 22083

Re: Change length of line

Hello Mikhail, after upgrading to v12 (12.2.40) I tried if it is now possible to change the length of an entity afterwards, but the result is still the same. The line is shown with the new length, but the selection is still wrong. Private Sub AddLine() Dim Line As CADLine = New CADLine Line.Point = ...
by StefanChrist
05 Dec 2018, 11:00
Forum: CAD .NET
Topic: Modified line disappears when zoomed in
Replies: 1
Views: 8991

Modified line disappears when zoomed in

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: Public Sub UpdateEntity(Entity As rthCadEntity) mDrawing.Converter.Loads(Entity.mEntity...
by StefanChrist
04 Dec 2018, 18:15
Forum: CAD .NET
Topic: Issues with SelectExt()
Replies: 2
Views: 9717

Re: Issues with SelectExt()

I have done further investigation on this issue. There is a param called clearPrevSelected (bool) In v11: Setting the value to true will unselected other entities and select the new one In v12: Setting the value to true will not unselect any entities except you select an entity that is already selec...
by StefanChrist
04 Dec 2018, 16:02
Forum: CAD .NET
Topic: Issues with SelectExt()
Replies: 2
Views: 9717

Issues with SelectExt()

Hello Support, after updating form v11 to v12 I am still facing several issues, most of them in relation with selections. We are using the SelectExt() function which should return the selected entity at a given point. Similar to MultipleSelect (https://cadsofttools.com/forum/viewtopic.php?f=15&t=100...
by StefanChrist
05 Nov 2018, 13:37
Forum: CAD .NET
Topic: Selector.MultipleSelect(dRect, True, False) returns empty collection
Replies: 2
Views: 12117

Selector.MultipleSelect(dRect, True, False) returns empty collection

Hello support,

after upgrading from v11 to v12 we are facing another issue using Selector.MultipleSelect. In v12 the Selector class always returns an empy collection. Could you please investigate if the class is working as expected.

Thank you.
by StefanChrist
23 Oct 2018, 08:38
Forum: CAD .NET
Topic: Saving drawing with 'SaveToStream' creates broken file
Replies: 3
Views: 12112

Re: Saving drawing with 'SaveToStream' creates broken file

Hello Mikhail,

this is the codes that stores the DWG file:

Code: Select all

Dim s = New System.IO.MemoryStream
CADtoDWG.SaveToStream(Drawing, s)
      Dim fs As New FileStream("C:\TMP\" & Date.Now.ToString("yyyy-MM-dd") & ".dwg", FileMode.Create)
      s.WriteTo(fs)
      fs.Close()
      s.Close()
Thank you.
by StefanChrist
22 Oct 2018, 10:39
Forum: CAD .NET
Topic: Saving drawing with 'SaveToStream' creates broken file
Replies: 3
Views: 12112

Saving drawing with 'SaveToStream' creates broken file

Hello Support, I am using the SaveToStream function to write a drawing into a stream, which is stored in a database. It is also possible to create a DWG file with this data. Sometimes the exported file seems to be corrupt, at least TrueView shows a message when opening those files: "Errors were dete...
by StefanChrist
25 Sep 2018, 11:49
Forum: CAD .NET
Topic: Additional text on (below) dimension lines
Replies: 1
Views: 11371

Additional text on (below) dimension lines

Hello Support,

is it possible to add additional text to dimension lines? We would like to show the measured dimensions above the line and the additional text below. It seems that AutoCAD support this, but I cannot figure out if this is also possible with CAD .NET.

Thank you!
by StefanChrist
14 Sep 2018, 08:50
Forum: CAD .NET
Topic: Remove block and its entities from drawing
Replies: 3
Views: 11854

Re: Remove block and its entities from drawing

Hello Makhail, thank you for your help. I guess the other entities within a block (in my case a ployline) should also be removed before removing the block. Trying to remove them always returns false: If Not DeleteEntity(Insert) Then Stop End If For Each Entity As rthCadEntity In Insert.Block.Entitie...
by StefanChrist
13 Sep 2018, 08:43
Forum: CAD .NET
Topic: Remove block and its entities from drawing
Replies: 3
Views: 11854

Remove block and its entities from drawing

Hello Support, I'd like to remove an insert from the drawing. When using Drawing.RemoveEntity on the insert it is removed. There is a block within the insert, this block seems to be left. How can I delete the block and all its entities? Drawing.RemoveEntity doesn't seem to work with blocks and retur...
by StefanChrist
03 Sep 2018, 18:23
Forum: CAD .NET
Topic: Issues with saving and loading dwg files
Replies: 1
Views: 9497

Issues with saving and loading dwg files

Hello Support, when saving a drawing to a dwg-file using .SaveDWG I can open the created dwg file with another application like TrueView and everything seems to be fine. But loading the same file using .LoadDWG will create a drawing where the font is way heavier then it should and also the images ad...