Search found 2926 matches

by support
19 Jul 2019, 15:53
Forum: CAD .NET
Topic: how to get Layout list and Entities list in file ViewerControlMainForm.cs file
Replies: 11
Views: 778

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

Hi Shiv,

Only one layout can be displayed at a time. Could you give some more details about the task you wish to solve?

Maria
by support
19 Jul 2019, 15:50
Forum: CAD .NET
Topic: Please let me know how I can get entire blocks and layers and their properties
Replies: 8
Views: 822

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

Hi Shiv,

How can you understand which block refers to which product category? Is this reflected in the block name or in any other way?

Maria
by support
19 Jul 2019, 14:02
Forum: CAD VCL
Topic: Understanding the TsgCADHatch-Entity
Replies: 2
Views: 50

Re: Understanding the TsgCADHatch-Entity

Hi Kevin,

Please have a look at:
procedure TsgCADImage.DrawHatch(Sender: TObject);
Seems this is what you are looking for.

If you need some assistance on a specific file, please send it by e-mail.

Maria
by support
17 Jul 2019, 23:40
Forum: CAD .NET
Topic: how to get Layout list and Entities list in file ViewerControlMainForm.cs file
Replies: 11
Views: 778

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

Currently, it is showing the entire.DWG file in viewer editor even after assigning the layout[0]th index to the viewer control. Honestly, I don't understand what you mean by the entire DWG file . CADViewerControl cannot show all the layouts at once, it shows a certain layout whose name is displayed...
by support
17 Jul 2019, 23:25
Forum: CAD .NET
Topic: Need to know the control and its method
Replies: 6
Views: 93

Re: Need to know the control and its method

I could not find anything with text "stBar" in the Viewercontrolmainform.cs file. :!: Please note that I talked about ViewerMainForm.cs of ViewerDemo project. It is another demo project which comes with CAD .NET. However, I have found the control with the name "StatusBarPanelVisible", is this the c...
by support
17 Jul 2019, 20:15
Forum: CAD .NET
Topic: how to get Layout list and Entities list in file ViewerControlMainForm.cs file
Replies: 11
Views: 778

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

Thank you so much for your help, Mikhail. I have tried the below code for showing the model in the cad viewer control but instead of showing model, it is still showing.DWG drawing. if (CADImage != null) { try { List<CADLayout> layouts = new List<CADLayout>(); for (int i = 0; i < CADPictureBox.Image...
by support
17 Jul 2019, 20:10
Forum: CAD .NET
Topic: Need to know the control and its method
Replies: 6
Views: 93

Re: Need to know the control and its method

Hello Shiv,

Please take a look at the ViewerDemo project, it uses a separate StatusBar control for displaying the status. Just open the C# code file ViewerMainForm.cs in Visual Studio and search for "stBar" using Quick Find option.

Mikhail
by support
17 Jul 2019, 18:53
Forum: CAD .NET
Topic: how to get Layout list and Entities list in file ViewerControlMainForm.cs file
Replies: 11
Views: 778

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

Hello Shiv, CADViewerControl shows the current CAD layout (CADImage.CurrentLayout) by default. However, you can switch between CAD layouts (Model, Layout1, Layout2, etc.) using the text box with a drop-down list located on the Layouts panel, right under the toolbar. Or you may change the current lay...
by support
17 Jul 2019, 18:45
Forum: CAD .NET
Topic: Need to know the control and its method
Replies: 6
Views: 93

Re: Need to know the control and its method

Hello Shiv,

CADViewerControl uses the .NET StatusBar control to display a status of the drawing (the file name, current zoom value, CAD coordinates of the point which is under a mouse cursor). The status bar control can be accessed through a CADViewerControl.StatusBarPanel property.

Mikhail
by support
17 Jul 2019, 18:25
Forum: Import
Topic: Error in Draw method
Replies: 1
Views: 56

Re: Error in Draw method

Здравствуйте, Владимир.

Пожалуйста, уточните версию сборки CADImport.dll, на которой у Вас возникает данная ошибка, а также пришлите нам хотя бы один файл чертежа для изучения проблемы на почту support@cadsofttools.com.

Михаил
by support
16 Jul 2019, 18:01
Forum: CAD .NET
Topic: how to get Layout list and Entities list in file ViewerControlMainForm.cs file
Replies: 11
Views: 778

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

Hello Shiv,

Could you please specify what you mean by my model? Is it an existing drawing loaded from a file or a new CADImage instance created by code?

Mikhail
by support
15 Jul 2019, 19:11
Forum: CAD .NET
Topic: Question about CADViewerControl
Replies: 4
Views: 2642

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: 4
Views: 2642

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: 540

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: 8
Views: 822

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...