Search found 2885 matches

by support
Yesterday, 18:50
Forum: CAD .NET
Topic: How to insert blocks in CAD.net and how we can extend them
Replies: 6
Views: 110

Re: How to insert blocks in CAD.net and how we can extend them

Hello Shiv,

I would also like to clarify the following: do you need to serialize only custom fields (block attributes) or the whole CADBlock object including the block attributes and block entities?

Mikhail
by support
21 Jun 2019, 20:30
Forum: CAD .NET
Topic: How do I get blocks name?
Replies: 5
Views: 144

Re: How do I get blocks name?

Hello Jaeseo, You are welcome. CAD .NET allows to find a CADBlock object in a given CAD image by a given block name (see my first reply ), so you can rewrite the GetTextDataFromBlock method as follows: public static List<string> GetTextDataFromBlock(CADImage cadImage, string blockName) { List<string...
by support
21 Jun 2019, 20:05
Forum: CAD .NET
Topic: How to insert blocks in CAD.net and how we can extend them
Replies: 6
Views: 110

Re: How to insert blocks in CAD.net and how we can extend them

Hello Shiv, Custom fields can be added to a CADBlock object in CAD .NET through an CADAttdef class. Each CADAttdef instance represents an attribute definition which may be used as a custom field with a certain tag (CADAttdef.Tag) and value (CADAttdef.Value). One CADBlock object may contain one or fe...
by support
20 Jun 2019, 21:21
Forum: CAD .NET
Topic: Do we have any block editor or any separate API for blocks in CAD.net
Replies: 2
Views: 75

Re: Do we have any block editor or any separate API for blocks in CAD.net

Hello Shiv,

CAD .NET doesn't have a visual block editor, but it provides access to a block through the API (CADBlock class). Block entities can be accessed through a CADBlock.Entities collection which may also contain the block attribute definitions (CADAttdef objects).

Mikhail
by support
20 Jun 2019, 21:15
Forum: CAD .NET
Topic: How to insert blocks in CAD.net and how we can extend them
Replies: 6
Views: 110

Re: How to insert blocks in CAD.net and how we can extend them

Hello Shiv, To insert a block (CADBlock object) in a certain drawing layout (e.g. the current layout), you will need to create a CADInsert object instance which refers to the block, load the CADInsert into the drawing database by calling a CADConverter.Loads method and then place the insert onto som...
by support
20 Jun 2019, 18:48
Forum: CAD .NET
Topic: Find a location of specif text
Replies: 2
Views: 64

Re: Find a location of specif text

Hello,

Is the text located on a certain CAD drawing layout (Model, Layout1, etc.) or in a block?

Mikhail
by support
20 Jun 2019, 18:28
Forum: CAD .NET
Topic: How do I get blocks name?
Replies: 5
Views: 144

Re: How do I get blocks name?

Hello, It is possible to find the largest block by its bounding rectangle (CADBlock.Box) and read the text data from the CADBlock through a CADBlock.Entities collection. For example: public static List<string> GetTextDataFromBlock(CADBlock block) { List<string> textData = new List<string>(); List<CA...
by support
19 Jun 2019, 22:35
Forum: Plugins for 3rd-party software
Topic: Printing 1:1 to PDF
Replies: 5
Views: 284

Re: Printing 1:1 to PDF

Peter wrote:
19 Jun 2019, 20:44
Hi Mikhail

maybe this could work, but it is not a usual workflow to calculate layout-size and scale-factor. 100% should be 100% ...
I think this matter should be addressed by Tracker Software technical support.

Mikhail
by support
19 Jun 2019, 19:34
Forum: Plugins for 3rd-party software
Topic: Printing 1:1 to PDF
Replies: 5
Views: 284

Re: Printing 1:1 to PDF

Hello Peter,

Please try to use the following Layout settings for a 750x1900 mm HPGL:

Image

Mikhail
by support
19 Jun 2019, 18:20
Forum: CAD .NET
Topic: How do I get blocks name?
Replies: 5
Views: 144

Re: How do I get blocks name?

Hello, You can check whether a block exists or not by a given block name. For example: CADBlock block = cadImage.Converter.BlockByName("Block1"); If a block with the given name doesn't exist, the BlockByName method returns null. The block name can be read through a CADBlock.Name property. Mikhail
by support
18 Jun 2019, 19:35
Forum: CAD VCL
Topic: Want to change DefaultTTFFontForBigFont.
Replies: 1
Views: 212

Re: Want to change DefaultTTFFontForBigFont.

Hello,

CAD VCL development team has decided to follow your suggestion and implement a way of altering the DefaultTTFFontForBigFont value. I have opened a support case for this matter.

Mikhail
by support
18 Jun 2019, 18:05
Forum: Plugins for 3rd-party software
Topic: Printing 1:1 to PDF
Replies: 5
Views: 284

Re: Printing 1:1 to PDF

Hello Peter,

Could you please tell what PDF printer, page size and orientation you have tried?

Mikhail
by support
18 Jun 2019, 17:41
Forum: Plugins for 3rd-party software
Topic: "Out of memory"
Replies: 3
Views: 85

Re: "Out of memory"

Hello Peter,

It appears that you have reached the 32-bit architecture memory limit (approximately 3.3 GB per process). Please check how much memory is used by TOTALCMD.EXE process, in case it's ~ 3.3 GB when loading the 260 MB DXF, you should use Total Commander 64 bit (TOTALCMD64.EXE).

Mikhail
by support
17 Jun 2019, 17:47
Forum: CAD VCL
Topic: Text is behind hatch!
Replies: 1
Views: 67

Re: Text is behind hatch!

Hello Timo, You can modify this routine to bring the entities of certain type (e.g. ceText) to front of all other entities. For example: procedure BringEntitiesToFront(ACADImage: TsgCADImage; EntType: TsgCADEntities); var I, Count: Integer; vModelSpaceBlock: TsgDXFBlock; vDXFEntity: TsgDXFEntity; be...
by support
17 Jun 2019, 16:58
Forum: CAD .NET
Topic: How to add a CADImageEnt?
Replies: 1
Views: 170

Re: How to add a CADImageEnt?

Hello, AddEntities demo project contains the following code which shows how to add a CADImageEnt object. private void AddImageEnt() { string fileName = cnstImagePath; if (!File.Exists(fileName)) { fileName = cnstAddonPath + fileName; if (!File.Exists(fileName)) return; } CADImageDef vImageDef = new ...