Questions tagged [bricscad]

11 questions
1
vote
2 answers

Debugging Bricscad plug-in - no code supported by selected debug engine

I am making a plug-in for Bricscad which is basically a dll that is used by the application. This plug-in uses both console commands and WPF windows. When I try to debug it and set breakpoints there is strange behaviour - if the code was called by…
Gaxx
  • 85
  • 7
0
votes
1 answer

ShowModalDialog problem in Bricscad v23 using .net and vs2022

I'm migrating a plugin from Autocad to Bricscad. I'm using .net, vs2022 and Bricscad v23. I have a command with the next code: FrmMyForm frm = new FrmMyForm() { StartPosition = FormStartPosition.CenterScreen }; DialogResult result =…
damorcor
  • 3
  • 2
0
votes
1 answer

pyautocad loop through attributes

I have many blocks which have attributes. I'm trying to search through attributes in WEE specific value and when I find it, I would like to change the NDT to some value. Name Att Value Att WEE A011 NDT (Null) for Atributi in…
Hom Tom
  • 3
  • 2
0
votes
2 answers

AutoLISP getting a National Grid Reference from a Postcode

I'm looking to make a script in CAD which will return a National Grid Reference from and input Postcode For example User input: AL1 1BY Returns: TL 14584 06989 I've got a CSV from OS "CodePoint - Open" which supplies the Postcode, Easting, Northing,…
BlvckSZN
  • 15
  • 3
0
votes
0 answers

Convert to Media.ImageSource

I need to give a value to the property Image of a RibbonButton from BricsCad/Autocad. But I do not know how to cast an image to the correct type. var bitMapImage = new Bitmap(Properties.Resources.image); RibbonButton rb1 = new…
0
votes
1 answer

What is the most efficient way to validate a SelectImplied against a Filter?

Here is some simple code for asking the user to select some LINE and / or ARC entities: _AcDb.TypedValue[] dxfs = new _AcDb.TypedValue[] { new _AcDb.TypedValue((int)_AcDb.DxfCode.Operator, "
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
1 answer

Can the Help.ShowHelp API be modified to simply invoke the CHM file?

This is my primary way for displaying help topics from within my WinForm button click handlers: Handler: private void buttonHelp_Click(object sender, EventArgs e) { CutTools.DisplayHelpTopic(this, "create-new-viewport.htm"); } Base…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
1 answer

Where are settings saved wiithin the context of BricsCAD?

My C# DLL project has settings and the defaut values are held automatically in the xxx.dll.cong file. When I perform a save of the settings: Properties.Settings.Default.Save(); They are correctly read back in when I display my form. But I can't…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
2 answers

appload DLL into bricscad works on some PC's but not all, how to debug?

I'm building the C# sample project provided with Bricscad V19 located at Bricsys\BricsCAD V19 en_US\API\dotNet\CsBrxMgd in visual studio 2019. The build is successful & runs correctly when loaded into my Bricscad V17 & V19, however when i send this…
Ben
  • 163
  • 3
  • 18
0
votes
1 answer

Adding elements to model space the correct way using .NET API

Method One _AcDb.Line oLine = new _AcDb.Line(ptStart, ptEnd); AddToModelSpace("PLOT", oLine); Where AddToModelSpace is: public static void AddToModelSpace(string strLayer, _AcDb.Entity oEntity) { _AcAp.Document acDoc =…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
-1
votes
2 answers

How to check if a specific driver is installed using AutoLISP

(My ultimate goal is to verify if a specific database OCDB driver is installed before I run an Autolisp coded connection to a database) I would like to know : How can i check if a driver is installed on a Windows 10 x64 computer, using AutoLISP on…