Search found 48 matches

by Sing
03 Nov 2020, 17:02
Forum: CAD .NET
Topic: cadImage.LoadFromFile() System.NullReferenceException
Replies: 5
Views: 4893

Re: cadImage.LoadFromFile() System.NullReferenceException

Hello

Have you used the .dwg file attached?
by Sing
03 Nov 2020, 16:44
Forum: CAD .NET
Topic: sgcadexp.dll, the latest version Issue
Replies: 4
Views: 3188

Re: sgcadexp.dll, the latest version Issue

Hello Mikhail That's right. I need the second alignment point, so I used Point1 property. text1.HAlign = 1; // center text1.VAlign = 1; // bottom Do you mean that I should set the Point property and insert the text entity, and then change the Point1 property of the text entity? However, the old vers...
by Sing
02 Nov 2020, 18:04
Forum: CAD .NET
Topic: sgcadexp.dll, the latest version Issue
Replies: 4
Views: 3188

sgcadexp.dll, the latest version Issue

Hello I recently downloaded and used the latest version of sgcadexp.dll, and found a bug where CADText was displayed in the wrong location. I tried to attach a test file, but could not attach due to the capacity limit. Instead, I leave a Google Drive link so you can download it. https://drive.google...
by Sing
02 Nov 2020, 17:17
Forum: CAD .NET
Topic: cadImage.LoadFromFile() System.NullReferenceException
Replies: 5
Views: 4893

Re: cadImage.LoadFromFile() System.NullReferenceException

Hello

The version of .NET Framework is 4.6.1.
I attached a sample code.
I could not attach a .dwg file because of file size.
Download .dwg files I attached before.

And please reply to my old post (http://www.cadsofttools.com/forum/viewt ... =15&t=1046)
if you have some time.

Thank you.
by Sing
29 Oct 2020, 11:33
Forum: CAD .NET
Topic: cadImage.LoadFromFile() System.NullReferenceException
Replies: 5
Views: 4893

cadImage.LoadFromFile() System.NullReferenceException

Hello I have downloaded the latest version of CADImport (14.1.0.45509) and run the code cadImage.LoadFromFile(). I got a similar error to my old topic https://cadsofttools.com/forum/viewtopic.php?f=15&t=10460&sid=cc7efb42c74639c129aa86523ee82e3b . Error message is below. Exception thrown: 'System.Nu...
by Sing
21 Oct 2020, 07:01
Forum: CAD .NET
Topic: Initializing the Z-axis value to zero
Replies: 3
Views: 3568

Initializing the Z-axis value to zero

Hello When checking if a box of polyline contains a point (DPoint) or rect (DRect) of CADLWPolyline or CADText, I use the 'Contains' method of CADLWPolyline or CADText Entities. if (dPolyline.Box.Contains(cadText.Box.Center)) { Console.WriteLine("Contained"); } However, if the Z-axis values ​​are di...
by Sing
12 Oct 2020, 19:12
Forum: CAD .NET
Topic: cadImage.LoadFromFile() OverflowException
Replies: 3
Views: 2970

Re: cadImage.LoadFromFile() OverflowException

Hello~

The build number of my CADImport.dll is v14.1.40.40930.
by Sing
12 Oct 2020, 08:48
Forum: CAD .NET
Topic: cadImage.LoadFromFile() OverflowException
Replies: 3
Views: 2970

cadImage.LoadFromFile() OverflowException

Hello I got an issue 'System.OverflowException' at cadimage.LoadFromFile(). It happens to some cad files. I attached an .dwg file. And the error message is below ----------------------------------------------------- Exception thrown: 'System.ArgumentException' in System.Drawing.dll Exception thrown:...
by Sing
01 Sep 2020, 15:28
Forum: CAD .NET
Topic: CADHatch Dotted type hatch
Replies: 1
Views: 4829

Re: CADHatch Dotted type hatch

I resolved this one.
Refer to viewtopic.php?f=15&t=10437
I used a template dwg file with dotted type hatch.
by Sing
01 Sep 2020, 15:19
Forum: CAD .NET
Topic: Clone Method & Handle
Replies: 2
Views: 2953

Re: Clone Method & Handle

Awesome!!
Thank you so much Mikhail.
The code is perfect!
by Sing
28 Aug 2020, 07:03
Forum: CAD .NET
Topic: Clone Method & Handle
Replies: 2
Views: 2953

Clone Method & Handle

Hello. First, I usually use two CAD images (one is a template, the other is loaded from a source file to edit). when I clone a entity from a template CAD image, the handle is the same as the one cloned in the template CAD image. And then, I add the cloned entity to a source CAD image. I think... if ...
by Sing
27 Aug 2020, 17:02
Forum: CAD .NET
Topic: Set ColorIndex instead of RGB
Replies: 2
Views: 7134

Re: Set ColorIndex instead of RGB

Thank you for your reply. Anyway, I solved it in another way. I hope it helps someone. --------------------------------------------- 1. Make a dwg file. 2. Add layers and choose ACI(Autocad Color Index) Colors for the layers 3. In code, load that .dwg file and copy the colors of layers 4. assign the...
by Sing
26 Aug 2020, 12:07
Forum: CAD .NET
Topic: CADHatch Dotted type hatch
Replies: 1
Views: 4829

CADHatch Dotted type hatch

I cannot figured out how to make dotted hatches.
The sample source of 'AddEntities' application is only for line patterns, but not dotted one.
I attached a dotted hatch image what i need to make.

Is there a way to solve it?
by Sing
26 Aug 2020, 12:06
Forum: CAD .NET
Topic: DimensionStyle Architectual Tick
Replies: 3
Views: 3985

Re: DimensionStyle Architectual Tick

Hello. Mikhail

Could you let me know how is this issue going on .NET development team?
by Sing
26 Aug 2020, 08:47
Forum: CAD .NET
Topic: Set ColorIndex instead of RGB
Replies: 2
Views: 7134

Set ColorIndex instead of RGB

Hello~ I want to set the layer color as ColorIndex instead of RGB. when I print out a drawing, polylines with white(ColorIndex: 7) come out as black. However, RGB white color doesn't come out as black. My code is below. CADLayer layer = new CADLayer() { Name = "layer_name", Color = System.Drawing.Co...