Search found 2915 matches

by support
Yesterday, 19:11
Forum: CAD .NET
Topic: Question about CADViewerControl
Replies: 3
Views: 1024

Re: Question about CADViewerControl

Hello, CADViewerControl provides an access to the collection of toolbar buttons through a CADViewerControl.ToolsPanel.Buttons property. Each item in the collection is an instance of a ToolBarButton class which supports Enabled and Visible properties, so you can disable or hide a particular button in...
by support
12 Jul 2019, 21:08
Forum: CAD .NET
Topic: Question about CADViewerControl
Replies: 3
Views: 1024

Re: Question about CADViewerControl

1/ how can disable left panel? I set false value for entity and property,but left panel still visible. The entity properties panel can be hidden using a CADViewerControl.PropertyEntityPanelVisible property. 2/ i disable some buttons on toolbar but it not works. when i close and reopen form, it visi...
by support
12 Jul 2019, 20:25
Forum: CAD .NET
Topic: Which component of CADImport .net can i use?
Replies: 1
Views: 243

Re: Which component of CADImport .net can i use?

Hello, You can use CADViewerControl, this component allows to select a specified graphic object (entity) by code using a CADImage.Selector.DoSelectEntity method: public static void SelectEntityByHandle(CADImage cadImage, ulong handle) { CADEntity entity = cadImage.Converter.Entities[handle]; if (ent...
by support
11 Jul 2019, 22:45
Forum: CAD .NET
Topic: Please let me know how I can get entire blocks and layers and their properties
Replies: 6
Views: 347

Re: Please let me know how I can get entire blocks and layers and their properties

Hello, In case the product category is reflected in a block name, you may use the following predicates with the List<T>.FindAll() method: Predicate<CADEntity> blocksFromHyperM = new Predicate<CADEntity>(entity => (entity as CADBlock).Name.StartsWith("Hm")); Predicate<CADEntity> blocksFromSuperM = ne...
by support
11 Jul 2019, 21:11
Forum: CAD .NET
Topic: Please let me know how I can get entire blocks and layers and their properties
Replies: 6
Views: 347

Re: Please let me know how I can get entire blocks and layers and their properties

Hello Shiv, Thank you for the information. Is the product category reflected in a block name? Let's say, "Hm_Product1Block", "Sm_Product1Block", "Gm_Product1Block", where "Hm" means hypermarket, "Sm" means supermarket and "Gm" - grocery market. Mikhail That's right. My ideas is the same with Shiv :...
by support
11 Jul 2019, 20:48
Forum: CAD .NET
Topic: highlight an object in cadPictBox
Replies: 7
Views: 351

Re: highlight an object in cadPictBox

Hello, You are welcome. The code you posted actually cannot change a color of entity because of the missing line which should go right after assigning a new color (or changing any other property of CADEntity derivatives): cadImage.Converter.Loads(cadText) or cadImage.Converter.Loads(cadMText) I can ...
by support
11 Jul 2019, 20:23
Forum: CAD .NET
Topic: how to get Layout list and Entities list in file ViewerControlMainForm.cs file
Replies: 2
Views: 277

Re: how to get Layout list and Entities list in file ViewerControlMainForm.cs file

Hello Shiv, ViewerControlDemo project uses CADViewerControl which is a part of CAD .NET library. The control provides an access to a CADLayoutCollection through a CADViewerControl.Image.Converter.Layouts property. To get a list of CADLayout objects, you should iterate through the Layouts collection ...
by support
10 Jul 2019, 22:05
Forum: Leave a request and get answer
Topic: 3d stp files
Replies: 5
Views: 52764

Re: 3d stp files

hello can anyone tell me a novice how to turn files with the extension of stl or sldprt to stp files or extension dwf to stp files. Or does anyone know how to do that themselves and the cost for about 20 files. Also some have extension svg. ABViewer 14.1 can convert SolidWorks (.sldprt) files to .s...
by support
10 Jul 2019, 21:40
Forum: CAD .NET
Topic: highlight an object in cadPictBox
Replies: 7
Views: 351

Re: highlight an object in cadPictBox

Hello, The following method applies a new color to all the CADInsert objects of a given block that are located on the current layout: public static void ChangeBlockColor(CADImage drawing, string blockName, Color newColor) { CADBlock block = drawing.Converter.BlockByName(blockName); if (block != null...
by support
10 Jul 2019, 21:25
Forum: CAD .NET
Topic: Please let me know how I can get entire blocks and layers and their properties
Replies: 6
Views: 347

Re: Please let me know how I can get entire blocks and layers and their properties

Hello Shiv,

Thank you for the information.

Is the product category reflected in a block name? Let's say, "Hm_Product1Block", "Sm_Product1Block", "Gm_Product1Block", where "Hm" means hypermarket, "Sm" means supermarket and "Gm" - grocery market.

Mikhail
by support
10 Jul 2019, 19:22
Forum: CAD .NET
Topic: highlight an object in cadPictBox
Replies: 7
Views: 351

Re: Find a location of specif text

CoffeeShop wrote:
10 Jul 2019, 05:47
Hi,
I want to highlight an object in cadPictBox by select blockname or how to know this object is selected.
How can I do it ?
Do you want to highlight CADInsert object(s) by a given block name?
To know whether a certain object is selected, use a CADEntity.Selected property.

Mikhail
by support
10 Jul 2019, 19:02
Forum: CAD .NET
Topic: How to add layers in CAD.net
Replies: 10
Views: 597

Re: How to add layers in CAD.net

shivajitheboss wrote:
10 Jul 2019, 07:58
Thank you so much for your help, Mikhail. Really appreciate your help.
You are welcome. :)

Mikhail
by support
10 Jul 2019, 18:55
Forum: CAD .NET
Topic: highlight an object in cadPictBox
Replies: 7
Views: 351

Re: highlight an object in cadPictBox

Hello, 1/ I want to highlight an object in cadPictBox when I select it in treeview. ex: block, text... Could you please specify what you mean by highlighting? Is it changing of the entity line type and/or color or anything else? 2/ when my clients open a cad file, it shows many objects in cadPictBox...
by support
09 Jul 2019, 21:18
Forum: CAD .NET
Topic: CADVertex ouput problem
Replies: 1
Views: 240

Re: CADVertex ouput problem

Hello,

To write the Point.X and Point.Y values from a CADVertex object in the console, use the following code:

Code: Select all

vertexes.ForEach(vertex => Console.WriteLine("x={0}; y={1}", vertex.Point.X, vertex.Point.Y));
Mikhail
by support
09 Jul 2019, 20:40
Forum: CAD .NET
Topic: Please let me know how I can get entire blocks and layers and their properties
Replies: 6
Views: 347

Re: Please let me know how I can get entire blocks and layers and their properties

Hello Shiv, You can get all the blocks and layers through CADImage.Converter.Blocks and CADImage.Converter.Layers collections, respectively: CADEntityCollection blocks, layers; blocks = this.CADImage.Converter.Blocks; layers = this.CADImage.Converter.Layers; To filter out blocks and layers by a cert...